vgbc/Makeconf

42 lines
1.3 KiB
Text
Raw Normal View History

2023-09-09 15:49:05 +02:00
TARGETS := libemu.a vgbc vgbc.test vgbc.inspect vgbc.gbdif
2023-09-01 09:18:32 +02:00
2023-09-09 19:20:41 +02:00
sfml_packages := sfml-graphics
sfml_CXXFLAGS := $(shell pkg-config --cflags $(sfml_packages))
sfml_LDFLAGS := $(shell pkg-config --libs $(sfml_packages))
CXXFLAGS := -I $(CURDIR) $(sfml_CXXFLAGS)
2023-09-01 09:18:32 +02:00
cmd_libemu.a = ar -rc $@ $^
verb_libemu.a = pack
modules_libemu.a := memory/device.o \
memory/bus.o \
memory/ram.o \
memory/bootrom_overlay.o \
memory/register.o \
memory/bank.o \
cpu/cpu.o \
cpu/decoder.o \
cartridge/mbc/mbc1.o \
2023-09-12 00:07:33 +02:00
cartridge/cartridge.o \
lcd/lcd.o \
lcd/palette.o \
input/joypad.o \
2023-09-01 09:18:32 +02:00
modules_vgbc := main.o libemu.a
verb_vgbc := link
2023-09-09 19:20:41 +02:00
LDFLAGS_vgbc := $(sfml_LDFLAGS)
2023-09-01 09:18:32 +02:00
2023-09-09 14:45:47 +02:00
sources_vgbc.test := $(shell find tests/ -name '*.cpp')
objects_vgbc.test := $(patsubst %.cpp,%.o,$(sources_vgbc.test))
modules_vgbc.test := $(objects_vgbc.test) libemu.a
2023-09-01 09:18:32 +02:00
verb_vgbc.test := link
2023-09-09 19:20:41 +02:00
$(objects_vgbc.test): CXXFLAGS+=-I $(CURDIR)/tests
2023-09-09 14:45:47 +02:00
2023-09-01 09:18:32 +02:00
modules_vgbc.inspect := cartridge/inspector.o libemu.a
verb_vgbc.inspect := link
2023-08-27 22:19:02 +02:00
2023-09-09 15:49:05 +02:00
# Game Boy Doctor Interface
modules_vgbc.gbdif := misc/gbdif.o libemu.a
verb_vgbc.gbdif := link