]> git.xolatile.top Git - public-libhl.git/commitdiff
minor Makefile cleaning
authoranon <anon@anon.anon>
Mon, 18 Sep 2023 19:55:50 +0000 (21:55 +0200)
committeranon <anon@anon.anon>
Mon, 18 Sep 2023 19:55:50 +0000 (21:55 +0200)
Makefile

index a4108e5661934a360318f695e55fcd2521f6a90d..0284d34ab3298db9a40f453a8ce78fd090a00ae6 100644 (file)
--- 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')