dwmstatus added
This commit is contained in:
1 parent
5803f8f863
commit
3679115ebc
13 files changed
+708
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Makefile
|
||||
|
||||
include config.mk
|
||||
|
||||
all: options dwmstatus_xcb dwmstatus_std
|
||||
|
||||
options:
|
||||
|
||||
@echo " CC = ${CC}"
|
||||
@echo "CFLAGS = ${CFLAGS}"
|
||||
@echo " LIBS = ${LIBS}"
|
||||
|
||||
config.h: config.def.h
|
||||
|
||||
@echo "cp config.def.h -> config.h"
|
||||
cp config.def.h config.h
|
||||
|
||||
dwmstatus.o: dwmstatus.c dwmstatus.h config.h
|
||||
${CC} ${CFLAGS} -c dwmstatus.c
|
||||
|
||||
dwmstatus_xcb.o: dwmstatus.o dwmstatus_xcb.c
|
||||
${CC} ${CFLAGS} -c dwmstatus_xcb.c
|
||||
|
||||
dwmstatus_xcb: dwmstatus.o dwmstatus_xcb.o
|
||||
${CC} ${CFLAGS} $@.o dwmstatus.o -o $@ ${LIBS}
|
||||
|
||||
dwmstatus_std.o: dwmstatus.o dwmstatus_std.c
|
||||
${CC} ${CFLAGS} -c dwmstatus_std.c
|
||||
|
||||
dwmstatus_std: dwmstatus.o dwmstatus_std.o
|
||||
${CC} ${CFLAGS} $@.o dwmstatus.o -o $@ ${LIBS}
|
||||
|
||||
install:
|
||||
cp -f dwmstatus_std ${PREFIX}/bin/dwmstatus_std
|
||||
cp -f dwmstatus_xcb ${PREFIX}/bin/dwmstatus_xcb
|
||||
|
||||
clean:
|
||||
rm -f *.o dwmstatus_std dwmstatus_xcb
|
||||
Reference in new issue
Block a user