]> git.xolatile.top Git - public-libhl.git/commitdiff
Merge branch 'master' of https://git.lain.church/emil/hl
authoranon <anon@anon.anon>
Mon, 21 Aug 2023 14:17:06 +0000 (16:17 +0200)
committeranon <anon@anon.anon>
Mon, 21 Aug 2023 14:17:06 +0000 (16:17 +0200)
1  2 
chad.mk
source/main.c

diff --cc chad.mk
index e5ebf78a7861006c1327cea5624da03f2d0b71a9,fe9fa97000ced9c91dceb78c5347ad6cee33e8fd..1acd32a3b7e753840babb8c44a2402cd5c6986ef
+++ b/chad.mk
@@@ -1,23 -1,18 +1,18 @@@
- # Make script for Chad projects
- # This script depends on the following variables
- #  - OUT       : output program name
- #  - OUTARGS   : default flags to fork ${OUT} with
+ # Programs to check warnings for as defined by the chad standard
  
- #
- 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
 -
 +D.versions:=-D_XOPEN_SOURCE=700
 +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} ${D.versions} ${GCC.warnings} ${SRC} -o ${OUT}
-       ${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${OUT}
-       ${VALGRIND} ${VALGRIND.flags} ${OUT} ${OUTARGS}
+ TARGET:=hl
+ ARGS:=${TARGET} < source/main.c
  
- .DEFAULT_GOAL:=main
+ chad_test:
 -      ${GCC} ${GCC.warnings} ${SRC} -o ${TARGET}
 -      ${CLANG} ${GCC.warnings} ${SRC} -o ${TARGET}
++      ${GCC} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET}
++      ${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET}
+       ${VALGRIND} ${VALGRIND.flags} $(shell pwd)/${TARGET} ${ARGS}
diff --cc source/main.c
Simple merge