summaryrefslogtreecommitdiff
path: root/Makefile
blob: 69c051bf03ffcbc9136825d0184c943ecd219b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
CXXFLAGS+=-g -Wall
DEPS := $(OBJS:.o=.d)

-include $(DEPS)

debugger: main.o evaluator.o emulator.o value.o instruction.o register_address.o test_loader.o
	g++ -o $@ $^

%.o: %.cpp
	$(CXX)  -MM -MF $(patsubst %.o,%.d,$@) $<
	$(CXX) $(CXXFLAGS) -o $@ -c $<