From 5a9a9d5bc1ccc70a76ed980444ce440f58995378 Mon Sep 17 00:00:00 2001 From: speedie Date: Tue, 15 Nov 2022 18:30:24 +0100 Subject: [PATCH] add CFLAGS --- options.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/options.mk b/options.mk index c042c07..0dd5921 100644 --- a/options.mk +++ b/options.mk @@ -24,9 +24,12 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender -lgd \ `$(PKG_CONFIG) --libs harfbuzz` \ `$(PKG_CONFIG) --libs freetype2` +CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-result -Wno-unused-function -Ofast -march=native $(INCS) $(CPPFLAGS) + + # flags STCPPFLAGS = -DVERSION=\"$(VERSION)\" -DICON=\"$(ICONPREFIX)/$(ICONNAME)\" -D_XOPEN_SOURCE=600 -STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -Ofast -march=native -mtune=native +STCFLAGS = $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) STLDFLAGS = $(LIBS) $(LDFLAGS) # OpenBSD: