diff options
author | Thomas Voss <thomasvoss@live.com> | 2022-09-24 00:25:00 +0200 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2022-09-24 00:25:00 +0200 |
commit | 4563949de32e17ab26e4f7d6307cd7521cedfcf9 (patch) | |
tree | cfeef6c7eb62c8eaca47093aaf912269ccc79a73 /Makefile | |
parent | 3e243f31d8a261004f3e311c7ec5cb278d892a18 (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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} |