Cleanup config.mk, introduce $CPPFLAGS

$CPPFLAGS does only contain feature test macro defines, thus one
system which need different ones compilation should succeed with
something like:

 make CPPFLAGS= LIBS=-lc
This commit is contained in:
Marc André Tanner 2015-02-15 10:00:21 +01:00
parent 9eeb18bbfb
commit fd26003cce
1 changed files with 5 additions and 11 deletions

View File

@ -9,17 +9,11 @@ MANPREFIX = ${PREFIX}/share/man
INCS = -I. INCS = -I.
LIBS = -lc -lutil LIBS = -lc -lutil
# AIX CPPFLAGS = -D_POSIX_C_SOURCE=200809L
#LIBS = -lc CFLAGS += -std=c99 -pedantic -Wall ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG ${CPPFLAGS}
# Solaris
#LIBS = -lc -lsocket
CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
LDFLAGS += ${LIBS} LDFLAGS += ${LIBS}
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb
CC = cc CC ?= cc
STRIP = strip STRIP ?= strip