123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- objtype=386
- </$objtype/mkfile
- BIN=/386
- TARG=\
- 9load\
- 9loaddebug\
- 9loadlite\
- 9loadlitedebug\
- 9pxeload\
- 9pxeloaddebug\
- ld.com\
- mbr\
- pbs\
- pbslba\
- CORE=\
- alarm.$O\
- cga.$O\
- clock.$O\
- console.$O\
- dosboot.$O\
- devfloppy.$O\
- dma.$O\
- fs.$O\
- ilock.$O\
- kbd.$O\
- kfsboot.$O\
- print.$O\
- queue.$O\
- trap.$O\
- LOAD=\
- 8250.$O\
- apm.$O\
- boot.$O\
- cis.$O\
- conf.$O\
- devbios.$O\
- devi82365.$O\
- devpccard.$O\
- devsd.$O\
- inflate.$O\
- load.$O\
- memory.$O\
- part.$O\
- pci.$O\
- sdata.$O\
- sdmylex.$O\
- sd53c8xx.$O\
- sdiahci.$O\
- sdscsi.$O\
- sdaoe.$O\
- sdbios.$O\
- ETHER=\
- bootp.$O\
- ether.$O\
- ether2114x.$O\
- ether2000.$O\
- ether589.$O\
- ether79c970.$O\
- ether8003.$O\
- ether8139.$O\
- ether8169.$O\
- ether82563.$O\
- ether82557.$O\
- ether83815.$O\
- ether8390.$O\
- etherec2t.$O\
- etherelnk3.$O\
- etherga620.$O\
- etherigbe.$O\
- ethermii.$O\
- etherrhine.$O\
- etherdp83820.$O\
- BCOM=\
- bcom.$O\
- bootld.$O\
- devsd.$O\
- memory.$O\
- part.$O\
- pci.$O\
- sdata.$O\
- sdscsi.$O\
- HFILES=\
- lib.h\
- mem.h\
- dat.h\
- fns.h\
- io.h\
- aoe.h\
- CFLAGS=-FTVw -I.
- all:V: $TARG
- 9load: l.$O $CORE $LOAD $ETHER
- $LD -o $target -H3 -T0x80010000 -l $prereq -lflate -lc -lip
- ls -l $target
- 9pxeload: lpxe.$O $CORE $LOAD $ETHER
- $LD -o $target -H3 -T0x80007C00 -l $prereq -lflate -lc -lip
- ls -l $target
- 9loaddebug: l.$O $CORE $LOAD $ETHER
- $LD -o $target -T0x80010000 -l $prereq -lflate -lc -lip
- ls -l $target
- # acid $target
- # map({"text", 0x80010000, 0x80090000, 0x00000020})
- 9pxeloaddebug: lpxe.$O $CORE $LOAD $ETHER
- $LD -o $target -T0x80007C00 -l $prereq -lflate -lc -lip
- ls -l $target
- # acid $target
- # map({"text", 0x80010000, 0x80090000, 0x00000020})
- 9loadlite: l.$O $CORE $LOAD noether.$O
- $LD -o $target -H3 -T0x80010000 -l $prereq -lflate -lc
- ls -l $target
- 9loadlitedebug: l.$O $CORE $LOAD noether.$O
- $LD -o $target -T0x80010000 -l $prereq -lflate -lc
- ls -l $target
- # acid $target
- # map({"text", 0x80010000, 0x80090000, 0x00000020})
- ld.com: ld.$O $CORE $BCOM
- $LD -o $target -H3 -T0x80080100 -l $prereq -lc
- ls -l $target
- lddebug: ld.$O $CORE $BCOM
- $LD -o $target -T0x80080100 -l $prereq -lc
- ls -l $target
- # acid $target
- # map({"text", 0x80080100, 0x800B0000, 0x00000020})
- ld.$O: l.s
- $AS -DDOTCOM -o $target l.s
- l.$O: l.s
- $AS -DVGA -o $target l.s
- lpxe.$O: l.s
- $AS -DPXE -DVGA -o $target l.s
- lnovga.$O: l.s
- $AS -o $target l.s
- lpxenovga.$O: l.s
- $AS -DPXE -o $target l.s
- loadverb.$O: load.c
- $CC -o $target $CFLAGS '-DVERBOSE=1' load.c
- %.$O: %.s
- $AS $stem.s
- %.$O: %.c
- $CC $CFLAGS $stem.c
- %.$O: $HFILES
- l.$O pbs.$O pbslba.$O mbr.$O: x16.h
- clock.$O floppy.$O trap.$O: ureg.h
- bcom.$O conf.$O devfloppy.$O devsd.$O dosboot.$O fs.$O \
- kfsboot.$O load.$O part.$O: dosfs.h fs.h kfs.h
- ether.$O etherelnk3.$O: etherif.h
- devsd.$O part.$O sdata.$O sdscsi.$O: sd.h
- bootp.$O: ip.h
- mbr: mbr.$O
- $LD -o $target -H3 -T0x0600 -l $prereq
- ls -l $target
- pbs&: pbs%.$O
- $LD -o $target -H3 -T0x7C00 -l $prereq
- ls -l $target
- pbs&.debug: pbs%.$O
- $LD -o $target -T0x7C00 -l $prereq
- ls -l $target
- # acid $target
- # map({"text", 0x7C00, 0x7E00, 0x00000020})
-
- clean:
- rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $TARG 9loaddebug lddebug
- install:V:
- for (i in $TARG)
- mk $MKFLAGS $i.install
- %.install:V: $BIN/%
- # import lookout / /n/lookout
- # cp $prereq /n/lookout/$prereq
- $BIN/%: %
- cp $stem $BIN/$stem
- UPDATE=\
- mkfile\
- ${CORE:%.$O=%.c}\
- ${LOAD:%.$O=%.c}\
- ${BCOM:%.$O=%.c}\
- ${ETHER:%.$O=%.c}\
- $HFILES\
- l.s\
- noether.c\
- pbs.s\
- pbslba.s\
- mbr.s\
- x16.h\
- ureg.h\
- dosfs.h\
- fs.h\
- kfs.h\
- etherif.h\
- sd.h\
- ip.h\
- devfloppy.h\
- ${TARG:%=/386/%}\
- update:V:
- update $UPDATEFLAGS $UPDATE
|