summaryrefslogtreecommitdiff
path: root/bootblocks/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bootblocks/Makefile')
-rw-r--r--bootblocks/Makefile42
1 files changed, 21 insertions, 21 deletions
diff --git a/bootblocks/Makefile b/bootblocks/Makefile
index 9a4ccd9..85393a7 100644
--- a/bootblocks/Makefile
+++ b/bootblocks/Makefile
@@ -1,17 +1,16 @@
HOSTCC=cc
HOSTCCFLAGS=-O
+BCC=bcc
-CC=bcc
-CFLAGS=-ansi -O -Ms
-AS=as86
+CC=$(BCC)
+CFLAGS=-ansi -Ms -H0x10000 -s
ASFLAGS=-0
# LST=-l $*.lst
-nothing:
- @more README
+default: makeboot makeboot.com monitor.out
-all: makeboot monitor.out bin
+all: default tgz bin
CSRC=minix.c
SSRC=tarboot.s skip.s com_bcc.s tich.s sysboot.s bootlist.s mbr.s msdos.s
@@ -19,8 +18,8 @@ SSRC=tarboot.s skip.s com_bcc.s tich.s sysboot.s bootlist.s mbr.s msdos.s
encap: $(SSRC:s=v) $(CSRC:c=v)
bin: $(SSRC:s=bin) $(CSRC:c=bin)
-MOBJ=monitor.o i86_funcs.o relocate.o
-MSRC=monitor.c i86_funcs.c relocate.c
+MOBJ=monitor.o i86_funcs.o relocate.o help.o bzimage.o dosfs.o nofs.o
+MSRC=monitor.c i86_funcs.c relocate.c help.c bzimage.c dosfs.c nofs.c
install:
@@ -29,40 +28,41 @@ monitor.out: $(MOBJ)
monitor: $(MSRC)
@rm -f $(MOBJ)
- make 'CFLAGS=-ansi -O' monitor.out
+ make 'CFLAGS=-ansi' monitor.out
mv monitor.out monitor
@rm -f $(MOBJ)
minix.s: minix.c
- bcc -Mf -O -S minix.c
+ $(BCC) -Mc -S minix.c
-makeboot: tarboot.v sysboot.v makeboot.c
+makeboot: makeboot.c sysboot.v skip.v msdos.v tarboot.v
$(HOSTCC) $(HOSTCCFLAGS) -o makeboot makeboot.c
-dosboot: dosboot.c sysboot.v skip.v msdos.v
- $(HOSTCC) $(HOSTCCFLAGS) -o dosboot dosboot.c
+makeboot.com: makeboot.c sysboot.v skip.v msdos.v tarboot.v
+ $(BCC) -Md -o makeboot.com makeboot.c
-clean:
- rm -f monitor makeboot dosboot minix.s *.o *.bin *.out *.lst *.sym *.v
+clean realclean:
+ rm -f monitor makeboot bootblocks.tar.gz
+ rm -f minix.s *.com *.o *.bin *.out *.lst *.sym *.v
-tgz: minix.bin monitor.out makeboot
+tgz: minix.bin monitor.out makeboot.com makeboot
tar cfV bootblocks.tar ENIAC monitor.out \
README Makefile \
- $(MSRC) dosboot.c makeboot.c \
+ $(MSRC) makeboot.c \
$(CSRC) $(SSRC) \
- makeboot minix.bin
- makeboot bootblocks.tar
+ makeboot.com minix.bin
+ makeboot tar bootblocks.tar
gzip -f9 bootblocks.tar
distribution:
tar czf /tmp/bootblocks.tar.gz README Makefile \
- $(MSRC) dosboot.c makeboot.c \
+ $(MSRC) makeboot.c \
$(CSRC) $(SSRC)
.SUFFIXES: .bin .v
.s.bin:
- $(AS) $(ASFLAGS) -b $*.bin -s $*.sym -l $*.lst $*.s
+ $(BCC) -c $*.s -A-b -A$*.bin -A-s -A$*.sym -A-l -A$*.lst
.s.v:
as86_encap $*.s $*.v $*_ $(ASFLAGS) $(LST)