CC = g++ CFLAGS = -Wall -Werror -g -pg LIBS = -lm OBJS = src/component.cpp src/lex.cpp src/module.cpp src/wire.cpp src/netlist.cpp src/simulator.cpp src/token.cpp HEADERS = src/token.h src/module.h all: $(OBJS) $(HEADERS) clean $(CC) $(OBJS) $(CFLAGS) $(LIBS) -o myevl test: test_bus test_counter test_io test_lfsr10 test_s15850 test_simple_comb test_simple_seq test_tris_lut test_cpu32 test_cpu8 test_bus: all ./myevl golden/bus.evl golden/EasyVL golden/bus.evl proj=SIM testing=true test_counter: all ./myevl golden/counter_flat.evl golden/EasyVL golden/counter_flat.evl proj=SIM testing=true test_cpu32: all ./myevl golden/cpu32_flat.evl golden/EasyVL golden/cpu32_flat.evl proj=SIM testing=true test_cpu8: all ./myevl golden/cpu8_flat.evl golden/EasyVL golden/cpu8_flat.evl proj=SIM testing=true test_io: all ./myevl golden/io.evl golden/EasyVL golden/io.evl proj=SIM testing=true test_lfsr10: all ./myevl golden/lfsr10.evl golden/EasyVL golden/lfsr10.evl proj=SIM testing=true test_s15850: all ./myevl golden/s15850.evl golden/EasyVL golden/s15850.evl proj=SIM testing=true test_simple_comb: all ./myevl golden/simple_comb.evl golden/EasyVL golden/simple_comb.evl proj=SIM testing=true test_simple_seq: all ./myevl golden/simple_seq.evl golden/EasyVL golden/simple_seq.evl proj=SIM testing=true test_tris_lut: all ./myevl golden/tris_lut.evl golden/EasyVL golden/tris_lut.evl proj=SIM testing=true test_mytests: all ./myevl mytests/test1.evl golden/EasyVL mytests/test1.evl proj=SIM testing=true ./myevl mytests/test2.evl golden/EasyVL mytests/test2.evl proj=SIM testing=true ./myevl mytests/test3.evl golden/EasyVL mytests/test3.evl proj=SIM testing=true ./myevl mytests/test4.evl golden/EasyVL mytests/test4.evl proj=SIM testing=true ./myevl mytests/test5.evl golden/EasyVL mytests/test5.evl proj=SIM testing=true clean: rm -f myevl rm -f golden/*.golden rm -f golden/*.syntax rm -f golden/*.tokens rm -f golden/*.evl_output rm -f mytests/*.mytests rm -f mytests/*.syntax rm -f mytests/*.tokens rm -f mytests/*.evl_output