This commit is contained in:
anon 2023-08-21 16:27:01 +02:00
commit 8708016752
2 changed files with 6 additions and 4 deletions

View File

@ -1,17 +1,17 @@
# Programs to check warnings for as defined by the chad standard # Programs to check warnings for as defined by the chad standard
ARGS:=${TARGET} < source/main.c
GCC:=gcc GCC:=gcc
D.versions:=-D_XOPEN_SOURCE=700 D.versions:=-D_XOPEN_SOURCE=700
GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef
CLANG:=clang CLANG:=clang
CLANG.warnings:=-Weverything CLANG.warnings:=-Weverything
VALGRIND:=valgrind VALGRIND:=valgrind
VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all
TARGET:=hl
ARGS:=${TARGET} < source/main.c
chad_test: chad_test:
${GCC} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} ${GCC} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET}
${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} ${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET}

View File

@ -15,3 +15,5 @@ ifeq (${DEBUG},1)
else else
CFLAGS += -O2 -flto=auto CFLAGS += -O2 -flto=auto
endif endif
TARGET:=hl