diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-11-03 22:33:35 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:33:35 +0200 |
commit | c218c617b5be443b7968308506969ad2b726d73c (patch) | |
tree | 0051f396af56133d24fcf2ab757fabc78c1a09bf /bootblocks/Makefile | |
parent | 0936b9aeab611665645a4e6bafaded7ca76dd189 (diff) | |
parent | 0d2fbe9b1bd284ce2cad55be17e8f2c896031a25 (diff) | |
download | dev86-c218c617b5be443b7968308506969ad2b726d73c.tar.gz |
Import Dev86src-0.0.8.tar.gzv0.0.8
Diffstat (limited to 'bootblocks/Makefile')
-rw-r--r-- | bootblocks/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/bootblocks/Makefile b/bootblocks/Makefile new file mode 100644 index 0000000..0ed6e1d --- /dev/null +++ b/bootblocks/Makefile @@ -0,0 +1,65 @@ + +HOSTCC=cc +HOSTCCFLAGS=-O + +CC=bcc +CFLAGS=-ansi -O -Ms +AS=as86 +ASFLAGS=-0 +# LST=-l $*.lst + +nothing: + @more README + +all: makeboot monitor.out bin + +CSRC=minix.c +SSRC=tarboot.s tiny.s com_bcc.s tich.s sysboot.s bootlist.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 + +install: + +monitor.out: $(MOBJ) + $(CC) $(CFLAGS) $(MOBJ) -o monitor.out + +monitor: $(MSRC) + @rm -f $(MOBJ) + make 'CFLAGS=-ansi -O' monitor.out + mv monitor.out monitor + @rm -f $(MOBJ) + +minix.s: minix.c + bcc -Mf -O -S minix.c + +makeboot: tarboot.v sysboot.v makeboot.c + $(HOSTCC) $(HOSTCCFLAGS) -o makeboot makeboot.c + +clean: + rm -f monitor makeboot minix.s *.o *.bin *.out *.lst *.sym *.v + +tgz: minix.bin monitor.out makeboot + tar cfV bootblocks.tar ENIAC monitor.out \ + README Makefile \ + $(MSRC) standalone.c makeboot.c \ + $(CSRC) $(SSRC) \ + makeboot minix.bin + makeboot bootblocks.tar + gzip -f9 bootblocks.tar + +distribution: + tar czf /tmp/bootblocks.tar.gz README Makefile \ + $(MSRC) standalone.c makeboot.c \ + $(CSRC) $(SSRC) + +.SUFFIXES: .bin .v + +.s.bin: + $(AS) $(ASFLAGS) -b $*.bin -s $*.sym -l $*.lst $*.s + +.s.v: + as86_encap $*.s $*.v $*_ $(ASFLAGS) $(LST) |