From b6a3cdcd59836e3041227c25333cfc2ef3476ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Sat, 27 Oct 2018 17:19:52 +0200 Subject: [PATCH] disabled debug mode and added clean target --- interpreter/Makefile | 5 ++++- test/Makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 \