diff options
author | anntnzrb <anntnzrb@protonmail.com> | 2021-08-05 07:55:45 -0500 |
---|---|---|
committer | anntnzrb <anntnzrb@protonmail.com> | 2021-08-05 07:55:45 -0500 |
commit | adb7a49803346cf1c8a10e147c5e93a42bc10169 (patch) | |
tree | b55d5b67c87fb5a46271f7049abd5e32d0975174 /Makefile | |
parent | 6be2a10558f8df9545a79f89a6a9cb40ea7ca6a7 (diff) |
Added {Free,Open}BSD support | minor edits
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,7 +1,12 @@ -PREFIX ?= /usr/local -CC ?= cc -CFLAGS = -pedantic -Wall -Wno-deprecated-declarations -Os -LDFLAGS = -lX11 +PREFIX := /usr/local +CC := cc +CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os +LDFLAGS := -lX11 + +# FreeBSD (uncomment) +#LDFLAGS += -L/usr/local/lib -I/usr/local/include +# # OpenBSD (uncomment) +#LDFLAGS += -L/usr/X11R6/lib -I/usr/X11R6/include all: options dwmblocks @@ -18,7 +23,7 @@ blocks.h: cp blocks.def.h $@ clean: - ${RM} *.o *.gch dwmblocks + rm -f *.o *.gch dwmblocks install: dwmblocks mkdir -p ${DESTDIR}${PREFIX}/bin @@ -26,6 +31,6 @@ install: dwmblocks chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks uninstall: - ${RM} ${DESTDIR}${PREFIX}/bin/dwmblocks + rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks .PHONY: all options clean install uninstall |