1
0
mirror of https://frontier.innolan.net/github/AmigaExamples.git synced 2025-12-07 06:11:57 +00:00
Files
AmigaExamples/base.mk
2016-02-27 14:15:25 +11:00

38 lines
608 B
Makefile

all: bin out $(MAKEADF) $(FLOPPY)
gdrive: all
cp $(FLOPPY) ~/Google\ Drive
test: all
cp $(FLOPPY) ~/Projects/amiga/test.adf
go: test
~/Google\ Drive/Amiga/amiga500.sh
bin:
mkdir bin
out:
mkdir out
$(MAKEADF): ../tools/makeadf.c
gcc ../tools/makeadf.c -o $(MAKEADF)
$(FLOPPY): out/bootblock.bin
$(MAKEADF) out/bootblock.bin > $(FLOPPY)
out/bootblock.bin: out/bootblock.o
vlink -brawbin1 $< -o $@
out/bootblock.o: ../shared/bootblock.s out/main.bin
vc -c $< -o $@
out/main.o: $(MODULE) $(EXTRA)
vc -c $< -o $@
out/main.bin: out/main.o
vlink -brawbin1 $< -o $@
clean:
rm -rf out bin *~