mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2025-12-26 02:42:17 +11:00
Update the Makefile to generate woz images
This commit is contained in:
parent
36ad3da27e
commit
ee893868cd
2 changed files with 8 additions and 5 deletions
8
Makefile
8
Makefile
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue