1 # Makefile for the boot monitor package.
6 CC86
= exec
cc -mi86
-Was-ncc
14 all: bootblock boot edparams masterboot jumpboot installboot addaout
15 dos
: boot.com mkfile.com
17 bootblock
: bootblock.s
18 $(LD86
) -com
-o
$@ bootblock.s
20 masterboot
: masterboot.s
21 $(LD86
) -com
-o
$@ masterboot.s
24 $(LD86
) -com
-o
$@ jumpboot.s
27 $(CC86
) $(CFLAGS
) -c boot.c
29 bootimage.o
: bootimage.c
30 $(CC86
) $(CFLAGS
) -c bootimage.c
32 rawfs86.o
: rawfs.c rawfs.o
33 ln
-f rawfs.c rawfs86.c
34 $(CC86
) $(CFLAGS
) -c rawfs86.c
36 -cmp
-s rawfs.o rawfs86.o
&& ln
-f rawfs.o rawfs86.o
38 boot
: boothead.s boot.o bootimage.o rawfs86.o
40 boothead.s boot.o bootimage.o rawfs86.o
$(LIBS
)
44 ln
-f boot.c edparams.c
45 $(CC
) $(CFLAGS
) -DUNIX
-c edparams.c
48 edparams
: edparams.o rawfs.o
49 $(CC
) $(CFLAGS
) $(STRIP
) -o
$@ edparams.o rawfs.o
50 install -S
16kw edparams
53 $(CC86
) $(CFLAGS
) -DDOS
-o
$@
-c boot.c
56 $(CC
) -mi386
-o
$@
-c doshead.s
58 dosboot
: doshead.o dosboot.o bootimage.o rawfs86.o
60 doshead.o dosboot.o bootimage.o rawfs86.o
$(LIBS
)
63 .
/a.out2com dosboot boot.com
65 mkfile
: mkfhead.s mkfile.c
66 $(LD
) -.o
-mi86
-com
-o
$@ mkfhead.s mkfile.c
$(LIBS
)
69 .
/a.out2com mkfile mkfile.com
71 installboot
: installboot.o rawfs.o
72 $(CC
) $(STRIP
) -o installboot installboot.o rawfs.o
73 install -S
6kw installboot
76 $(CC
) -o addaout addaout.o
78 installboot.o bootimage.o
: image.h
79 boot.o bootimage.o dosboot.o edparams.o
: boot.h
80 rawfs.o rawfs86.o installboot.o boot.o bootimage.o
: rawfs.h
82 install: $(MDEC
)/bootblock
$(MDEC
)/boot
$(MDEC
)/masterboot \
83 $(MDEC
)/jumpboot
$(BIN
)/installboot
$(BIN
)/edparams
84 dosinstall
: $(MDEC
)/boot.com
$(MDEC
)/mkfile.com
86 $(MDEC
)/bootblock
: bootblock
87 install -cs
-o bin
-m
644 $?
$@
90 install -cs
-o bin
-m
644 $?
$@
92 $(MDEC
)/boot.com
: boot.com
93 install -c
-m
644 $?
$@
95 $(MDEC
)/mkfile.com
: mkfile.com
96 install -c
-m
644 $?
$@
98 $(MDEC
)/masterboot
: masterboot
99 install -cs
-o bin
-m
644 $?
$@
101 $(MDEC
)/jumpboot
: jumpboot
102 install -cs
-o bin
-m
644 $?
$@
104 $(BIN
)/installboot
: installboot
105 install -cs
-o bin
$?
$@
107 $(BIN
)/addaout
: addaout
108 install -cs
-o bin
$?
$@
110 $(BIN
)/edparams
: edparams
111 install -cs
-o bin
$?
$@
115 rm -f bootblock addaout installboot boot masterboot jumpboot edparams
116 rm -f dosboot boot.com mkfile mkfile.com