From a96902717c77810c25eef18e91fc8cd84bab1367 Mon Sep 17 00:00:00 2001 From: Russell Joyce Date: Tue, 9 Jun 2020 12:52:35 +0100 Subject: [PATCH] Added stats code to Makefile For when not using CMake, e.g. when running tests with 'make test'. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7bc63e3..ee2332d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ LIBS=-lm -lreadline TARGET = picoc SRCS = picoc.c table.c lex.c parse.c expression.c heap.c type.c \ - variable.c clibrary.c platform.c include.c debug.c \ + variable.c clibrary.c platform.c include.c debug.c stats.c \ platform/platform_unix.c platform/library_unix.c \ cstdlib/stdio.c cstdlib/math.c cstdlib/string.c cstdlib/stdlib.c \ cstdlib/time.c cstdlib/errno.c cstdlib/ctype.c cstdlib/stdbool.c \ @@ -34,7 +34,7 @@ clean: count: @echo "Core:" - @cat picoc.h interpreter.h picoc.c table.c lex.c parse.c expression.c platform.c heap.c type.c variable.c include.c debug.c | grep -v '^[ ]*/\*' | grep -v '^[ ]*$$' | wc + @cat picoc.h interpreter.h picoc.c table.c lex.c parse.c expression.c platform.c heap.c type.c variable.c include.c debug.c stats.c | grep -v '^[ ]*/\*' | grep -v '^[ ]*$$' | wc @echo "" @echo "Everything:" @cat $(SRCS) *.h */*.h | wc @@ -53,6 +53,7 @@ clibrary.o: clibrary.c picoc.h interpreter.h platform.h platform.o: platform.c picoc.h interpreter.h platform.h include.o: include.c picoc.h interpreter.h platform.h debug.o: debug.c interpreter.h platform.h +stats.o: stats.c stats.h interpreter.h platform.h platform/platform_unix.o: platform/platform_unix.c picoc.h interpreter.h platform.h platform/library_unix.o: platform/library_unix.c interpreter.h platform.h cstdlib/stdio.o: cstdlib/stdio.c interpreter.h platform.h