mirror of https://github.com/martanne/abduco
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:
parent
9eeb18bbfb
commit
fd26003cce
16
config.mk
16
config.mk
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue