From adb7a49803346cf1c8a10e147c5e93a42bc10169 Mon Sep 17 00:00:00 2001 From: anntnzrb Date: Thu, 5 Aug 2021 07:55:45 -0500 Subject: Added {Free,Open}BSD support | minor edits --- Makefile | 17 +++++++++++------ 1 file 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 -- cgit v1.2.3