v6502cpp/Makefile
2013-12-15 00:03:46 -05:00

32 lines
499 B
Makefile

CXXFLAGS=-g -std=c++11 -Wall -O3
DOXYGEN=doxygen
SRCS = v6502.cpp SegmentCache.cpp Common.cpp TransNetwork.cpp Trace.cpp Circuit.cpp StateCalculator.cpp Cpu6502.cpp Cpu6502Helper.cpp
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
.cpp.o:
$(COMPILE.cpp) -MMD $(OUTPUT_OPTION) $<
.PHONY: all clean doxygen
all: v6502
v6502: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $@
-include $(DEPS)
clean:
-rm -Rf v6502 v6502.exe $(OBJS) $(DEPS) doxygen
doxygen:
$(DOXYGEN) v6502.Doxyfile