summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4edfc39..75109ac 100644
--- a/Makefile
+++ b/Makefile
@@ -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