dwmblocks/Makefile
anntnzrb 6be2a10558 Makefile tweaks
Modified according to
[dwm](http://git.suckless.org/dwm/file/Makefile.html) 's
Makefile file.
2021-05-28 12:31:50 -05:00

32 lines
664 B
Makefile

PREFIX ?= /usr/local
CC ?= cc
CFLAGS = -pedantic -Wall -Wno-deprecated-declarations -Os
LDFLAGS = -lX11
all: options dwmblocks
options:
@echo dwmblocks build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
dwmblocks: dwmblocks.c blocks.def.h blocks.h
${CC} -o dwmblocks dwmblocks.c ${CFLAGS} ${LDFLAGS}
blocks.h:
cp blocks.def.h $@
clean:
${RM} *.o *.gch dwmblocks
install: dwmblocks
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
uninstall:
${RM} ${DESTDIR}${PREFIX}/bin/dwmblocks
.PHONY: all options clean install uninstall