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

SURPRISE Build System Update

This commit is contained in:
Emil
2023-08-21 07:05:27 -06:00
parent 966b90056e
commit d883445bd1
5 changed files with 66 additions and 39 deletions

22
chad.mk
View File

@ -1,22 +0,0 @@
# Make script for Chad projects
# This script depends on the following variables
# - OUT : output program name
# - OUTARGS : default flags to fork ${OUT} with
#
CHAD_DEBUG:=-Og -ggdb -pg -fno-inline
# 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
chad_test:
${GCC} ${GCC.warnings} ${SRC} -o ${OUT}
${CLANG} ${GCC.warnings} ${SRC} -o ${OUT}
${VALGRIND} ${VALGRIND.flags} ${OUT} ${OUTARGS}
.DEFAULT_GOAL:=main