Home | History | Annotate | Line # | Download | only in stand
Makefile.booters revision 1.26.4.1
      1  1.26.4.1   nathanw #	$NetBSD: Makefile.booters,v 1.26.4.1 2001/08/24 00:08:39 nathanw Exp $
      2       1.1     perry 
      3       1.1     perry BINDIR= /usr/mdec
      4       1.2   thorpej STRIPFLAG=
      5       1.1     perry BINMODE=444
      6       1.1     perry 
      7       1.8  drochner I386_STAND_DIR?= $S/arch/i386/stand
      8       1.8  drochner 
      9       1.8  drochner .PATH: ${I386_STAND_DIR}/lib/crt/bootsect ${I386_STAND_DIR}/lib
     10       1.3  drochner BSSTART= start_bootsect.o fraglist.o bootsectmain.o biosdisk_ll.o bios_disk.o diskbuf.o
     11       1.8  drochner .PATH: ${I386_STAND_DIR}/lib/crt/rom
     12      1.16  christos ROMSTART= start_rom.o
     13       1.8  drochner GENPROMDIR= ${I386_STAND_DIR}/genprom
     14       1.8  drochner .PATH: ${I386_STAND_DIR}/lib/crt/dos
     15      1.16  christos DOSSTART= start_dos.o doscommain.o
     16       1.1     perry 
     17      1.13       cgd CPPFLAGS += -nostdinc -I${.OBJDIR} -I$S -I${I386_STAND_DIR}/lib -I$S/lib/libsa
     18       1.5  drochner CPPFLAGS+= -D_STANDALONE
     19       1.1     perry 
     20      1.26  jdolecek CLEANFILES+= vers.c ${BASE}.list
     21      1.26  jdolecek SRCS+=	vers.c
     22       1.7   thorpej 
     23      1.25   mycroft .BEGIN: machine
     24      1.25   mycroft .NOPATH: machine
     25      1.25   mycroft realdepend realall: machine
     26      1.25   mycroft CLEANFILES+= machine
     27       1.6  drochner 
     28      1.25   mycroft machine::
     29      1.10   hubertf 	-rm -f $@
     30       1.6  drochner 	ln -s $S/arch/i386/include $@
     31      1.23  drochner 
     32      1.25   mycroft ${OBJS} ${BSSTART} ${ROMSTART} ${DOSSTART}: machine
     33       1.6  drochner 
     34       1.1     perry ### find out what to use for libkern
     35       1.1     perry KERN_AS=	library
     36       1.1     perry .include "${S}/lib/libkern/Makefile.inc"
     37       1.1     perry LIBKERN=	${KERNLIB}
     38       1.1     perry 
     39       1.1     perry ### find out what to use for libz
     40       1.1     perry Z_AS=		library
     41       1.1     perry .include "${S}/lib/libz/Makefile.inc"
     42       1.1     perry LIBZ=		${ZLIB}
     43       1.1     perry 
     44       1.1     perry ### find out what to use for libsa
     45       1.1     perry SA_AS=		library
     46      1.22  christos SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
     47       1.1     perry .include "${S}/lib/libsa/Makefile.inc"
     48       1.1     perry LIBSA=		${SALIB}
     49       1.1     perry 
     50       1.1     perry ### find out what to use for libi386
     51       1.8  drochner I386DIR= ${I386_STAND_DIR}/lib
     52       1.1     perry .include "${I386DIR}/Makefile.inc"
     53       1.1     perry LIBI386=		${I386LIB}
     54      1.17      tron 
     55  1.26.4.1   nathanw .include <bsd.own.mk>
     56  1.26.4.1   nathanw 
     57      1.18      tron cleandir distclean: cleanlibdir
     58      1.17      tron 
     59      1.17      tron cleanlibdir:
     60      1.17      tron 	rm -rf lib
     61      1.16  christos 
     62      1.16  christos .if ${OBJECT_FMT} == "ELF"
     63      1.16  christos LDFLAGS=-M -e start 	# -N does not work properly.
     64      1.16  christos .else
     65      1.16  christos LDFLAGS=-N -M -e _start 
     66      1.16  christos .endif
     67      1.16  christos 
     68      1.22  christos LIBLIST=${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA}
     69      1.22  christos 
     70      1.26  jdolecek .PHONY: vers.c
     71      1.26  jdolecek vers.c: ${VERSIONFILE}
     72      1.26  jdolecek 	sh ${S}conf/newvers_stand.sh ${.ALLSRC} 'i386' ${NEWVERSWHAT}
     73       1.7   thorpej 
     74      1.26  jdolecek ${BASE}.sym: ${BSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
     75      1.20      tron 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0 ${BSSTART} ${OBJS} \
     76      1.26  jdolecek 	${LIBLIST} >${BASE}.list
     77       1.9  drochner 
     78      1.26  jdolecek ${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
     79      1.20      tron 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext ${RELOC} ${ROMSTART} ${OBJS} \
     80      1.26  jdolecek 	${LIBLIST} >${BASE}.list
     81      1.24  drochner 	objcopy --output-target=binary ${BASE}.sym ${BASE}.bin
     82       1.9  drochner 	(cd ${GENPROMDIR}; ${MAKE} rom BINFILE=${.OBJDIR:Q}/${BASE:Q}.bin \
     83       1.9  drochner 		ROMFILE=${.OBJDIR:Q}/${BASE:Q}.rom ROM_SIZE=${ROM_SIZE:Q})
     84       1.9  drochner 	rm -f ${BASE}.bin
     85       1.9  drochner 
     86      1.26  jdolecek ${BASE}.com: ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
     87      1.20      tron 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0x100 ${DOSSTART} ${OBJS} \
     88      1.26  jdolecek 	${LIBLIST} >${BASE}.list
     89      1.24  drochner 	objcopy --output-target=binary ${BASE}.sym ${BASE}.com
     90       1.9  drochner 
     91       1.9  drochner .include <bsd.prog.mk>
     92