dos33fsprogs/games/ootw/Makefile

218 lines
6.4 KiB
Makefile
Raw Permalink Normal View History

2021-01-06 02:03:44 +00:00
include ../../Makefile.inc
2019-01-13 06:10:44 +00:00
2021-01-06 02:03:44 +00:00
DOS33 = ../../utils/dos33fs-utils/dos33
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
2021-03-23 14:33:51 +00:00
EMPTY_DISK = ../../empty_disk
2019-01-13 06:10:44 +00:00
all: ootw.dsk ootw_side2.dsk ootw_side3.dsk
2019-01-13 06:10:44 +00:00
#ootw.dsk: HELLO ./title/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/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.dsk: ./qboot/QBOOT_DISK1 ./qboot/QLOAD \
2021-03-23 14:16:51 +00:00
./intro/INTRO ./ootw_c1/OOTW_C1 ./ootw_c2/OOTW_C2 \
2021-03-23 15:01:36 +00:00
./ootw_c3/OOTW_C3 ./ootw_c4/OOTW_C4 ./ootw_c5/OOTW_C5
2021-03-23 14:33:51 +00:00
cp $(EMPTY_DISK)/empty.dsk ootw.dsk
$(DOS33_RAW) ootw.dsk 0 0 ./qboot/QBOOT_DISK1 0 1
$(DOS33_RAW) ootw.dsk 0 2 ./qboot/QBOOT_DISK1 1 1
$(DOS33_RAW) ootw.dsk 0 4 ./qboot/QBOOT_DISK1 2 1
$(DOS33_RAW) ootw.dsk 1 0 ./qboot/QLOAD 0 14
$(DOS33_RAW) ootw.dsk 2 0 ./intro/INTRO 0 137
$(DOS33_RAW) ootw.dsk 11 0 ./ootw_c1/OOTW_C1 0 95
$(DOS33_RAW) ootw.dsk 17 0 ./ootw_c2/OOTW_C2 0 125
$(DOS33_RAW) ootw.dsk 25 0 ./ootw_c3/OOTW_C3 0 14
$(DOS33_RAW) ootw.dsk 26 0 ./ootw_c4/OOTW_C4 0 62
$(DOS33_RAW) ootw.dsk 30 0 ./ootw_c5/OOTW_C5 0 41
2021-04-19 15:54:27 +00:00
#ootw_side2.dsk: HELLO ./title/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/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_side2.dsk: ./qboot/QBOOT_DISK2 ./qboot/QLOAD \
./ootw_c6/OOTW_C6 ./ootw_c7/OOTW_C7 \
./ootw_c8/OOTW_C8 ./ootw_c9/OOTW_C9 ./ootw_c10/OOTW_C10
2021-03-23 14:33:51 +00:00
cp $(EMPTY_DISK)/empty.dsk ootw_side2.dsk
2021-04-19 15:54:27 +00:00
$(DOS33_RAW) ootw_side2.dsk 0 0 ./qboot/QBOOT_DISK2 0 1
$(DOS33_RAW) ootw_side2.dsk 0 2 ./qboot/QBOOT_DISK2 1 1
$(DOS33_RAW) ootw_side2.dsk 0 4 ./qboot/QBOOT_DISK2 2 1
$(DOS33_RAW) ootw_side2.dsk 1 0 ./qboot/QLOAD 0 14
$(DOS33_RAW) ootw_side2.dsk 2 0 ./ootw_c6/OOTW_C6 0 38
$(DOS33_RAW) ootw_side2.dsk 5 0 ./ootw_c7/OOTW_C7 0 38
$(DOS33_RAW) ootw_side2.dsk 8 0 ./ootw_c8/OOTW_C8 0 39
$(DOS33_RAW) ootw_side2.dsk 11 0 ./ootw_c9/OOTW_C9 0 38
$(DOS33_RAW) ootw_side2.dsk 14 0 ./ootw_c10/OOTW_C10 0 38
#ootw_side3.dsk: HELLO ./title/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/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
ootw_side3.dsk: ./qboot/QBOOT_DISK3 ./qboot/QLOAD \
./ootw_c11/OOTW_C11 ./ootw_c12/OOTW_C12 \
./ootw_c13/OOTW_C13 ./ootw_c14/OOTW_C14 ./ootw_c15/OOTW_C15 \
./ending/ENDING
2021-03-23 14:33:51 +00:00
cp $(EMPTY_DISK)/empty.dsk ootw_side3.dsk
2021-04-19 15:54:27 +00:00
$(DOS33_RAW) ootw_side3.dsk 0 0 ./qboot/QBOOT_DISK3 0 1
$(DOS33_RAW) ootw_side3.dsk 0 2 ./qboot/QBOOT_DISK3 1 1
$(DOS33_RAW) ootw_side3.dsk 0 4 ./qboot/QBOOT_DISK3 2 1
$(DOS33_RAW) ootw_side3.dsk 1 0 ./qboot/QLOAD 0 14
2021-04-26 19:25:42 +00:00
$(DOS33_RAW) ootw_side3.dsk 2 0 ./ootw_c11/OOTW_C11 0 0 5
$(DOS33_RAW) ootw_side3.dsk 5 0 ./ootw_c12/OOTW_C12 0 0 8
$(DOS33_RAW) ootw_side3.dsk 8 0 ./ootw_c13/OOTW_C13 0 0 11
2021-04-27 04:36:40 +00:00
$(DOS33_RAW) ootw_side3.dsk 11 0 ./ootw_c14/OOTW_C14 0 0 17
$(DOS33_RAW) ootw_side3.dsk 17 0 ./ootw_c15/OOTW_C15 0 0 24
$(DOS33_RAW) ootw_side3.dsk 24 0 ./ending/ENDING 0 0 35
2020-01-26 06:30:49 +00:00
2019-07-15 05:24:29 +00:00
####
2021-04-19 15:54:27 +00:00
qboot/QBOOT_DISK1:
cd qboot && make
####
intro/INTRO:
cd intro && make
2021-03-23 03:45:40 +00:00
ootw_c1/OOTW_C1:
cd ootw_c1 && make
2021-03-23 14:16:51 +00:00
ootw_c2/OOTW_C2:
cd ootw_c2 && make
2021-03-23 14:33:51 +00:00
ootw_c3/OOTW_C3:
cd ootw_c3 && make
ootw_c4/OOTW_C4:
cd ootw_c4 && make
2021-03-23 03:45:40 +00:00
2021-03-23 15:01:36 +00:00
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:
2021-03-23 15:56:45 +00:00
cd ootw_c12 && make
2021-03-23 15:01:36 +00:00
ootw_c13/OOTW_C13:
cd ootw_c13 && make
ootw_c14/OOTW_C14:
cd ootw_c14 && make
ootw_c15/OOTW_C15:
cd ootw_c15 && make
2021-03-23 15:56:45 +00:00
ending/ENDING:
cd ending && make
2021-03-23 15:01:36 +00:00
2021-03-23 20:25:51 +00:00
title/TITLE:
cd title && make
2019-08-21 04:36:27 +00:00
####
2019-01-27 02:27:20 +00:00
2019-01-13 06:10:44 +00:00
HELLO: hello.bas
2021-01-06 02:03:44 +00:00
$(TOKENIZE) < hello.bas > HELLO
2019-01-13 06:10:44 +00:00
2019-08-21 04:36:27 +00:00
####
HELLO2: hello2.bas
2021-01-06 02:03:44 +00:00
$(TOKENIZE) < hello2.bas > HELLO2
2019-08-21 04:36:27 +00:00
#####
zip: ootw.dsk ootw_side2.dsk ootw_side3.dsk
zip ootw.zip ootw.dsk ootw_side2.dsk ootw_side3.dsk
2020-02-07 06:13:49 +00:00
#####
2019-01-13 06:10:44 +00:00
clean:
2021-03-24 23:43:33 +00:00
rm -f *~ *.o *.lst HELLO
cd intro && make clean
cd ootw_c1 && make clean
cd ootw_c2 && make clean
cd ootw_c3 && make clean
cd ootw_c4 && make clean
cd ootw_c5 && make clean
cd ootw_c6 && make clean
cd ootw_c7 && make clean
cd ootw_c8 && make clean
cd ootw_c9 && make clean
cd ootw_c10 && make clean
cd ootw_c11 && make clean
cd ootw_c12 && make clean
cd ootw_c13 && make clean
cd ootw_c14 && make clean
cd ootw_c15 && make clean
cd ending && make clean
cd qboot && make clean
distclean:
make clean
cd intro && make distclean
cd ootw_c1 && make distclean
cd ootw_c2 && make distclean
cd ootw_c3 && make distclean
cd ootw_c4 && make distclean
cd ootw_c5 && make distclean
cd ootw_c6 && make distclean
cd ootw_c7 && make distclean
cd ootw_c8 && make distclean
cd ootw_c9 && make distclean
cd ootw_c10 && make distclean
cd ootw_c11 && make distclean
cd ootw_c12 && make distclean
cd ootw_c13 && make distclean
cd ootw_c14 && make distclean
cd ootw_c15 && make distclean
cd ending && make distclean
cd title && make distclean