diff --git a/interpreter/Makefile b/interpreter/Makefile index 07d3c87..73f7ffb 100644 --- a/interpreter/Makefile +++ b/interpreter/Makefile @@ -3,7 +3,7 @@ objects= stack.o method_dispatcher/method_dispatcher.o interpreter/core_methods. all: $(objects) test -CFLAG= -c -DDEBUG -O -o +CFLAG= -c -O -o %.o: %.c $(CC) $(CFLAG) $@ $< @@ -14,3 +14,6 @@ test: cd test && make cd method_dispatcher/test && make cd interpreter/test && make + +clean: + - rm $(objects) diff --git a/test/Makefile b/test/Makefile index 1466c91..01a3151 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAG= -c -g -O -DDEBUG -I ../interpreter -o +CFLAG= -c -g -O -I ../interpreter -o objects=../interpreter/stack.o \ ../interpreter/interpreter/core_methods.o \ ../interpreter/interpreter/interpreter.o \