1
0
mirror of https://git.lain.church/emil/libhl.git synced 2025-06-16 15:37:57 +00:00

Restructuring of build system

This commit is contained in:
Emil
2023-08-21 07:30:48 -06:00
parent ce284f667b
commit f92a06b410
2 changed files with 2 additions and 2 deletions

18
chad.mk Normal file
View File

@ -0,0 +1,18 @@
# 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}