Added {Free,Open}BSD support | minor edits
This commit is contained in:
parent
6be2a10558
commit
adb7a49803
17
Makefile
17
Makefile
@ -1,7 +1,12 @@
|
|||||||
PREFIX ?= /usr/local
|
PREFIX := /usr/local
|
||||||
CC ?= cc
|
CC := cc
|
||||||
CFLAGS = -pedantic -Wall -Wno-deprecated-declarations -Os
|
CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
|
||||||
LDFLAGS = -lX11
|
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
|
all: options dwmblocks
|
||||||
|
|
||||||
@ -18,7 +23,7 @@ blocks.h:
|
|||||||
cp blocks.def.h $@
|
cp blocks.def.h $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
${RM} *.o *.gch dwmblocks
|
rm -f *.o *.gch dwmblocks
|
||||||
|
|
||||||
install: dwmblocks
|
install: dwmblocks
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
@ -26,6 +31,6 @@ install: dwmblocks
|
|||||||
chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
|
chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
${RM} ${DESTDIR}${PREFIX}/bin/dwmblocks
|
rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks
|
||||||
|
|
||||||
.PHONY: all options clean install uninstall
|
.PHONY: all options clean install uninstall
|
||||||
|
Loading…
Reference in New Issue
Block a user