summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f4b2ef8..15186c0 100644
--- a/Makefile
+++ b/Makefile
@@ -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"

Generated by cgit