From 7ceb69b640fc83ec4179603f0a32e1d018a992a8 Mon Sep 17 00:00:00 2001 From: anon <anon@anon.anon> Date: Mon, 18 Sep 2023 21:55:50 +0200 Subject: [PATCH] minor Makefile cleaning --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a4108e5..0284d34 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ TARGET:=hl -CFLAGS:=-std=c99 -Wall -Wextra -Wpedantic -Wshadow -Wundef -CPPFLAGS:=-Iinclude -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 +CFLAGS := -std=c99 +CPPFLAGS := -Iinclude -D_GNU_SOURCE DEBUG=1 ifeq (${DEBUG},1) - CFLAGS += -Og -ggdb -pg -fno-inline + CFLAGS += -Og -ggdb -pg -fno-inline -Wall -Wextra -Wpedantic -Wshadow -Wundef else - CFLAGS += -O2 -flto=auto + CFLAGS += -O2 -flto=auto -D_FORTIFY_SOURCE=2 endif PREFIX:=/usr/bin @@ -17,8 +17,8 @@ USER=$(shell whoami) include chad.mk -SRC.dir:=source -OBJ.dir:=object +SRC.dir := source +OBJ.dir := object SRC:=$(shell find ${SRC.dir} -iname '*.c') HDR:=$(shell find ${SRC.dir} -iname '*.h')