Added {Free,Open}BSD support | minor edits

This commit is contained in:
anntnzrb 2021-08-05 07:55:45 -05:00
parent 6be2a10558
commit adb7a49803
1 changed files with 11 additions and 6 deletions

View File

@ -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