diff options
author | ZoRo <dos21h@gmail.com> | 2020-04-05 16:31:20 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2020-04-05 16:31:20 +0100 |
commit | de58c2e89c6d38ae21e12b83902defa171b0b635 (patch) | |
tree | 632d661b8f3eb686bfd1788e7148044ef1fe8431 /Makefile | |
download | dwmstatus-pixel-de58c2e89c6d38ae21e12b83902defa171b0b635.tar.gz dwmstatus-pixel-de58c2e89c6d38ae21e12b83902defa171b0b635.zip |
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 + + |