From 4563949de32e17ab26e4f7d6307cd7521cedfcf9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 24 Sep 2022 00:25:00 +0200 Subject: Add support for my current WM, sway(1) --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4ba764..fe6c48f 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,19 @@ target = mstatus CC = cc -CFLAGS = -O3 -std=c11 -pedantic -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes +CFLAGS = -O3 -std=c11 -pedantic -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Werror LDFLAGS = -lX11 PREFIX = /usr/local +HAS_DWM = false + all: ${target} ${target}: mstatus.c - ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $< + ${HAS_DWM} \ + && ${CC} ${CFLAGS} ${LDFLAGS} -DHAS_DWM -o $@ $< \ + || ${CC} ${CFLAGS} -o $@ $< -.PHONY: clean install uninstall clean: rm -f ${target} ${objects} -- cgit v1.2.3