blob: 1b3ac074d8b6e28fa966b1a9308b8967d2254b1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
|