aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-07-11 00:03:04 +0200
committerFederico Angelilli <code@fedang.net>2024-07-11 00:03:04 +0200
commit39e0f4e90dccbfb38db14a0cd4f596c1b5006b19 (patch)
treee4b0aa8ef9f678ce41ba8a3cbad05276eb3450c5 /Makefile
parent26aaffc0e7293e4d4e48362159572e205c082068 (diff)
Release flags
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 796df02..cf55cc2 100644
--- a/Makefile
+++ b/Makefile
@@ -12,11 +12,11 @@ PCDEP = xcb \
"xcb-randr >= 1.5" \
pangocairo
-CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Wall -Werror
-LDFLAGS := $(shell pkg-config --libs $(PCDEP)) -lm
+CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Wall -Werror $(CFLAGS)
+LDFLAGS := $(shell pkg-config --libs $(PCDEP)) -lm $(LDFLAGS)
ifdef RELEASE
-CFLAGS += -O2
+CFLAGS += -O2 -DRELEASE=1
else
CFLAGS += -ggdb
endif