-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (39 loc) · 1004 Bytes
/
Makefile
File metadata and controls
39 lines (39 loc) · 1004 Bytes
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
objs=${exe}.o util.o main.o font.o XSXData.o button.o
objs+=clock.o load.o status_file.o window.o toolbar.o
objs+=battery.o temperature.o text_widget.o
include config.mk
cflags+=-std=c11
cflags+=-D_XOPEN_SOURCE=700
cflags+=-D_DEFAULT_SOURCE
cflags+=-D_BSD_SOURCE
cflags+=-Wall -W -Werror -g
ldflags+=${LDFLAGS}
ldflags+=-lxcb -lxcb-cursor
CFLAGS+=${cflags}
PREFIX=/usr
exe=xstatus
installdir=${DESTDIR}${PREFIX}
all:
cd libjb && ${MAKE} libjb.a
make ${exe}
${exe}: ${objs} libjb/libjb.a
${CC} ${cflags} ${ldflags} ${objs} ${static} -o $@
strip -s -o xstatus_stripped xstatus
ls -l xstatus_stripped >> sz.log
rm -f xstatus_stripped
tail sz.log
include depend.mk
clean:
cd libjb && ${MAKE} clean
rm -f ${exe} *.o
install:
# cd libjb && ${MAKE} install
install -d ${installdir}/bin
install -s xstatus ${installdir}/bin
depend:
${CC} -E -MM *.c > depend.mk
cppcheck:
cppcheck --enable=all --inconclusive --std=c11 \
. 2> cppcheck.log
echo 'Results written to cppcheck.log'
#EOF