Skip to content

Commit 9af3a1d

Browse files
committed
soundtool: improve generation of NSS makefile dependencies
1 parent 891b4ac commit 9af3a1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/soundtool.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ def print_asset(name, module, bank):
312312
for group in sorted(iter(grouped_musics)):
313313
atype="Z80 bank %d"%group if group >= 0 else "fixed Z80 ROM"
314314
print("#\n# assets for %s\n#\n"%atype, file=f)
315+
316+
# fixed ROM: group == -1
317+
if group >= 0:
318+
print("Z80_LDFLAGS+=-b BANK%d=0x8000\n"%group, file=f)
319+
315320
for mod in grouped_musics[group]:
316321
mtype="BANK%d"%group if group >= 0 else "FIXED"
317322
gtype="BANK%d_MUSIC"%group if group >= 0 else "MUSIC"
@@ -326,7 +331,6 @@ def print_asset(name, module, bank):
326331
print("Z80_SOUND_SRCS+=$(Z80_%s_MUSIC)"%mtype, file=f)
327332
if group >= 0:
328333
print("Z80_MUSIC_OBJS+=$(Z80_BANK_PREFIX)%d.lib"%group, file=f)
329-
print("Z80_LDFLAGS+=-b BANK%d=0x8000"%group, file=f)
330334
print("$(Z80_BANK%d_MUSIC): Z80_FLAGS=-b %d"%(group, group), file=f)
331335
print("$(Z80_BANK%d_MUSIC_OBJS): $(SAMPLES_INC)"%group, file=f)
332336
print("$(Z80_BANK_PREFIX)%d.lib: $(Z80_BANK%d_MUSIC_OBJS)"%(group, group), file=f)

0 commit comments

Comments
 (0)