MOre missing Makefiles

This commit is contained in:
Vince Weaver 2021-03-29 18:25:45 -04:00
parent 2e242ebcae
commit fd7cb85e3b
6 changed files with 356 additions and 0 deletions

View File

@ -0,0 +1,41 @@
include ../../../Makefile.inc
COMMON = ..
SPRITES = ../sprites
LINKER_SCRIPTS = ../../../linker_scripts
all: OOTW_C5
####
OOTW_C5: ootw_c5.o
ld65 -o OOTW_C5 ootw_c5.o -C $(LINKER_SCRIPTS)/apple2_1700.inc
ootw_c5.o: ootw_c5.s \
$(COMMON)/gr_copy.s \
$(COMMON)/gr_copy_offset.s \
$(COMMON)/gr_fast_clear.s \
$(COMMON)/gr_pageflip.s \
$(COMMON)/gr_unrle.s \
$(COMMON)/gr_putsprite.s \
$(COMMON)/gr_putsprite_flipped.s \
$(COMMON)/gr_putsprite_crop.s \
$(COMMON)/keyboard.s \
$(COMMON)/gr_run_sequence.s \
$(COMMON)/physicist.s \
ootw_c5_cave.s \
$(COMMON)/collision.s \
$(COMMON)/door.s \
$(COMMON)/laser.s \
$(COMMON)/gun.s \
$(COMMON)/blast.s \
$(COMMON)/shield.s \
$(SPRITES)/physicist.inc \
graphics/l5_cave/ootw_c5_cave.inc
ca65 -o ootw_c5.o ootw_c5.s -l ootw_c5.lst
###
clean:
rm -f *~ *.o *.lst OOTW_C5

View File

@ -0,0 +1,40 @@
include ../../../Makefile.inc
COMMON = ..
LINKER_SCRIPTS = ../../../linker_scripts
SPRITES = ../sprites
all: OOTW_C7
####
OOTW_C7: ootw_c7.o
ld65 -o OOTW_C7 ootw_c7.o -C $(LINKER_SCRIPTS)/apple2_1700.inc
ootw_c7.o: ootw_c7.s \
$(COMMON)/gr_copy.s \
$(COMMON)/gr_copy_offset.s \
$(COMMON)/gr_fast_clear.s \
$(COMMON)/gr_pageflip.s \
$(COMMON)/gr_unrle.s \
$(COMMON)/gr_putsprite.s \
$(COMMON)/gr_putsprite_flipped.s \
$(COMMON)/gr_putsprite_crop.s \
$(COMMON)/keyboard.s \
$(COMMON)/gr_run_sequence.s \
$(COMMON)/physicist.s \
$(COMMON)/collision.s \
$(COMMON)/door.s \
$(COMMON)/laser.s \
$(COMMON)/gun.s \
$(COMMON)/blast.s \
$(COMMON)/shield.s \
$(SPRITES)/physicist.inc \
graphics/l7_cave/ootw_c7_cave.inc
ca65 -o ootw_c7.o ootw_c7.s -l ootw_c7.lst
#####
clean:
rm -f *~ *.o *.lst OOTW_C7

175
games/ootw/tests/Makefile Normal file
View File

@ -0,0 +1,175 @@
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
PNG2RLE = ../../utils/gr-utils/png2rle
PNG2LZ4 = ../../utils/gr-utils/png2lz4
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
EMPTY_DISK = ../../empty_disk
all: ootw.dsk ootw_side2.dsk ootw_side3.dsk
ootw.dsk: HELLO TITLE \
./intro/INTRO ./ootw_c1/OOTW_C1 ./ootw_c2/OOTW_C2 \
./ootw_c3/OOTW_C3 ./ootw_c4/OOTW_C4 ./ootw_c5/OOTW_C5
cp $(EMPTY_DISK)/empty.dsk ootw.dsk
$(DOS33) -y ootw.dsk SAVE A HELLO
$(DOS33) -y ootw.dsk BSAVE -a 0xd00 TITLE
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./intro/INTRO INTRO
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c1/OOTW_C1 OOTW_C1
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c2/OOTW_C2 OOTW_C2
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c3/OOTW_C3 OOTW_C3
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c4/OOTW_C4 OOTW_C4
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c5/OOTW_C5 OOTW_C5
ootw_side2.dsk: HELLO TITLE \
./ootw_c6/OOTW_C6 ./ootw_c7/OOTW_C7 ./ootw_c8/OOTW_C8 \
./ootw_c9/OOTW_C9 ./ootw_c10/OOTW_C10
cp $(EMPTY_DISK)/empty.dsk ootw_side2.dsk
$(DOS33) -y ootw_side2.dsk SAVE A HELLO HELLO
$(DOS33) -y ootw_side2.dsk BSAVE -a 0xd00 TITLE
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 ./ootw_c6/OOTW_C6 OOTW_C6
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 ./ootw_c7/OOTW_C7 OOTW_C7
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 ./ootw_c8/OOTW_C8 OOTW_C8
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 ./ootw_c9/OOTW_C9 OOTW_C9
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 ./ootw_c10/OOTW_C10 OOTW_C10
ootw_side3.dsk: HELLO TITLE ./ending/ENDING \
./ootw_c11/OOTW_C11 ./ootw_c12/OOTW_C12 ./ootw_c13/OOTW_C13 \
./ootw_c14/OOTW_C14 ./ootw_c15/OOTW_C15
cp $(EMPTY_DISK)/empty.dsk ootw_side3.dsk
$(DOS33) -y ootw_side3.dsk SAVE A HELLO HELLO
$(DOS33) -y ootw_side3.dsk BSAVE -a 0xd00 TITLE
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ootw_c11/OOTW_C11
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ootw_c12/OOTW_C12
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ootw_c13/OOTW_C13
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ootw_c14/OOTW_C14
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ootw_c15/OOTW_C15
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ./ending/ENDING
####
AUDIO_TEST: audio.o
ld65 -o AUDIO_TEST audio.o -C ../../linker_scripts/apple2_1700.inc
audio.o: audio.s
ca65 -o audio.o audio.s -l audio.lst
####
intro/INTRO:
cd intro && make
ootw_c1/OOTW_C1:
cd ootw_c1 && make
ootw_c2/OOTW_C2:
cd ootw_c2 && make
ootw_c3/OOTW_C3:
cd ootw_c3 && make
ootw_c4/OOTW_C4:
cd ootw_c4 && make
ootw_c5/OOTW_C5:
cd ootw_c5 && make
ootw_c6/OOTW_C6:
cd ootw_c6 && make
ootw_c7/OOTW_C7:
cd ootw_c7 && make
ootw_c8/OOTW_C8:
cd ootw_c8 && make
ootw_c9/OOTW_C9:
cd ootw_c9 && make
ootw_c10/OOTW_C10:
cd ootw_c10 && make
ootw_c11/OOTW_C11:
cd ootw_c11 && make
ootw_c12/OOTW_C12:
cd ootw_c12 && make
ootw_c13/OOTW_C13:
cd ootw_c13 && make
ootw_c14/OOTW_C14:
cd ootw_c14 && make
ootw_c15/OOTW_C15:
cd ootw_c15 && make
ending/ENDING:
cd ending && make
####
LOADER: loader.o
ld65 -o LOADER loader.o -C ../../linker_scripts/apple2_1400.inc
loader.o: loader.s
ca65 -o loader.o loader.s -l loader.lst
####
LOADER2: loader2.o
ld65 -o LOADER2 loader2.o -C ../../linker_scripts/apple2_1400.inc
loader2.o: loader2.s
ca65 -o loader2.o loader2.s -l loader2.lst
####
TITLE: title.o
ld65 -o TITLE title.o -C ../../linker_scripts/apple2_d00.inc
title.o: title.s loader.s
ca65 -o title.o title.s -l title.lst
####
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
####
HELLO2: hello2.bas
$(TOKENIZE) < hello2.bas > HELLO2
#####
compress_test.inc: intro_graphics/07_soda/drinking01.png
$(PNG2RLE) asm intro_graphics/07_soda/drinking01.png test_rle > compress_test.inc
$(PNG2LZ4) asm intro_graphics/07_soda/drinking01.png test_lz4 >> compress_test.inc
COMPRESS-TEST: compress_test.o
ld65 -o COMPRESS-TEST compress_test.o -C ../../linker_scripts/apple2_2000.inc
compress_test.o: compress_test.s lz4_decode.s compress_test.inc
ca65 -o compress_test.o compress_test.s -l compress_test.lst
#####
zip: ootw.dsk ootw_side2.dsk side3.dsk
zip ootw.zip ootw.dsk ootw_side2.dsk ootw_side3.dsk
#####
clean:
rm -f *~ *.o *.lst *.lz4 HELLO TITLE INTRO LOADER \
COMPRESS-TEST AUDIO_TEST

View File

@ -0,0 +1,41 @@
include ../../../Makefile.inc
DOS33 = ../../../utils/dos33fs-utils/dos33
PNG2GR = ../../../utils/gr-utils/png2gr
PNG2RLE = ../../../utils/gr-utils/png2rle
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
LINKERSCRIPTS = ../../../linker_scripts
all: gr_rasterbars.dsk
$(DOS33):
cd ../../../utils/dos33fs-utils && make
gr_rasterbars.dsk: $(DOS33) HELLO RASTERBARS
cp empty.dsk gr_rasterbars.dsk
$(DOS33) -y gr_rasterbars.dsk SAVE A HELLO
$(DOS33) -y gr_rasterbars.dsk BSAVE -a 0x1000 RASTERBARS
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
RASTERBARS: rasterbars.o
ld65 -o RASTERBARS rasterbars.o -C $(LINKERSCRIPTS)/apple2_1000.inc
rasterbars.o: rasterbars.s \
gr_scroll.s \
pageflip.s \
gr_setpage.s \
gr_fast_clear.s
ca65 -o rasterbars.o rasterbars.s -l rasterbars.lst
###
clean:
rm -f *~ *.o RASTERBARS *.lst

8
graphics/hgr/Makefile Normal file
View File

@ -0,0 +1,8 @@
all:
cd snowflake && make
cd starfield && make
clean:
cd snowflake && make clean
cd starfield && make clean
rm -f *~

View File

@ -0,0 +1,51 @@
include ../../../Makefile.inc
DOS33 = ../../../utils/dos33fs-utils/dos33
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
LINKER_SCRIPTS = ../../../linker_scripts
EMPTY_DISK = ../../../empty_disk/empty.dsk
all: sprite.dsk
sprite.dsk: HELLO BALL PATTERN TINY
cp $(EMPTY_DISK) sprite.dsk
$(DOS33) -y sprite.dsk SAVE A HELLO
$(DOS33) -y sprite.dsk BSAVE -a 0x0300 BALL
$(DOS33) -y sprite.dsk BSAVE -a 0x036B PATTERN
$(DOS33) -y sprite.dsk BSAVE -a 0x070 TINY
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
BALL: ball.o
ld65 -o BALL ball.o -C $(LINKER_SCRIPTS)/apple2_300.inc
ball.o: ball.s
ca65 -o ball.o ball.s -l ball.lst
###
PATTERN: pattern.o
ld65 -o PATTERN pattern.o -C $(LINKER_SCRIPTS)/apple2_3f5.inc
pattern.o: pattern.s
ca65 -o pattern.o pattern.s -l pattern.lst
###
TINY: tiny.o
ld65 -o TINY tiny.o -C $(LINKER_SCRIPTS)/apple2_70_zp.inc
tiny.o: tiny.s
ca65 -o tiny.o tiny.s -l tiny.lst
###
clean:
rm -f *~ *.o *.lst HELLO BALL PATTERN TINY