diff --git a/chad.mk b/chad.mk index dc87793..b300ac9 100644 --- a/chad.mk +++ b/chad.mk @@ -14,6 +14,6 @@ VALGRIND:=valgrind VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all chad_test: - ${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} - ${GCC} ${D.versions} ${GCC.debug} ${GCC.warnings} ${SRC} -o ${TARGET} + ${CLANG} ${CPPFLAGS} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} + ${GCC} ${CPPFLAGS} ${D.versions} ${GCC.debug} ${GCC.warnings} ${SRC} -o ${TARGET} ${VALGRIND} ${VALGRIND.flags} $(shell pwd)/${TARGET} ${ARGS}