diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -3,13 +3,22 @@ CCOPTS=-Wall BINDIR=/usr/bin INITDIR=/etc/rc.d +CONFDIR=/etc/ all: - cc $(CCOPTS) $(DBG) src/main.c -o luminous + 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 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" |