diff options
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 |