Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.11.2.2
      1  1.11.2.2  cgd #	from: @(#)Makefile	8.1 (Berkeley) 6/10/93
      2  1.11.2.2  cgd #	     $Id: Makefile,v 1.11.2.2 1994/09/20 05:07:33 cgd Exp $
      3  1.11.2.2  cgd 
      4  1.11.2.2  cgd # RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long
      5  1.11.2.2  cgd RELOC=	FFF00000
      6  1.11.2.2  cgd 
      7  1.11.2.2  cgd CONS= -DDCACONSOLE -DITECONSOLE -DDCMCONSOLE
      8  1.11.2.2  cgd DEFS= -DSTANDALONE -DCOMPAT_NOLABEL ${CONS} -Dhp300 # -DROMPRF
      9  1.11.2.2  cgd CFLAGS=	-O ${INCPATH} ${DEFS}
     10  1.11.2.2  cgd 
     11  1.11.2.2  cgd SRCS=   autoconf.c cons.c ct.c devopen.c dca.c dcm.c fhpib.c hil.c hpib.c \
     12  1.11.2.2  cgd 	ite.c ite_dv.c ite_gb.c ite_rb.c ite_subr.c ite_tc.c ite_hy.c \
     13  1.11.2.2  cgd 	nhpib.c rd.c scsi.c sd.c
     14  1.11.2.2  cgd SRCS+=	conf.c machdep.c prf.c tgets.c
     15  1.11.2.2  cgd 
     16  1.11.2.2  cgd S=	${.CURDIR}/../../..
     17  1.11.2.2  cgd 
     18  1.11.2.2  cgd .PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
     19  1.11.2.2  cgd .PATH: ${S}/stand ${S}/lib/libsa
     20  1.11.2.2  cgd 
     21  1.11.2.2  cgd INCPATH=-I${.CURDIR} -I${.CURDIR}/../.. -I${S} -I${S}/lib/libsa
     22  1.11.2.2  cgd 
     23  1.11.2.2  cgd ### find out what to use for libkern
     24  1.11.2.2  cgd .include "$S/lib/libkern/Makefile.inc"
     25  1.11.2.2  cgd LIBKERN=	${KERNLIB}
     26  1.11.2.2  cgd 
     27  1.11.2.2  cgd .include "$S/lib/libsa/Makefile.inc"
     28  1.11.2.2  cgd LIBSA=	${SA_LIB}
     29  1.11.2.2  cgd 
     30  1.11.2.2  cgd LIBS=	${LIBSA} libdrive.a \
     31  1.11.2.2  cgd 	${LIBSA} ${LIBKERN}
     32  1.11.2.2  cgd 
     33  1.11.2.2  cgd BOOTS=	pboot dboot nboot dcopy tboot tcopy cat #ls
     34  1.11.2.2  cgd ALL=	${BOOTS} mkboot installboot
     35  1.11.2.2  cgd 
     36  1.11.2.2  cgd all: ${ALL}
     37  1.11.2.2  cgd 
     38  1.11.2.2  cgd ${BOOTS}: ${LIBS}
     39  1.11.2.2  cgd 
     40  1.11.2.2  cgd OBJS=	${SRCS:N*.h:R:S/$/.o/g}
     41  1.11.2.2  cgd libdrive.a: ${OBJS}
     42  1.11.2.2  cgd 	rm -f $@
     43  1.11.2.2  cgd 	${AR} cq $@ ${OBJS}
     44  1.11.2.2  cgd 	${RANLIB} $@
     45  1.11.2.2  cgd 
     46  1.11.2.2  cgd # depend on DEFS
     47  1.11.2.2  cgd 
     48  1.11.2.2  cgd devopen.o machdep.o srt0.o: Makefile
     49  1.11.2.2  cgd cons.o dca.o hil.o: Makefile
     50  1.11.2.2  cgd ite.o ite_subr.o ite_dv.o ite_gb.o ite_hy.o ite_rb.o ite_tc.o: Makefile
     51  1.11.2.2  cgd 
     52  1.11.2.2  cgd # startups
     53  1.11.2.2  cgd 
     54  1.11.2.2  cgd srt0.o: ${.CURDIR}/srt0.s
     55  1.11.2.2  cgd 	${CC} ${INCPATH} ${DEFS} -c ${.CURDIR}/srt0.s
     56  1.11.2.2  cgd 
     57  1.11.2.2  cgd tpsrt0.o: ${.CURDIR}/srt0.s
     58  1.11.2.2  cgd 	${CC} ${INCPATH} ${DEFS} -DTP -c ${.CURDIR}/srt0.s -o tpsrt0.o
     59  1.11.2.2  cgd 
     60  1.11.2.2  cgd # new boot
     61  1.11.2.2  cgd pboot:	pboot.o srt0.o ${LIBS}
     62  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin srt0.o pboot.o ${LIBS} -o $@
     63  1.11.2.2  cgd 	@size pboot
     64  1.11.2.2  cgd 	@echo pboot total size should not exceed 1044480 bytes
     65  1.11.2.2  cgd 
     66  1.11.2.2  cgd ls:	ls.o srt0.o ${LIBS}
     67  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin srt0.o ls.o ${LIBS} -o $@
     68  1.11.2.2  cgd 	@size ls
     69  1.11.2.2  cgd 	@echo ls total size should not exceed 1044480 bytes
     70  1.11.2.2  cgd 
     71  1.11.2.2  cgd cat:	cat.o srt0.o ${LIBS}
     72  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin srt0.o cat.o ${LIBS} -o $@
     73  1.11.2.2  cgd 	@size cat
     74  1.11.2.2  cgd 	@echo cat total size should not exceed 1044480 bytes
     75  1.11.2.2  cgd 
     76  1.11.2.2  cgd # bootable from tape
     77  1.11.2.2  cgd 
     78  1.11.2.2  cgd tboot:	tboot.o srt0.o ${LIBS}
     79  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin srt0.o tboot.o ${LIBS} -o $@
     80  1.11.2.2  cgd 	@size tboot
     81  1.11.2.2  cgd 	@echo tboot total size should not exceed 1044480 bytes
     82  1.11.2.2  cgd 
     83  1.11.2.2  cgd tboot.o: boot.c
     84  1.11.2.2  cgd 	cp ${.CURDIR}/boot.c tboot.c; chmod +w tboot.c
     85  1.11.2.2  cgd 	${CC} -c ${CFLAGS} -DJUSTASK tboot.c
     86  1.11.2.2  cgd 	rm -f tboot.c
     87  1.11.2.2  cgd 
     88  1.11.2.2  cgd tcopy:	copy.o tpsrt0.o ${LIBS}
     89  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin tpsrt0.o copy.o ${LIBS} -o $@
     90  1.11.2.2  cgd 	@size tcopy
     91  1.11.2.2  cgd 	@echo tcopy total size should not exceed 1044480 bytes
     92  1.11.2.2  cgd 
     93  1.11.2.2  cgd # bootable from floppy or real disks
     94  1.11.2.2  cgd 
     95  1.11.2.2  cgd dboot:	boot.o srt0.o bootconf.o ${LIBS}
     96  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin srt0.o boot.o bootconf.o ${LIBS} -o $@ 
     97  1.11.2.2  cgd 	@size dboot
     98  1.11.2.2  cgd 	@echo dboot text+data size should not exceed 57344 bytes
     99  1.11.2.2  cgd 	@echo dboot total size should not exceed 1044480 bytes
    100  1.11.2.2  cgd 
    101  1.11.2.2  cgd bootconf.o: ${.CURDIR}/conf.c
    102  1.11.2.2  cgd 	rm -f bootconf.c
    103  1.11.2.2  cgd 	ln -s ${.CURDIR}/conf.c bootconf.c
    104  1.11.2.2  cgd 	${CC} -c ${CFLAGS} -DBOOT bootconf.c
    105  1.11.2.2  cgd 	rm -f bootconf.c
    106  1.11.2.2  cgd 
    107  1.11.2.2  cgd # non-secure boot (allows booting non-root owned or world writable kernels)
    108  1.11.2.2  cgd 
    109  1.11.2.2  cgd nboot:	nboot.o srt0.o bootconf.o ${LIBS}
    110  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin -o nboot srt0.o nboot.o bootconf.o ${LIBS}
    111  1.11.2.2  cgd 	@size nboot
    112  1.11.2.2  cgd 	@echo nboot text+data size should not exceed 57344 bytes
    113  1.11.2.2  cgd 	@echo nboot total size should not exceed 1044480 bytes
    114  1.11.2.2  cgd 
    115  1.11.2.2  cgd nboot.o: ${.CURDIR}/boot.c
    116  1.11.2.2  cgd 	rm -f nboot.c
    117  1.11.2.2  cgd 	ln -s ${.CURDIR}/boot.c nboot.c
    118  1.11.2.2  cgd 	${CC} -c ${CFLAGS} -DINSECURE nboot.c
    119  1.11.2.2  cgd 	rm -f nboot.c
    120  1.11.2.2  cgd 
    121  1.11.2.2  cgd dcopy:	copy.o srt0.o conf.o ${LIBS}
    122  1.11.2.2  cgd 	${LD} -N -T ${RELOC} -e begin -o dcopy srt0.o copy.o conf.o ${LIBS}
    123  1.11.2.2  cgd 
    124  1.11.2.2  cgd mkboot: ${.CURDIR}/mkboot.c
    125  1.11.2.2  cgd 	${CC} ${CFLAGS} -o mkboot ${.CURDIR}/mkboot.c
    126  1.11.2.2  cgd 
    127  1.11.2.2  cgd installboot: ${.CURDIR}/installboot.sh
    128  1.11.2.2  cgd 	@rm -f installboot
    129  1.11.2.2  cgd 	cp -p ${.CURDIR}/installboot.sh installboot
    130  1.11.2.2  cgd 
    131  1.11.2.2  cgd # utilities
    132  1.11.2.2  cgd 
    133  1.11.2.2  cgd clean cleandir:
    134  1.11.2.2  cgd 	rm -f *.o *.exe *.i errs make.out
    135  1.11.2.2  cgd 	rm -f a.out pboot cat ls tboot tcopy
    136  1.11.2.2  cgd 	rm -f boot[a-z]? boot[a-wyz][a-z].c conf[a-wyz][a-z].c
    137  1.11.2.2  cgd 	rm -f core sboot bootconf.c nboot.c
    138  1.11.2.2  cgd 	rm -f libdrive.a mkboot dboot dcopy nboot installboot *.lif
    139  1.11.2.2  cgd 
    140  1.11.2.2  cgd install: mkboot installboot ${ALL}
    141  1.11.2.2  cgd 	./mkboot pboot netbsdboot.lif
    142  1.11.2.2  cgd 	./mkboot dboot diskboot.lif
    143  1.11.2.2  cgd 	./mkboot nboot ndiskboot.lif
    144  1.11.2.2  cgd 	./mkboot tboot tcopy tapeboot.lif
    145  1.11.2.2  cgd 	install -c -o bin -g bin -m 555 installboot ${DESTDIR}/usr/mdec
    146  1.11.2.2  cgd 	install -c -o bin -g bin -m 444 netbsdboot.lif ${DESTDIR}/usr/mdec/rdboot
    147  1.11.2.2  cgd 	rm -f ${DESTDIR}/usr/mdec/bootrd
    148  1.11.2.2  cgd 	ln ${DESTDIR}/usr/mdec/rdboot ${DESTDIR}/usr/mdec/bootrd
    149  1.11.2.2  cgd 	rm -f ${DESTDIR}/usr/mdec/sdboot
    150  1.11.2.2  cgd 	ln ${DESTDIR}/usr/mdec/rdboot ${DESTDIR}/usr/mdec/sdboot
    151  1.11.2.2  cgd 	rm -f ${DESTDIR}/usr/mdec/bootsd
    152  1.11.2.2  cgd 	ln ${DESTDIR}/usr/mdec/sdboot ${DESTDIR}/usr/mdec/bootsd
    153  1.11.2.2  cgd 	install -c -o bin -g bin -m 644 tapeboot.lif ${DESTDIR}/usr/mdec/bootct
    154  1.11.2.2  cgd #	install -o bin -g bin -m 755 -d ${DESTDIR}/sys/hpdist/tp
    155  1.11.2.2  cgd #	install -o bin -g bin -m 444 netbsdboot.lif ${DESTDIR}/sys/hpdist/tp
    156  1.11.2.2  cgd #	install -o bin -g bin -m 444 tapeboot.lif ${DESTDIR}/sys/hpdist/tp
    157  1.11.2.2  cgd #	install -o bin -g bin -m 444 diskboot.lif ${DESTDIR}/sys/hpdist/tp
    158  1.11.2.2  cgd #	install -o bin -g bin -m 444 ndiskboot.lif ${DESTDIR}/sys/hpdist/tp
    159  1.11.2.2  cgd 
    160  1.11.2.2  cgd .include <bsd.dep.mk>
    161  1.11.2.2  cgd .include <bsd.obj.mk>
    162  1.11.2.2  cgd # XXX This should not be necessary.
    163  1.11.2.2  cgd .include <bsd.subdir.mk>
    164  1.11.2.2  cgd 
    165  1.11.2.2  cgd FRC:
    166