2021-01-06 03:52:10 +00:00
|
|
|
include ../../Makefile.inc
|
2018-08-25 19:58:07 +00:00
|
|
|
|
2021-01-06 03:52:10 +00:00
|
|
|
DOS33 = ../../utils/dos33fs-utils/dos33
|
|
|
|
B2D = ../../utils/bmp2dhr/b2d
|
|
|
|
PNG_TO_40x96 = ../../utils/gr-utils/png_to_40x96
|
|
|
|
PNG_TO_RLE = ../../utils/gr-utils/png2rle
|
|
|
|
PNG_TO_HGR = ../../utils/hgr-utils/png2hgr
|
|
|
|
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
|
2018-08-25 19:58:07 +00:00
|
|
|
|
|
|
|
all: megademo.dsk
|
|
|
|
|
2018-10-28 15:24:13 +00:00
|
|
|
megademo.dsk: MEGADEMO MEGALOAD c64.img MUSIC.D000X2 MUSIC.D000 MUSIC.1000
|
2018-09-26 18:01:14 +00:00
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x4000 MEGADEMO
|
2018-10-11 01:20:56 +00:00
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x800 MEGALOAD
|
2018-10-13 18:42:51 +00:00
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x2000 c64.img C64.IMG
|
2018-10-28 15:24:13 +00:00
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x1000 MUSIC.1000
|
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x4000 MUSIC.D000
|
|
|
|
$(DOS33) -y megademo.dsk BSAVE -a 0x4000 MUSIC.D000X2
|
2018-10-12 21:11:35 +00:00
|
|
|
# $(DOS33) -y megademo.dsk RAWWRITE -t 27 -s 0 MEGADEMO MEGA2
|
2018-09-27 05:08:25 +00:00
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x4000 D_HGRC.BIN
|
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x4000 FS_HGRC.BIN
|
2018-08-29 15:46:25 +00:00
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x2000 C64C.BIN
|
2018-08-25 19:58:07 +00:00
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x2000 C64.BIN
|
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x2000 C64_BW.BIN
|
2018-08-29 15:46:25 +00:00
|
|
|
# $(DOS33) -y megademo.dsk BSAVE -a 0x4000 C64_UPDATE.BIN
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
MEGADEMO: megademo.o
|
2021-01-06 03:52:10 +00:00
|
|
|
ld65 -o MEGADEMO megademo.o -C ../../linker_scripts/apple2_4000.inc
|
2018-08-29 15:46:25 +00:00
|
|
|
|
2018-08-29 15:57:54 +00:00
|
|
|
megademo.o: megademo.s \
|
2018-08-29 21:14:43 +00:00
|
|
|
zp.inc hardware.inc \
|
2018-09-23 03:07:59 +00:00
|
|
|
gr_hline.s gr_offsets.s vapor_lock.s delay_a.s wait_keypress.s \
|
2018-10-29 01:58:09 +00:00
|
|
|
mockingboard.s \
|
2018-09-17 04:44:32 +00:00
|
|
|
c64_opener.s c64.img.lz4 \
|
2018-09-26 18:01:14 +00:00
|
|
|
falling_apple.s apple_40_96.inc \
|
2018-10-01 03:35:44 +00:00
|
|
|
starring.s starring1.inc starring2.inc starring3.img.lz4\
|
2018-10-23 00:17:57 +00:00
|
|
|
starring_people.s sp_names.inc fs.inc FS_HGRC.BIN.lz4 \
|
2018-10-18 18:47:16 +00:00
|
|
|
deater.inc DEATER_HGRC.BIN.lz4 lg.inc LG_HGRC.BIN.lz4 \
|
2018-09-29 04:59:14 +00:00
|
|
|
check_email.s email_40_96.inc \
|
2018-10-15 04:07:29 +00:00
|
|
|
leaving.s leaving.inc tfv_sprites.inc \
|
2018-10-16 02:18:16 +00:00
|
|
|
arrival.s arrival.inc \
|
2018-10-17 16:04:14 +00:00
|
|
|
bird_mountain.s letters.s \
|
2018-10-19 00:27:50 +00:00
|
|
|
waterfall.s waterfall_page1.inc waterfall_page2.inc \
|
2018-10-04 04:33:04 +00:00
|
|
|
takeoff.s takeoff.inc takeoff.img.lz4 \
|
2018-10-03 03:04:51 +00:00
|
|
|
mode7.s \
|
2018-10-13 23:03:38 +00:00
|
|
|
space_bars.s text_print.s \
|
2018-09-26 18:01:14 +00:00
|
|
|
fireworks.s fw_background.inc fw_state_machine.s fw.s \
|
|
|
|
hgr.s random16.s move_letters.s
|
2018-08-29 15:46:25 +00:00
|
|
|
ca65 -o megademo.o megademo.s -l megademo.lst
|
2018-08-25 19:58:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-10-11 01:20:56 +00:00
|
|
|
MEGALOAD: megaload.o
|
2021-01-06 03:52:10 +00:00
|
|
|
ld65 -o MEGALOAD megaload.o -C ../../linker_scripts/apple2_800.inc
|
2018-10-11 01:20:56 +00:00
|
|
|
|
|
|
|
megaload.o: megaload.s
|
|
|
|
ca65 -o megaload.o megaload.s -l megaload.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-10-28 15:24:13 +00:00
|
|
|
MUSIC.1000: music_1000.o
|
2021-01-06 03:52:10 +00:00
|
|
|
ld65 -o MUSIC.1000 music_1000.o -C ../../linker_scripts/apple2_1000.inc
|
2018-10-28 15:24:13 +00:00
|
|
|
|
2018-10-29 01:58:09 +00:00
|
|
|
music_1000.o: music_1000.s mockingboard.s
|
2018-10-28 15:24:13 +00:00
|
|
|
ca65 -o music_1000.o music_1000.s -l music_1000.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
MUSIC.D000: music_d000.o
|
2021-01-06 03:52:10 +00:00
|
|
|
ld65 -o MUSIC.D000 music_d000.o -C ../../linker_scripts/apple2_d000.inc
|
2018-10-28 15:24:13 +00:00
|
|
|
|
|
|
|
music_d000.o: music_d000.s
|
|
|
|
ca65 -o music_d000.o music_d000.s
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
MUSIC.D000X2: music_2nd_d000.o
|
2021-01-06 03:52:10 +00:00
|
|
|
ld65 -o MUSIC.D000X2 music_2nd_d000.o -C ../../linker_scripts/apple2_d000.inc
|
2018-10-28 15:24:13 +00:00
|
|
|
|
|
|
|
music_2nd_d000.o: music_2nd_d000.s
|
|
|
|
ca65 -o music_2nd_d000.o music_2nd_d000.s
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-09-17 04:44:32 +00:00
|
|
|
apple_40_96.inc: ./images/apple_40_96.png
|
|
|
|
$(PNG_TO_40x96) asm ./images/apple_40_96.png apple > apple_40_96.inc
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-09-29 04:59:14 +00:00
|
|
|
email_40_96.inc: ./email_40_96.png
|
|
|
|
$(PNG_TO_40x96) asm ./email_40_96.png email > email_40_96.inc
|
|
|
|
|
2018-10-01 02:10:13 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
starring1.inc: ./starring_1.png
|
|
|
|
$(PNG_TO_RLE) asm ./starring_1.png starring1 > starring1.inc
|
|
|
|
|
|
|
|
starring2.inc: ./starring_2.png
|
|
|
|
$(PNG_TO_RLE) asm ./starring_2.png starring2 > starring2.inc
|
|
|
|
|
|
|
|
|
2018-10-01 03:35:44 +00:00
|
|
|
starring3.img.lz4: starring3.img
|
|
|
|
lz4 -f -16 starring3.img
|
2018-10-01 02:10:13 +00:00
|
|
|
|
2018-10-01 03:35:44 +00:00
|
|
|
starring3.img: ./starring_3_hgr.png
|
2021-01-06 03:52:10 +00:00
|
|
|
$(PNG_TO_HGR) starring_3_hgr.png > starring3.img
|
|
|
|
|
|
|
|
|
2018-10-01 02:10:13 +00:00
|
|
|
|
2018-10-02 04:19:26 +00:00
|
|
|
|
2018-10-14 04:50:15 +00:00
|
|
|
####
|
|
|
|
leaving.inc: ./leaving.png
|
|
|
|
$(PNG_TO_RLE) asm ./leaving.png leaving > leaving.inc
|
|
|
|
|
2018-10-16 02:18:16 +00:00
|
|
|
####
|
|
|
|
arrival.inc: ./arrival.png
|
|
|
|
$(PNG_TO_RLE) asm ./arrival.png arrival > arrival.inc
|
|
|
|
|
2018-10-04 04:33:04 +00:00
|
|
|
####
|
|
|
|
takeoff.inc: ./takeoff.png
|
|
|
|
$(PNG_TO_RLE) asm ./takeoff.png takeoff > takeoff.inc
|
|
|
|
|
|
|
|
takeoff.img.lz4: takeoff.img
|
|
|
|
lz4 -f -16 takeoff.img
|
|
|
|
|
|
|
|
takeoff.img: takeoff_hgr.png
|
2021-01-06 03:52:10 +00:00
|
|
|
$(PNG_TO_HGR) takeoff_hgr.png > takeoff.img
|
2018-10-04 04:33:04 +00:00
|
|
|
|
2018-10-02 04:19:26 +00:00
|
|
|
####
|
|
|
|
|
2018-10-23 00:17:57 +00:00
|
|
|
sp_names.inc: sp_names.png
|
2018-10-23 04:27:18 +00:00
|
|
|
$(PNG_TO_RLE) asm ./sp_names.png sp_names > sp_names.inc
|
2018-10-23 00:17:57 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-10-02 04:19:26 +00:00
|
|
|
fs.inc: ./fs.png
|
|
|
|
$(PNG_TO_RLE) asm ./fs.png fs > fs.inc
|
|
|
|
|
|
|
|
FS_HGRC.BIN.lz4: FS_HGRC.BIN
|
|
|
|
lz4 -f -16 FS_HGRC.BIN
|
|
|
|
|
|
|
|
FS_HGRC.BIN: fs_hgr.bmp
|
|
|
|
$(B2D) fs_hgr.bmp HGR -d
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
deater.inc: deater.png
|
|
|
|
$(PNG_TO_RLE) asm ./deater.png deater > deater.inc
|
|
|
|
|
|
|
|
DEATER_HGRC.BIN.lz4: DEATER_HGRC.BIN
|
|
|
|
lz4 -f -16 DEATER_HGRC.BIN
|
|
|
|
|
|
|
|
DEATER_HGRC.BIN: deater_hgr.bmp
|
|
|
|
$(B2D) deater_hgr.bmp HGR -d
|
|
|
|
|
2018-10-18 18:47:16 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
lg.inc: lg.png
|
|
|
|
$(PNG_TO_RLE) asm ./lg.png lg > lg.inc
|
|
|
|
|
|
|
|
LG_HGRC.BIN.lz4: LG_HGRC.BIN
|
|
|
|
lz4 -f -16 LG_HGRC.BIN
|
|
|
|
|
|
|
|
LG_HGRC.BIN: lg_hgr.bmp
|
|
|
|
$(B2D) lg_hgr.bmp HGR -d
|
|
|
|
|
|
|
|
|
2018-10-02 04:19:26 +00:00
|
|
|
|
2018-09-29 04:59:14 +00:00
|
|
|
####
|
|
|
|
|
2018-08-29 21:14:43 +00:00
|
|
|
c64.img.lz4: c64.img
|
|
|
|
lz4 -f -16 c64.img
|
|
|
|
|
2018-08-29 15:57:54 +00:00
|
|
|
c64.img: c64_updated.png
|
2021-01-06 03:52:10 +00:00
|
|
|
$(PNG_TO_HGR) c64_updated.png > c64.img
|
2018-08-29 15:57:54 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2018-09-27 05:08:25 +00:00
|
|
|
D_HGRC.BIN: d_hgr.bmp
|
|
|
|
$(B2D) d_hgr.bmp HGR -d
|
|
|
|
|
|
|
|
|
2018-08-25 19:58:07 +00:00
|
|
|
C64C.BIN: c64.bmp
|
|
|
|
$(B2D) c64.bmp HGR
|
|
|
|
|
|
|
|
clean:
|
2018-10-28 15:24:13 +00:00
|
|
|
rm -f *~ *.o *.lst MEGADEMO MEGALOAD c64.img \
|
2021-01-06 03:52:10 +00:00
|
|
|
MUSIC.1000 MUSIC.D000 MUSIC.D000X2 destroy_disk
|
|
|
|
cd disk && make clean
|
|
|
|
cd music && make clean
|