diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-01-09 17:00:35 +0900 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-01-09 17:00:35 +0900 |
commit | 3e989921c29534d38dbf6009851389fc4f4e226e (patch) | |
tree | 0f9e9c97e87c90ce90c596b5a9c0230d063e2952 /Makefile | |
parent | 8522c8656c313a9a3b956b0e6c816a8e54d15b7b (diff) | |
download | microbbs-3e989921c29534d38dbf6009851389fc4f4e226e.tar.gz microbbs-3e989921c29534d38dbf6009851389fc4f4e226e.zip |
Mem leak fixes, warning fixes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |