Annotation of Net2/arch/i386/netboot/makefile, revision 1.1.1.1

1.1       root        1: # netboot
                      2: #
                      3: # Makefile,v
                      4: # Revision 1.1  1993/07/08  16:03:44  brezak
                      5: # Diskless boot prom code from Jim McKim ([email protected])
                      6: #
                      7: # Revision 1.4  1993/06/30  20:14:08  mckim
                      8: # Added BOOTP support.
                      9: #
                     10: # Revision 1.3  1993/06/08  14:37:18  mckim
                     11: # TAG rule missed proto.h.
                     12: #
                     13: # Revision 1.2  1993/05/28  20:01:24  mckim
                     14: # Fixed various StartProg() problems.
                     15: #
                     16: # Revision 1.1.1.1  1993/05/28  11:41:08  mckim
                     17: # Initial version.
                     18: #
                     19: 
                     20: # uncomment one of these as appropriate for the board being used
                     21: #ETH_OBJ = ne2100.o
                     22: ETH_OBJ = wd80x3.o
                     23: 
                     24: # set this to the size of the eprom (decimal)
                     25: ROM_SIZE = 16384
                     26: 
                     27: .SUFFIXES: .s .c .o .list
                     28: .c.list:
                     29:        $(CC) $(CFLAGS) $(INC) -S $<
                     30:        $(AS) $*.s -a -o /dev/null > $@
                     31:        rm $*.s
                     32: 
                     33: .s.o:
                     34:        @echo $(AS) -o $*.o $< [$(DEFINES)]
                     35:        -@trap "/bin/rm -f $*.i X$*.c; exit 0" 0 1 2 3 10 15; \
                     36:        /bin/rm -f X$*.c; \
                     37:        ln $*.s X$*.c; \
                     38:        $(CC) -E $(CFLAGS) X$*.c > $*.i; \
                     39:        if [ $$? != 0 ]; then :; \
                     40:        else \
                     41:         $(AS) $*.i -o $@; \
                     42:        fi
                     43: .s.list:
                     44:        @echo $(AS) -o $*.o $< [$(DEFINES)]
                     45:        -@trap "/bin/rm -f $*.i X$*.c; exit 0" 0 1 2 3 10 15; \
                     46:        /bin/rm -f X$*.c;       \
                     47:        ln $*.s X$*.c;  \
                     48:        $(CC) -E $(CFLAGS) X$*.c > $*.i;        \
                     49:        if [ $$? != 0 ]; then :;        \
                     50:        else \
                     51:                $(AS) $*.i -a -o /dev/null > $@;        \
                     52:        fi
                     53: 
                     54: #AS = as
                     55: #CC = cc
                     56: #LD = ld
                     57: 
                     58: 
                     59: # the relocation address (hex)
                     60: RELOC = 98000
                     61: CFLAGS = -O $(DEFINES) -nostdinc
                     62: DEFINES = -DRELOC=0x$(RELOC) -DROM_SIZE=$(ROM_SIZE) -DTRACE=0 -Dprinte=printf \
                     63:  -DDEBUG -DUSE_BOOTP -DUSE_RARP #-DPhysBcopy=bcopy -DPhysBzero=bzero
                     64: 
                     65: OBJS = start.o main.o cga.o kbd.o packet.o tftp.o arp.o \
                     66:  $(ETH_OBJ) misc.o asm.o
                     67: 
                     68: all: boot.bin
                     69: 
                     70: boot.bin: $(OBJS) genprom
                     71:        ${LD} -N -T ${RELOC} $(OBJS)
                     72:        cp a.out boot.sym
                     73:        rm -f $@
                     74:        strip a.out
                     75:        dd if=a.out of=boot.v ibs=32 skip=1 obs=1024b
                     76:        genprom <boot.v >$@
                     77:        rm -f a.out boot.v
                     78: 
                     79: genprom: genprom.c
                     80:        $(CC) -o $@ -DROM_SIZE=$(ROM_SIZE) genprom.c
                     81: 
                     82: # copy to dos floppy for testing (faster than burning an eprom)
                     83: dostest: boot.bin
                     84:        mcopy -n boot.bin a:
                     85: 
                     86: TAGS:  main.c cga.c kbd.c packet.c tftp.c arp.c wd80x3.c misc.c proto.h
                     87:        etags main.c cga.c kbd.c packet.c tftp.c arp.c wd80x3.c misc.c proto.h
                     88: 
                     89: clean:
                     90:        rm -f *.o *.list *~ genprom
                     91: 
                     92: cleandir: clean
                     93:        rm -f boot.bin boot.sym
                     94: 
                     95: .include <bsd.prog.mk>

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.