blob: 1b3ac074d8b6e28fa966b1a9308b8967d2254b1f (
plain) (
tree)
|
|
CC=clang
CFLAGS=-I.
LDFLAGS=-lX11
SRC= dwmstatus.c status/time.c status/date.c status/temp.c status/batt.c status/cpu.c
OBJ= ${SRC:.c=.o}
#include status/make.mk
.c.o:
@echo CC $<
@${CC} ${CFLAGS} -o $@ -c $<
dwmstatus: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
kconfig2h:
$(CC) -c kconf2h/kconf2h_parser.c
$(CC) kconf2h/kconf2h.c kconf2h_parser.o -o kconf2h/kconf2h
menuconfig: kconfig2h
./mconf Kconfig
kconf2h/kconf2h .config kconfig.h
leak:
valgrind --leak-check=full --time-stamp=yes --track-origins=yes --log-file=log.txt ./dwmstatus
pack: dwmstatus
strip ./dwmstatus
upx ./dwmstatus
clean:
rm -rf dwmstatus
rm -rf *.o
rm -rf status/*.o
test:
DISPLAY=:1.0
xinit ./dwm $* -- :1
|