From bd4647a79e13f4a6ada8a86754d889fcddd758d4 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 2 Jan 2021 21:18:00 +0000 Subject: Use wildcard --- game/src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game/src') 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 -- cgit v1.2.3