mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2025-12-06 22:40:56 +00:00
51 lines
978 B
Makefile
51 lines
978 B
Makefile
MAKEADFDIR=../tools/makeadf/
|
|
MAKEADF=$(MAKEADFDIR)/out/makeadf
|
|
HOST_WARNINGS=-pedantic-errors -Wfatal-errors -Wall -Werror -Wextra -Wno-unused-parameter -Wshadow
|
|
HOST_CFLAGS=-g $(HOST_WARNINGS)
|
|
IMAGECONDIR=../tools/imagecon
|
|
IMAGECON=$(IMAGECONDIR)/out/imagecon
|
|
|
|
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
|
|
|
|
$(IMAGECON):
|
|
make -C $(IMAGECONDIR)
|
|
|
|
$(MAKEADF):
|
|
make -C $(MAKEADFDIR)
|
|
|
|
$(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 *~
|