out=luminous CCOPTS=-Wall BINDIR=/usr/bin INITDIR=/etc/rc.d CONFDIR=/etc/ VERSION = 1 PATCHLEVEL = 3 SUBLEVEL = 0 EXTRAVERSION = VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)" DATESTR = "$(shell date '+%F')" all: if [ ! -d obj ]; then mkdir obj; fi cc $(CCOPTS) $(DBG) src/config.c -c -o obj/config.o cc $(CCOPTS) $(DBG) \ -DVERSTR=$(VERSTR) \ -D DATESTR=$(DATESTR) \ 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"