2013-12-10 23:58:09 -05:00
|
|
|
CXXFLAGS=-g -std=c++11
|
2013-12-03 08:32:05 -05:00
|
|
|
|
2013-12-12 23:31:47 -05:00
|
|
|
SRCS = v6502.cpp cpu.cpp nodes.cpp trans.cpp SegmentCache.cpp TransNetwork.cpp Trace.cpp Circuit.cpp StateCalculator.cpp Cpu6502.cpp
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(COMPILE.cpp) -MMD $(OUTPUT_OPTION) $<
|
2013-11-25 23:14:22 -05:00
|
|
|
|
2013-12-12 23:31:47 -05:00
|
|
|
.PHONY: all clean
|
2013-11-25 23:14:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-12 23:31:47 -05:00
|
|
|
all: v6502
|
2013-12-09 19:17:26 -05:00
|
|
|
|
2013-12-12 23:31:47 -05:00
|
|
|
v6502: $(OBJS)
|
2013-12-13 09:56:08 -05:00
|
|
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $(TARGET)
|
2013-12-11 17:13:46 -05:00
|
|
|
|
2013-12-12 23:31:47 -05:00
|
|
|
-include $(DEPS)
|
2013-12-11 17:13:46 -05:00
|
|
|
|
2013-12-10 23:58:09 -05:00
|
|
|
|
2013-12-12 17:05:33 -05:00
|
|
|
|
2013-11-25 23:14:22 -05:00
|
|
|
clean:
|
2013-12-12 23:31:47 -05:00
|
|
|
-rm -f v6502 v6502.exe $(OBJS) $(DEPS)
|