dos33fsprogs/graphics/dhgr/Makefile

106 lines
2.0 KiB
Makefile
Raw Normal View History

2021-01-05 23:33:30 +00:00
include ../../Makefile.inc
2020-10-07 21:01:18 +00:00
2021-01-05 23:33:30 +00:00
DOS33 = ../../utils/dos33fs-utils/dos33
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
2021-01-26 01:39:16 +00:00
B2D = ../../utils/bmp2dhr/b2d
LZSA = ~/research/lzsa/lzsa/lzsa
2020-10-07 21:01:18 +00:00
all: dhgr.dsk
2021-01-25 20:28:49 +00:00
2021-01-26 01:39:16 +00:00
dhgr.dsk: HELLO RASTER RASTER2 RASTER3 RASTER4 BITS LOTS DHR_LOAD
2020-10-09 05:06:02 +00:00
cp empty.dsk dhgr.dsk
2021-01-26 01:39:16 +00:00
$(DOS33) -y dhgr.dsk SAVE A HELLO
2020-10-07 21:01:18 +00:00
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 RASTER
2020-10-09 05:06:02 +00:00
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 RASTER2
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 RASTER3
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 RASTER4
2021-01-26 01:39:16 +00:00
$(DOS33) -y dhgr.dsk BSAVE -a 0x1000 DHR_LOAD
2020-10-07 21:01:18 +00:00
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 BITS
$(DOS33) -y dhgr.dsk BSAVE -a 0x0300 LOTS
###
2021-01-25 20:28:49 +00:00
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
2021-01-26 01:39:16 +00:00
###
C64.AUX.lzsa: C64.AUX
$(LZSA) -r -f2 C64.AUX C64.AUX.lzsa
C64.BIN.lzsa: C64.BIN
$(LZSA) -r -f2 C64.BIN C64.BIN.lzsa
###
C64.AUX: c64.bmp
$(B2D) c64.bmp A
2021-01-25 20:28:49 +00:00
###
2020-10-07 21:01:18 +00:00
RASTER: raster.o
2021-01-05 23:33:30 +00:00
ld65 -o RASTER raster.o -C ../../linker_scripts/apple2_300.inc
2020-10-07 21:01:18 +00:00
raster.o: raster.s
ca65 -o raster.o raster.s -l raster.lst
2020-10-09 05:06:02 +00:00
###
RASTER2: raster2.o
2021-01-05 23:33:30 +00:00
ld65 -o RASTER2 raster2.o -C ../../linker_scripts/apple2_300.inc
2020-10-09 05:06:02 +00:00
raster2.o: raster2.s
ca65 -o raster2.o raster2.s -l raster2.lst
###
RASTER3: raster3.o
2021-01-05 23:33:30 +00:00
ld65 -o RASTER3 raster3.o -C ../../linker_scripts/apple2_300.inc
2020-10-09 05:06:02 +00:00
raster3.o: raster3.s
ca65 -o raster3.o raster3.s -l raster3.lst
###
RASTER4: raster4.o
2021-01-05 23:33:30 +00:00
ld65 -o RASTER4 raster4.o -C ../../linker_scripts/apple2_300.inc
2020-10-09 05:06:02 +00:00
raster4.o: raster4.s
ca65 -o raster4.o raster4.s -l raster4.lst
2021-01-26 01:39:16 +00:00
###
DHR_LOAD: dhr_load.o
ld65 -o DHR_LOAD dhr_load.o -C ../../linker_scripts/apple2_1000.inc
dhr_load.o: dhr_load.s C64.AUX.lzsa C64.BIN.lzsa
ca65 -o dhr_load.o dhr_load.s -l dhr_load.lst
2020-10-09 05:06:02 +00:00
2020-10-07 21:01:18 +00:00
###
LOTS: lots.o
2021-01-05 23:33:30 +00:00
ld65 -o LOTS lots.o -C ../../linker_scripts/apple2_300.inc
2020-10-07 21:01:18 +00:00
lots.o: lots.s
ca65 -o lots.o lots.s -l lots.lst
###
BITS: bits.o
2021-01-05 23:33:30 +00:00
ld65 -o BITS bits.o -C ../../linker_scripts/apple2_300.inc
2020-10-07 21:01:18 +00:00
bits.o: bits.s
ca65 -o bits.o bits.s -l bits.lst
####
clean:
2021-01-05 23:33:30 +00:00
rm -f *~ *.o *.lst RASTER RASTER2 RASTER3 RASTER4 BITS LOTS encode6