summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2024-07-19 11:12:44 -0400
committerGitHub <noreply@github.com>2024-07-19 11:12:44 -0400
commit8282394bdc273a8b573fda7ea1e5a9e490978c6b (patch)
tree83b84102a7f079fd7b9792fb44322680ae3114aa /config.mk
parent499d9e523a156e55511cee24ac30da9c0c9919fb (diff)
parent0485f1eb9c1624d443fbf14992d281336a859dce (diff)
Merge pull request #242 from fesowowako/masterHEADmaster
Merge Suckless Updates, Refactor Config.h and Enhance dwm Performance
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 0d70060..e013946 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# dwm version
-VERSION = 6.4
+VERSION = 6.5
# Customize below to fit your system
@@ -25,10 +25,15 @@ FREETYPEINC = /usr/include/freetype2
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-res
+# Optional compiler optimisations may create smaller binaries and
+# faster code, but increases compile time.
+# See https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
+#OPTIMISATIONS = -march=native -flto=auto -O3
+
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
+CFLAGS = ${OPTIMISATIONS} -std=c99 -pedantic -Wall -Wno-unused-function -Wno-deprecated-declarations ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris