include config.mk
-include tests/chad.mk
+include chad.mk
SRC.dir:=source
-OBJ.dir:=obj
+OBJ.dir:=object
SRC:=$(shell find ${SRC.dir} -iname '*.c')
HDR:=$(shell find ${SRC.dir} -iname '*.h')
--- /dev/null
+# Programs to check warnings for as defined by the chad standard
+
+GCC:=gcc
+GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef
+
+CLANG:=clang
+CLANG.warnings:=-Weverything
+
+VALGRIND:=valgrind
+VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all
+
+TARGET:=hl
+ARGS:=${TARGET} < source/main.c
+
+chad_test:
+ ${GCC} ${GCC.warnings} ${SRC} -o ${TARGET}
+ ${CLANG} ${GCC.warnings} ${SRC} -o ${TARGET}
+ ${VALGRIND} ${VALGRIND.flags} $(shell pwd)/${TARGET} ${ARGS}
+++ /dev/null
-# Programs to check warnings for as defined by the chad standard
-
-GCC:=gcc
-GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef
-
-CLANG:=clang
-CLANG.warnings:=-Weverything
-
-VALGRIND:=valgrind
-VALGRIND.flags:=--track-origins=yes --leak-check=full --show-leak-kinds=all
-
-TARGET:=hl
-ARGS:=${TARGET} < source/main.c
-
-chad_test:
- ${GCC} ${GCC.warnings} ${SRC} -o ${TARGET}
- ${CLANG} ${GCC.warnings} ${SRC} -o ${TARGET}
- ${VALGRIND} ${VALGRIND.flags} $(shell pwd)/${TARGET} ${ARGS}