Update the Makefile to generate woz images

This commit is contained in:
hkz 2025-08-20 11:58:04 +02:00
commit ee893868cd
2 changed files with 8 additions and 5 deletions

View file

@ -21,7 +21,7 @@ C_SRCS = main.c monitor_subroutines.c utility.c \
# Object files
OBJS = $(ASM_SRCS:%.s=%.o) $(C_SRCS:%.c=%.o)
all: $(PRG).wav $(PRG).dsk
all: $(PRG).wav $(PRG).woz
%.o: %.s
as6502 --core=6502 --list-file=$(@:%.o=obj/%.lst) -o obj/$@ $<
@ -41,10 +41,14 @@ $(PRG).wav: $(PRG).bin
$(PRG).dsk: $(PRG).bin
(cd out ; cp ../dsk/TK2048_AUTO_BRUN.dsk ./$(PRG).dsk; cat $(PRG).bin | $(JAVA) -jar $(ACMD) -p $(PRG).dsk HELLO B 0x801)
$(PRG).woz: $(PRG).dsk
(cd out ; dsk2woz ./$(PRG).dsk ./$(PRG).woz)
clean:
-(cd obj ; rm $(OBJS) $(OBJS:%.o=%.lst))
-rm obj/*.lst
-rm out/*.hex
-rm out/*.bin
-rm out/*.wav
-rm out/*.dsk
-rm out/*.dsk
-rm out/*.woz