mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2025-12-06 19:45:07 +00:00
41 lines
712 B
Makefile
41 lines
712 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
|
|
|
|
list:
|
|
m68k-amigaos-objdump -b binary --disassemble-all out/bootblock.bin -m m68k > out/bootblock.txt
|
|
|
|
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 *~
|