Makefile - Rework build system a bit
This commit is contained in:
parent
fb65792e87
commit
8703edbec8
3 changed files with 47 additions and 35 deletions
33
Makeconf
33
Makeconf
|
@ -1,12 +1,25 @@
|
|||
modules := memory/device \
|
||||
memory/bus \
|
||||
memory/ram \
|
||||
memory/bootrom_overlay \
|
||||
memory/register \
|
||||
memory/bank \
|
||||
memory/mbc/mbc1 \
|
||||
cpu/cpu \
|
||||
cpu/decoder \
|
||||
cartridge/cartridge
|
||||
TARGETS := libemu.a vgbc vgbc.test vgbc.inspect
|
||||
|
||||
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 \
|
||||
memory/mbc/mbc1.o \
|
||||
cpu/cpu.o \
|
||||
cpu/decoder.o \
|
||||
cartridge/cartridge.o
|
||||
|
||||
modules_vgbc := main.o libemu.a
|
||||
verb_vgbc := link
|
||||
|
||||
modules_vgbc.test := $(patsubst %.cpp,%.o,$(wildcard tests/*.cpp)) libemu.a
|
||||
verb_vgbc.test := link
|
||||
|
||||
modules_vgbc.inspect := cartridge/inspector.o libemu.a
|
||||
verb_vgbc.inspect := link
|
||||
|
||||
CXX_FLAGS := -I $(CURDIR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue