summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-01-09 17:00:35 +0900
committerFreeArtMan <dos21h@gmail.com>2015-01-09 17:00:35 +0900
commit3e989921c29534d38dbf6009851389fc4f4e226e (patch)
tree0f9e9c97e87c90ce90c596b5a9c0230d063e2952 /Makefile
parent8522c8656c313a9a3b956b0e6c816a8e54d15b7b (diff)
downloadmicrobbs-3e989921c29534d38dbf6009851389fc4f4e226e.tar.gz
microbbs-3e989921c29534d38dbf6009851389fc4f4e226e.zip
Mem leak fixes, warning fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 46d2144..4050a7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PROJECT=microbbs
CC=gcc
-CFLAGS=
+CFLAGS=
SOURCES=articles.c bbsconfig.c buildinfo.c captcha.c file_use.c ini.c list.c login.c logs.c mmm.c motd.c sds.c session.c statistics.c sysinfo.c telnetd.c textview.c todo.c vote.c
OBJECTS=$(SOURCES:.c=.o)
BUILD_DIR=build_dir
@@ -25,6 +25,10 @@ $(PROJECT): $(SOURCES)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $(BUILD_DIR)/$@
+leak:
+ valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./$(PROJECT)
+
+
clean:
rm -rf *.o microbbs
cd ./$(BUILD_DIR); rm -rf *.o