From 927ab156f3ea4caac01e45e1d96e719fa3a53638 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 25 Feb 2017 21:06:00 +0000 Subject: GLued up socket connectiona and messaging --- Makefile | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3