summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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