mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2024-12-27 03:32:24 +00:00
32 lines
526 B
Makefile
32 lines
526 B
Makefile
CXXFLAGS=-g -std=c++11 -Wall -O3
|
|
DOXYGEN=doxygen
|
|
|
|
SRCS = v6502.cpp Emu6502.cpp SegmentCache.cpp TransCache.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
|