aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-09-24 00:25:00 +0200
committerThomas Voss <thomasvoss@live.com> 2022-09-24 00:25:00 +0200
commit4563949de32e17ab26e4f7d6307cd7521cedfcf9 (patch)
treecfeef6c7eb62c8eaca47093aaf912269ccc79a73 /Makefile
parent3e243f31d8a261004f3e311c7ec5cb278d892a18 (diff)
Add support for my current WM, sway(1)HEADv1.0master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
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}