2014-01-06 19:31:13 +00:00
|
|
|
CXX = g++
|
2016-02-29 02:30:47 +00:00
|
|
|
RM = rm
|
|
|
|
CP = cp
|
|
|
|
|
2024-05-29 18:55:51 +00:00
|
|
|
CXXFLAGS = -I../core/source/quickerNES/core/ -I../core/extern/jaffarCommon/include -Wall -Wfatal-errors -Werror \
|
|
|
|
-std=c++20 -O3 -fomit-frame-pointer -flto -fvisibility=internal -fvisibility-inlines-hidden \
|
|
|
|
-D_GNU_SOURCE -D__INLINE__=inline -D_QUICKERNES_DETECT_JOYPAD_READS -D_QUICKERNES_ENABLE_TRACEBACK_SUPPORT
|
2024-03-22 15:31:22 +00:00
|
|
|
|
2016-02-15 23:22:16 +00:00
|
|
|
# TODO: include these as options in the Makefile
|
|
|
|
# -fprofile-generate
|
|
|
|
# -fprofile-use
|
2024-03-24 16:41:24 +00:00
|
|
|
|
|
|
|
UNAME := $(shell uname)
|
|
|
|
ifeq ($(UNAME), Linux)
|
|
|
|
TARGET = libquicknes.so
|
|
|
|
else
|
|
|
|
TARGET = libquicknes.dll
|
|
|
|
endif
|
|
|
|
|
2024-05-29 18:55:51 +00:00
|
|
|
LDFLAGS = -shared -s $(CXXFLAGS)
|
2016-02-29 02:30:47 +00:00
|
|
|
|
2024-05-29 18:55:51 +00:00
|
|
|
DEST = ../../Assets/dll
|
|
|
|
DESTCOPY = ../../output/dll
|
2014-01-06 19:31:13 +00:00
|
|
|
|
|
|
|
SRCS = \
|
2024-03-22 15:31:22 +00:00
|
|
|
../core/source/quickerNES/core/apu/vrc7/emu2413_state.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/vrc7/emu2413.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/vrc7/apu_vrc7.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/fme7/apu_fme7.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/namco/apu_namco.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/effectsBuffer.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/blipBuffer.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/NESEffectsBuffer.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/vrc6/apu_vrc6.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/oscs.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/apu.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/buffer.cpp \
|
|
|
|
../core/source/quickerNES/core/apu/multiBuffer.cpp \
|
|
|
|
../core/source/quickerNES/core/emu.cpp \
|
|
|
|
../core/source/quickerNES/core/mappers/mapper.cpp \
|
|
|
|
../core/source/quickerNES/core/cpu.cpp \
|
|
|
|
../core/source/quickerNES/core/ppu/ppu.cpp \
|
|
|
|
../core/source/quickerNES/core/ppu/ppuRendering.cpp \
|
|
|
|
../core/source/quickerNES/core/ppu/ppuImpl.cpp \
|
|
|
|
../bizinterface.cpp
|
2014-01-06 19:31:13 +00:00
|
|
|
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) -c -o $@ $< $(CXXFLAGS)
|
|
|
|
|
|
|
|
$(TARGET) : $(OBJS)
|
|
|
|
$(CXX) -o $@ $(LDFLAGS) $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
2024-03-22 15:31:22 +00:00
|
|
|
$(RM) -f $(OBJS)
|
|
|
|
$(RM) -f $(TARGET)
|
2014-01-06 19:31:13 +00:00
|
|
|
|
|
|
|
install:
|
2024-05-29 18:55:51 +00:00
|
|
|
$(CP) $(TARGET) $(DEST)
|
|
|
|
ifneq ("$(wildcard $(DESTCOPY))", "")
|
|
|
|
$(CP) $(TARGET) $(DESTCOPY)
|
2021-07-17 22:09:22 +00:00
|
|
|
endif
|