dwmblocks/Makefile

32 lines
664 B
Makefile
Raw Normal View History

PREFIX ?= /usr/local
CC ?= cc
CFLAGS = -pedantic -Wall -Wno-deprecated-declarations -Os
2020-12-23 18:52:47 +01:00
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 $@
2019-03-24 23:31:05 +01:00
clean:
${RM} *.o *.gch dwmblocks
install: dwmblocks
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
2020-03-02 13:42:26 +01:00
uninstall:
${RM} ${DESTDIR}${PREFIX}/bin/dwmblocks
.PHONY: all options clean install uninstall