summaryrefslogtreecommitdiff
path: root/Makefile
blob: 15186c08a51858c9b619336d89b026965750516b (plain)
    1 out=luminous
    2 CCOPTS=-Wall
    3 
    4 BINDIR=/usr/bin
    5 INITDIR=/etc/rc.d
    6 CONFDIR=/etc/
    7 
    8 all:
    9 	if [ ! -d obj ]; then mkdir obj; fi
   10 	cc $(CCOPTS) $(DBG) src/config.c -c -o obj/config.o
   11 	cc $(CCOPTS) $(DBG) obj/*.o src/main.c -o luminous
   12 
   13 install:
   14 	install -D luminous    ${DESTDIR}/${BINDIR}/luminous
   15 	install -D init.sh     ${DESTDIR}/${INITDIR}/luminous
   16 	install -D sample.conf ${DESTDIR}/${CONFDIR}/luminous.conf
   17 
   18 debug:
   19 	make DBG=-g
   20 
   21 leak-test:
   22 	make debug
   23 	valgrind --error-exitcode=1 luminous -l 800 && printf "\n\n--- No leaks found!\n\n"
   24 	valgrind --error-exitcode=1 luminous -l 150 && printf "\n\n--- No leaks found!\n\n"

Generated by cgit