pointtools/config.mk
Anders Damsgaard e56e6e57aa Makefile: do not hardcode optimization and linker flags
Adhere to git://bitreich.org/bitreich-style/c/makefile-guideline.txt

71 * $CFLAGS: do not hard-code optimization flags like (-O2) or diagnostic flags
72   such as -Wall, -Wextra, -pedantic. Even more importantly, do not
73   specify unportable compiler flags.
74
75 * $LDFLAGS: do not hard-code linker flags like -s (symbol stripping) or -g,
76   -static or such flags.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2021-06-14 12:31:37 +02:00

24 lines
381 B
Makefile

VERSION="0.3"
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
# includes and libs
INCS = -I. -I/usr/include
# BSD
#LIBS = -L/usr/lib -lc
# flags
# Linux
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -DNEED_STRLCPY
# BSD
#CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS += -std=c99 ${INCS} ${CPPFLAGS}
LDFLAGS += ${LIBS}
# compiler and linker
# CC = cc