From aba6ad76b59af8c8a59d9317459d3282a9cc39ae Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 23 Dec 2024 19:49:31 +0100 Subject: makeup --- config.mk | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3