From dc95b7947d8427e6a98ca8f004cf902201c72010 Mon Sep 17 00:00:00 2001 From: Emil Date: Mon, 21 Aug 2023 08:18:26 -0600 Subject: [PATCH] Move target out of chad.mk --- chad.mk | 8 ++++---- config.mk | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chad.mk b/chad.mk index 1acd32a..21d7dd9 100644 --- a/chad.mk +++ b/chad.mk @@ -1,17 +1,17 @@ # Programs to check warnings for as defined by the chad standard +ARGS:=${TARGET} < source/main.c + GCC:=gcc D.versions:=-D_XOPEN_SOURCE=700 -GCC.warnings:=-Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef +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} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} ${CLANG} ${D.versions} ${GCC.warnings} ${SRC} -o ${TARGET} diff --git a/config.mk b/config.mk index f883c75..9397d4a 100644 --- a/config.mk +++ b/config.mk @@ -15,3 +15,5 @@ ifeq (${DEBUG},1) else CFLAGS += -O2 -flto=auto endif + +TARGET:=hl