out=luminous CCOPTS=-Wall BINDIR=/usr/bin INITDIR=/etc/rc.d CONFDIR=/etc/ all: if [ ! -d obj ]; then mkdir obj; fi cc $(CCOPTS) $(DBG) src/config.c -c -o obj/config.o cc $(CCOPTS) $(DBG) obj/*.o src/main.c -o luminous install: install -D luminous ${DESTDIR}/${BINDIR}/luminous install -D init.sh ${DESTDIR}/${INITDIR}/luminous install -D sample.conf ${DESTDIR}/${CONFDIR}/luminous.conf debug: make DBG=-g leak-test: make debug valgrind --error-exitcode=1 luminous -l 800 && printf "\n\n--- No leaks found!\n\n" valgrind --error-exitcode=1 luminous -l 150 && printf "\n\n--- No leaks found!\n\n"