commit: f2c02a3cccc14002b8aa104774cd6361ddb8d293
parent: 79a2edaf1d44e3ba5c60d0ab542baa54dadc802f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 26 Feb 2019 13:31:56 +0100
mkfile: Use CDEFS variable instead of abusing CFLAGS
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mkfile b/mkfile
@@ -1,5 +1,6 @@
MKSHELL=/bin/sh
CC=cc
+CDEFS="-D_POSIX_C_SOURCE=200809L -D_C99_SOURCE"
CFLAGS="-Wpedantic -Wall -Wextra -Wformat -O2 -std=c99 -Wno-unused -Werror=date-time -D_POSIX_C_SOURCE=200809L"
PREFIX="/usr/local"
BINDIR=$PREFIX"/bin"
@@ -19,7 +20,7 @@ clean:V:
rm -f $bins
bin/&: src/&.c
- $CC $CFLAGS src/$stem.c -o bin/$stem
+ $CC $CDEFS $CFLAGS src/$stem.c -o bin/$stem
bin/lolcat: src/lolcat.c
- $CC $CFLAGS -lm src/lolcat.c -o bin/lolcat
+ $CC $CDEFS $CFLAGS -lm src/lolcat.c -o bin/lolcat