blob: b2970e945efb99376e89c8efd35db94db49c8e55 (
plain)
1 out=luminous
2 CCOPTS=-Wall
3
4 BINDIR=/usr/bin
5 INITDIR=/etc/rc.d
6 CONFDIR=/etc/
7
8 VERSION = 1
9 PATCHLEVEL = 1
10 SUBLEVEL = 0
11 EXTRAVERSION = -rc2
12
13 VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)"
14
15
16 all:
17 if [ ! -d obj ]; then mkdir obj; fi
18 cc $(CCOPTS) $(DBG) src/config.c -c -o obj/config.o
19 cc $(CCOPTS) $(DBG) -DVERSTR=$(VERSTR) obj/*.o src/main.c -o luminous
20
21 install:
22 install -D luminous ${DESTDIR}/${BINDIR}/luminous
23 install -D init.sh ${DESTDIR}/${INITDIR}/luminous
24 install -D sample.conf ${DESTDIR}/${CONFDIR}/luminous.conf
25
26 debug:
27 make DBG=-g
28
29 leak-test:
30 make debug
31 valgrind --error-exitcode=1 luminous -l 800 && printf "\n\n--- No leaks found!\n\n"
32 valgrind --error-exitcode=1 luminous -l 150 && printf "\n\n--- No leaks found!\n\n"
|