1
0
mirror of https://git.lain.church/emil/libhl.git synced 2025-05-09 21:26:45 +00:00

minor Makefile cleaning

This commit is contained in:
anon 2023-09-18 21:55:50 +02:00
parent 0545096efb
commit 7ceb69b640

View File

@ -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