summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 17 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 84e14c2..2e26925 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,22 @@
+PROJECT=agni
+CC=gcc
+CFLAGS=-Wall
+
make:
- gcc buf.c -c
- gcc mmm.c -c
- gcc darray.c -c
- gcc mq_cmd.c -c
- gcc tbl_qcmd.c -c
- gcc util.c -c
- gcc sock_conn.c -c
- gcc irc_parse.c -c
- gcc tbl_qcmd.o mq_cmd.o buf.o mmm.o darray.o util.o sock_conn.o \
+ $(CC) $(CFLAGS) buf.c -c
+ $(CC) $(CFLAGS) mmm.c -c
+ $(CC) $(CFLAGS) darray.c -c
+ $(CC) $(CFLAGS) mq_cmd.c -c
+ $(CC) $(CFLAGS) tbl_qcmd.c -c
+ $(CC) $(CFLAGS) util.c -c
+ $(CC) $(CFLAGS) sock_conn.c -c
+ $(CC) $(CFLAGS) irc_parse.c -c
+ $(CC) $(CFLAGS) tbl_qcmd.o mq_cmd.o buf.o mmm.o darray.o util.o sock_conn.o \
irc_parse.o agni.c \
- -o agni -std=c11 -lrt
+ -o $(PROJECT) -std=c11 -lrt
+
+leak:
+ valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./$(PROJECT)
clean:
rm -f agni *.o \ No newline at end of file