commit 67848412448afaeba5fdfbf5cd8a5dc04117d345 parent 94b0899daf7e43c5633f9ab31a48df53d3a1be6a Author: Christoph Lohmann <20h@r-36.net> Date: Sun, 7 Jun 2020 12:19:36 +0200 Respect system *FLAGS in the Makefile. Diffstat:
Makefile | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile @@ -16,13 +16,13 @@ INCS = -I. -I/usr/include LIBS = -L/usr/lib -lc -lssl -lcrypto -lz -ldl # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE -CFLAGS = -g -std=gnu99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} -LDFLAGS = -g ${LIBS} -#LDFLAGS = -s ${LIBS} +RP_CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE ${CPPFLAGS} +RP_CFLAGS = -g -std=gnu99 -pedantic -Wall -O0 ${INCS} ${RP_CPPFLAGS} ${CFLAGS} +RP_LDFLAGS = -g ${LIBS} ${LDFLAGS} +#RP_LDFLAGS = -s ${LIBS} # compiler and linker -CC = cc +RP_CC = cc SRC = ${NAME}.c ind.c llist.c cfg.c txtdb.c mark.c cur.c \ select.c sieve.c net.c base64.c strio.c parser.c pager.c \ @@ -35,12 +35,12 @@ OBJ = ${SRC:.c=.o} all: ${NAME} .c.o: - ${CC} -c ${CFLAGS} $< + ${RP_CC} -c ${CFLAGS} $< ${OBJ}: ${NAME}: ${OBJ} - ${CC} -o $@ ${OBJ} ${LDFLAGS} + ${RP_CC} -o $@ ${OBJ} ${RP_LDFLAGS} clean: rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz