improved testing and added general Makefile
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
CC=gcc
|
||||
objects= stack.o method_dispatcher/method_dispatcher.o interpreter/core_methods.o interpreter/interpreter.o
|
||||
|
||||
all: $(objects) test
|
||||
|
||||
CFLAG= -c -O -o
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAG) $@ $<
|
||||
|
||||
.PHONY: test
|
||||
|
||||
test:
|
||||
cd test && make
|
||||
cd method_dispatcher/test && make
|
||||
cd interpreter/test && make
|
Reference in New Issue
Block a user