aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-12-23 19:49:31 +0100
committerJoe <rbo@gmx.us>2024-12-23 19:49:31 +0100
commitaba6ad76b59af8c8a59d9317459d3282a9cc39ae (patch)
treee5b0184de1e54021a837d83f41f4fd89acc3a3ef
parentfix (diff)
downloaddwm-aba6ad76b59af8c8a59d9317459d3282a9cc39ae.tar.gz
dwm-aba6ad76b59af8c8a59d9317459d3282a9cc39ae.tar.bz2
dwm-aba6ad76b59af8c8a59d9317459d3282a9cc39ae.tar.xz
dwm-aba6ad76b59af8c8a59d9317459d3282a9cc39ae.tar.zst
dwm-aba6ad76b59af8c8a59d9317459d3282a9cc39ae.zip
makeup
-rw-r--r--config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index cfef3dc..0ce62ed 100644
--- a/config.mk
+++ b/config.mk
@@ -28,7 +28,12 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-r
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} -DHOME=\"${HOME}/\" -DHOMEBIN=\"${HOME}/.local/bin/\"
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+HOSTNAME = $(shell /usr/bin/hostame -s)
+
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -march=alderlake -Os -pipe ${INCS} ${CPPFLAGS}
+ifeq $(${HOSTNAME}, mother)
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -march=haswell -Os -pipe ${INCS} ${CPPFLAGS}
+endif
LDFLAGS = ${LIBS}
# Solaris