diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b3ac07 --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +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 + + |