From de903c0e8a4e79faec8f73a4c27a432282e8a329 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 25 Jan 2019 13:51:30 +0100 Subject: Makefile: add POSIX target, respect (packaging) system CFLAGS/LDFLAGS this also makes packaging slightly simpler. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3c09fee..382c2a5 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.POSIX: + include config.mk NAME = sfeed @@ -58,10 +60,10 @@ OBJ = ${SRC:.c=.o} ${LIBXMLOBJ} ${LIBUTILOBJ} ${OBJ}: config.mk ${HDR} .o: - ${CC} ${LDFLAGS} -o $@ $< ${LIB} + ${CC} ${SFEED_LDFLAGS} -o $@ $< ${LIB} .c.o: - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $< + ${CC} ${SFEED_CFLAGS} ${SFEED_CPPFLAGS} -o $@ -c $< ${LIBUTIL}: ${LIBUTILOBJ} ${AR} rc $@ $? -- cgit v1.2.3