2016-10-15 03:03:00 +00:00
|
|
|
|
|
|
|
LD=mpw linkIIgs
|
|
|
|
ASM=mpw asmIIgs
|
|
|
|
#ASMFLAGS=-d DEBUG_S16 -d DebugSymbols
|
2016-10-17 00:22:51 +00:00
|
|
|
ASMFLAGS=-case on -l
|
2016-10-15 03:03:00 +00:00
|
|
|
LDFLAGS=
|
|
|
|
|
|
|
|
|
2018-08-20 04:15:51 +00:00
|
|
|
all : host.driver boot.driver host.fst boot.sys atinit
|
2016-10-15 03:03:00 +00:00
|
|
|
|
|
|
|
host.fst : host.fst.o
|
|
|
|
$(LD) -t \$$BD -at \$$0000 $< -o $@
|
|
|
|
|
|
|
|
# aux type (-at)
|
|
|
|
# $8000 = inactive
|
|
|
|
# $0100 = gs/os driver
|
|
|
|
# $00xx = number of devices supported (should match dib)
|
|
|
|
host.driver : host.driver.o
|
|
|
|
$(LD) -t \$$BB -at \$$0101 $< -o $@
|
|
|
|
|
2018-07-14 13:06:49 +00:00
|
|
|
boot.driver : boot.driver.o
|
|
|
|
$(LD) -t \$$BB -at \$$0181 $< -o $@
|
|
|
|
|
|
|
|
# -d BootDriver must come after -case on
|
2016-10-15 03:03:00 +00:00
|
|
|
host.driver.o : host.driver.aii gsos.equ
|
2018-07-14 13:06:49 +00:00
|
|
|
boot.driver.o : host.driver.aii gsos.equ
|
|
|
|
$(ASM) $(ASMFLAGS) -d BootDriver $< -o $@
|
|
|
|
|
|
|
|
|
2016-10-15 03:03:00 +00:00
|
|
|
|
2016-10-15 23:27:47 +00:00
|
|
|
host.fst.o : host.fst.aii gsos.equ fst.equ records.equ fst.macros
|
2016-10-15 03:03:00 +00:00
|
|
|
|
2018-07-13 01:54:57 +00:00
|
|
|
boot: boot.o
|
|
|
|
$(LD) $< -o $@
|
|
|
|
|
|
|
|
boot.sys: boot
|
2018-08-20 04:15:51 +00:00
|
|
|
mpw makebiniigs -p -s -t \$$FF $< -o $@
|
|
|
|
|
|
|
|
|
|
|
|
atinit: atinit.omf
|
|
|
|
mpw makebiniigs -p -s -t \$$e2 $< -o $@
|
|
|
|
|
|
|
|
|
|
|
|
atinit.omf: atinit.o
|
|
|
|
$(LD) -x $^ -o $@
|
|
|
|
|
2018-07-13 01:54:57 +00:00
|
|
|
|
2017-02-18 18:57:42 +00:00
|
|
|
.PHONY : clean
|
|
|
|
clean :
|
2018-08-20 04:15:51 +00:00
|
|
|
$(RM) -- host.fst host.driver boot.driver boot.sys boot atinit atinit.omf *.o
|
2016-10-15 03:03:00 +00:00
|
|
|
|
|
|
|
%.o : %.aii
|
2016-10-17 00:22:51 +00:00
|
|
|
$(ASM) $(ASMFLAGS) $< -o $@
|
2017-02-15 01:05:38 +00:00
|
|
|
|
2018-08-20 04:15:51 +00:00
|
|
|
|
|
|
|
|