Added stats code to Makefile
For when not using CMake, e.g. when running tests with 'make test'.
This commit is contained in:
parent
2597008035
commit
a96902717c
5
Makefile
5
Makefile
|
@ -12,7 +12,7 @@ LIBS=-lm -lreadline
|
||||||
|
|
||||||
TARGET = picoc
|
TARGET = picoc
|
||||||
SRCS = picoc.c table.c lex.c parse.c expression.c heap.c type.c \
|
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 \
|
platform/platform_unix.c platform/library_unix.c \
|
||||||
cstdlib/stdio.c cstdlib/math.c cstdlib/string.c cstdlib/stdlib.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 \
|
cstdlib/time.c cstdlib/errno.c cstdlib/ctype.c cstdlib/stdbool.c \
|
||||||
|
@ -34,7 +34,7 @@ clean:
|
||||||
|
|
||||||
count:
|
count:
|
||||||
@echo "Core:"
|
@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 ""
|
||||||
@echo "Everything:"
|
@echo "Everything:"
|
||||||
@cat $(SRCS) *.h */*.h | wc
|
@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
|
platform.o: platform.c picoc.h interpreter.h platform.h
|
||||||
include.o: include.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
|
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/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
|
platform/library_unix.o: platform/library_unix.c interpreter.h platform.h
|
||||||
cstdlib/stdio.o: cstdlib/stdio.c interpreter.h platform.h
|
cstdlib/stdio.o: cstdlib/stdio.c interpreter.h platform.h
|
||||||
|
|
Loading…
Reference in a new issue