1 1.5.8.2 bouyer # $NetBSD: Makefile.buildboot,v 1.5.8.2 2001/01/05 17:34:13 bouyer Exp $ 2 1.5.8.2 bouyer 3 1.5.8.2 bouyer # RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long 4 1.5.8.2 bouyer RELOC= FFF00000 5 1.1 thorpej 6 1.1 thorpej S= ${.CURDIR}/../../../.. 7 1.1 thorpej 8 1.1 thorpej .PATH: ${.CURDIR}/../common 9 1.1 thorpej 10 1.1 thorpej PROG= ${PROGAOUT}.lif 11 1.1 thorpej 12 1.1 thorpej SRCS= ${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE} 13 1.5 lukem MKMAN= no 14 1.3 thorpej STRIPFLAG= 15 1.1 thorpej BINMODE= 444 16 1.1 thorpej 17 1.1 thorpej CLEANFILES+= ${PROGAOUT} vers.c vers.o 18 1.1 thorpej 19 1.5.8.1 bouyer CPPFLAGS+= -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -I${.OBJDIR} 20 1.5.8.2 bouyer CPPFLAGS+= -Wno-main 21 1.5.8.1 bouyer CFLAGS= -Os -msoft-float 22 1.5.8.1 bouyer 23 1.5.8.2 bouyer SRCS+= vers.c 24 1.5.8.2 bouyer CLEANFILES+= vers.c 25 1.5.8.2 bouyer 26 1.5.8.2 bouyer .PHONY: vers.c 27 1.5.8.2 bouyer vers.c: ${.CURDIR}/version 28 1.5.8.2 bouyer sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version hp300 ${NEWVERSWHAT} 29 1.1 thorpej 30 1.1 thorpej ${PROG}: ${PROGAOUT} ${MKBOOT_PROG} 31 1.1 thorpej ${MKBOOT_PROG} ${PROGAOUT} ${PROG} 32 1.1 thorpej 33 1.5.8.2 bouyer CPPFLAGS+= -DDCACONSOLE -DAPCICONSOLE -DITECONSOLE -DDCMCONSOLE 34 1.5.8.2 bouyer CPPFLAGS+= -DHIL_KEYBOARD -DUK_KEYBOARD 35 1.5.8.2 bouyer CPPFLAGS+= -DDOMAIN_KEYBOARD 36 1.5.8.2 bouyer CPPFLAGS+= -D_STANDALONE -DCOMPAT_NOLABEL -Dhp300 37 1.5.8.2 bouyer CPPFLAGS+= -DCOMPAT_UFS -DNO_LSEEK 38 1.5.8.2 bouyer 39 1.5.8.2 bouyer # Limit the alloc() heap to below the msgbuf and ROM scratch pages. 40 1.5.8.2 bouyer CPPFLAGS+= -DHEAP_LIMIT="0xffffdfff" 41 1.5.8.2 bouyer 42 1.5.8.2 bouyer COMMONSOURCE= srt0.S autoconf.c clock.c conf.c cons.c devopen.c \ 43 1.5.8.2 bouyer machdep.c prf.c rawfs.c netio.c 44 1.5.8.2 bouyer DRIVERSOURCE= apci.c ct.c dca.c dcm.c dnkbd.c fhpib.c hil.c \ 45 1.5.8.2 bouyer hpib.c if_le.c ite.c ite_dv.c ite_gb.c ite_rb.c \ 46 1.5.8.2 bouyer ite_subr.c ite_tc.c ite_hy.c kbd.c kbdconf.c \ 47 1.5.8.2 bouyer nhpib.c rd.c scsi.c sd.c 48 1.5.8.2 bouyer 49 1.5.8.2 bouyer .ifnmake(print-objdir) 50 1.5.8.2 bouyer MKBOOTOBJDIR!= cd ${.CURDIR}/../mkboot ; ${MAKE} print-objdir 51 1.5.8.2 bouyer MKBOOT_PROG= ${MKBOOTOBJDIR}/mkboot 52 1.5.8.2 bouyer .endif 53 1.5.8.2 bouyer 54 1.5.8.2 bouyer # Make sure ${MKBOOT_PROG} is always available 55 1.5.8.2 bouyer ${MKBOOT_PROG}: 56 1.5.8.2 bouyer @cd ${MKBOOTDIR} && ${MAKE} depend && ${MAKE} 57 1.5.8.2 bouyer 58 1.1 thorpej .include <bsd.prog.mk> 59 1.1 thorpej 60 1.1 thorpej ### find out what to use for libkern 61 1.1 thorpej KERN_AS= library 62 1.1 thorpej .include "${S}/lib/libkern/Makefile.inc" 63 1.1 thorpej LIBKERN= ${KERNLIB} 64 1.1 thorpej 65 1.2 thorpej ### find out what to use for libz 66 1.2 thorpej Z_AS= library 67 1.2 thorpej .include "${S}/lib/libz/Makefile.inc" 68 1.2 thorpej LIBZ= ${ZLIB} 69 1.2 thorpej 70 1.1 thorpej ### find out what to use for libsa 71 1.1 thorpej SA_AS= library 72 1.5.8.1 bouyer SAMISCMAKEFLAGS+="SA_USE_CREAD=yes" 73 1.5.8.1 bouyer SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 74 1.1 thorpej .include "${S}/lib/libsa/Makefile.inc" 75 1.1 thorpej LIBSA= ${SALIB} 76 1.1 thorpej 77 1.2 thorpej ${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 78 1.5.8.2 bouyer ${LD} -N -Ttext ${RELOC} -e begin -o ${PROGAOUT} \ 79 1.5.8.2 bouyer ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 80 1.1 thorpej @size ${PROGAOUT} 81 1.1 thorpej @echo ${PROGAOUT} total size should not exceed 1044480 bytes 82