2013-12-14 06:49:50 +00:00
|
|
|
CXXFLAGS=-g -std=c++11 -Wall -O4
|
2013-12-03 13:32:05 +00:00
|
|
|
|
2013-12-14 04:15:55 +00:00
|
|
|
SRCS = v6502.cpp trans.cpp SegmentCache.cpp TransNetwork.cpp Trace.cpp Circuit.cpp StateCalculator.cpp Cpu6502.cpp
|
2013-12-13 04:31:47 +00:00
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(COMPILE.cpp) -MMD $(OUTPUT_OPTION) $<
|
2013-11-26 04:14:22 +00:00
|
|
|
|
2013-12-13 04:31:47 +00:00
|
|
|
.PHONY: all clean
|
2013-11-26 04:14:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-13 04:31:47 +00:00
|
|
|
all: v6502
|
2013-12-10 00:17:26 +00:00
|
|
|
|
2013-12-13 04:31:47 +00:00
|
|
|
v6502: $(OBJS)
|
2013-12-13 14:57:31 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $@
|
2013-12-11 22:13:46 +00:00
|
|
|
|
2013-12-13 04:31:47 +00:00
|
|
|
-include $(DEPS)
|
2013-12-11 22:13:46 +00:00
|
|
|
|
2013-12-11 04:58:09 +00:00
|
|
|
|
2013-12-12 22:05:33 +00:00
|
|
|
|
2013-11-26 04:14:22 +00:00
|
|
|
clean:
|
2013-12-13 04:31:47 +00:00
|
|
|
-rm -f v6502 v6502.exe $(OBJS) $(DEPS)
|