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.
LIBS = -lc -lutil
# AIX
#LIBS = -lc
# Solaris
#LIBS = -lc -lsocket
CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
CPPFLAGS = -D_POSIX_C_SOURCE=200809L
CFLAGS += -std=c99 -pedantic -Wall ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG ${CPPFLAGS}
LDFLAGS += ${LIBS}
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb
CC = cc
STRIP = strip
CC ?= cc
STRIP ?= strip