summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-02-25 21:06:00 +0000
committerFreeArtMan <dos21h@gmail.com>2017-02-25 21:06:00 +0000
commit927ab156f3ea4caac01e45e1d96e719fa3a53638 (patch)
tree29a78376c1b6c2be5340c38a386b17639c2f7299 /Makefile
parent913db4648dabfce65e58a128a35c356ac0042ae9 (diff)
downloadagni-927ab156f3ea4caac01e45e1d96e719fa3a53638.tar.gz
agni-927ab156f3ea4caac01e45e1d96e719fa3a53638.zip
GLued up socket connectiona and messaging
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