2013-12-15 03:48:06 +00:00
|
|
|
CXXFLAGS=-g -std=c++11 -Wall -O3
|
2013-12-15 04:37:39 +00:00
|
|
|
DOXYGEN=doxygen
|
2013-12-03 13:32:05 +00:00
|
|
|
|
2013-12-15 19:00:43 +00:00
|
|
|
SRCS = v6502.cpp Emu6502.cpp SegmentCache.cpp TransCache.cpp Common.cpp TransNetwork.cpp Trace.cpp Circuit.cpp StateCalculator.cpp Cpu6502.cpp Cpu6502Helper.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-15 04:37:39 +00:00
|
|
|
.PHONY: all clean doxygen
|
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-15 05:03:46 +00:00
|
|
|
-rm -Rf v6502 v6502.exe $(OBJS) $(DEPS) doxygen
|
2013-12-15 04:37:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doxygen:
|
|
|
|
$(DOXYGEN) v6502.Doxyfile
|