summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-01-02 21:18:00 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-01-02 21:18:00 +0000
commitbd4647a79e13f4a6ada8a86754d889fcddd758d4 (patch)
treefd5ba2e098c9caf2cbacfc47a65d9411a876c5e6
parent86a391103d9b262bdd881ce32af9f13e7c2d8e25 (diff)
downloadubox-msx-lib-bd4647a79e13f4a6ada8a86754d889fcddd758d4.tar.gz
ubox-msx-lib-bd4647a79e13f4a6ada8a86754d889fcddd758d4.zip
Use wildcard
-rw-r--r--game/src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/src/Makefile b/game/src/Makefile
index 7fa9f2f..13cff21 100644
--- a/game/src/Makefile
+++ b/game/src/Makefile
@@ -9,6 +9,7 @@ ROM_MAX=8000
OUTPUT=../build
OBJS = $(patsubst %.c,$(OUTPUT)/%.rel,$(wildcard *.c)) $(OUTPUT)/akm.rel
+UBOX_LIBS = $(wildcard ../../lib/*.lib)
LIBS = -lubox -lspman -lmplayer
CC=sdcc
@@ -35,7 +36,7 @@ $(OUTPUT)/akm.rel: akm.z80 song.asm effects.asm
Disark --sourceProfile sdcc --symbolFile $(OUTPUT)/akm.sym --src16bitsValuesInHex --src8bitsValuesInHex --undocumentedOpcodesToBytes $(OUTPUT)/akm.bin $(OUTPUT)/akm_sdcc.asm
$(AS) -g -o $@ $(OUTPUT)/akm_sdcc.asm
-$(OUTPUT)/$(TARGET).rom: $(OBJS) $(OUTPUT)/crt0.rel ../../lib/*.lib
+$(OUTPUT)/$(TARGET).rom: $(OBJS) $(OUTPUT)/crt0.rel $(UBOX_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) --code-loc $(CODE) --data-loc $(DATA) $(OUTPUT)/crt0.rel $(OBJS) -o $(OUTPUT)/$(TARGET).ihx
../../bin/hex2bin -e bin -p 00 -l $(ROM_MAX) $(OUTPUT)/$(TARGET).ihx
mv $(OUTPUT)/$(TARGET).bin ../bin/$(TARGET).rom