Home | History | Annotate | Line # | Download | only in stand
Makefile.booters revision 1.7.6.3
      1  1.7.6.3  nathanw #	$NetBSD: Makefile.booters,v 1.7.6.3 2002/06/20 03:40:02 nathanw Exp $
      2  1.7.6.2  nathanw 
      3  1.7.6.2  nathanw S?=		${.CURDIR}/../../../..
      4  1.7.6.2  nathanw MDEC_DIR?=	/usr/mdec
      5  1.7.6.2  nathanw RELOC?=		0x3F0000
      6  1.7.6.2  nathanw COPTS?=		-O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes
      7  1.7.6.2  nathanw DEFS?= 
      8  1.7.6.2  nathanw STRIPFLAG?=
      9  1.7.6.2  nathanw 
     10  1.7.6.2  nathanw NOMAN=  # defined
     11  1.7.6.2  nathanw NOMAN=	# defined
     12  1.7.6.2  nathanw NOLINT= # defined
     13  1.7.6.2  nathanw NOLINT=	# defined
     14  1.7.6.2  nathanw NOPIC=	# defined
     15  1.7.6.2  nathanw NOPROFILE=# defined
     16  1.7.6.2  nathanw NOLINT=# defined
     17  1.7.6.2  nathanw 
     18  1.7.6.2  nathanw INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
     19  1.7.6.2  nathanw         -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa
     20  1.7.6.2  nathanw CFLAGS= -nostdinc -m68020-60 -Wa,-m68030 -D_STANDALONE \
     21  1.7.6.2  nathanw 	-DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY ${INCPATH} ${DEFS}
     22  1.7.6.2  nathanw BINDIR= ${MDEC_DIR}
     23  1.7.6.2  nathanw 
     24  1.7.6.2  nathanw .if exists(${.CURDIR}/version)
     25  1.7.6.2  nathanw SRCS+= vers.c
     26  1.7.6.2  nathanw CLEANFILES+= vers.c
     27  1.7.6.2  nathanw 
     28  1.7.6.2  nathanw vers.c: version
     29  1.7.6.2  nathanw 	sh ${S}/conf/newvers_stand.sh -DM ${.CURDIR}/version "mvme68k"
     30  1.7.6.2  nathanw .endif
     31  1.7.6.2  nathanw 
     32  1.7.6.2  nathanw CLEANFILES+= machine m68k
     33  1.7.6.2  nathanw 
     34  1.7.6.2  nathanw machine :
     35  1.7.6.2  nathanw 	-rm -f ${.TARGET}
     36  1.7.6.2  nathanw 	ln -s $S/arch/mvme68k/include machine
     37  1.7.6.2  nathanw 
     38  1.7.6.2  nathanw m68k :
     39  1.7.6.2  nathanw 	-rm -f ${.TARGET}
     40  1.7.6.2  nathanw 	ln -s $S/arch/m68k/include m68k
     41  1.7.6.2  nathanw 
     42  1.7.6.2  nathanw .if defined(LIB)
     43  1.7.6.2  nathanw 
     44  1.7.6.2  nathanw lib${LIB}.a:: machine m68k ${OBJS}
     45  1.7.6.2  nathanw beforedepend:	machine m68k
     46  1.7.6.2  nathanw 
     47  1.7.6.2  nathanw .else
     48  1.7.6.2  nathanw 
     49  1.7.6.2  nathanw PROGDEPENDS?=	${SRTOBJ} ${BUGCRT} ${OBJS} ${LIBS}
     50  1.7.6.2  nathanw PROGLINKOBJS?=	${PROGDEPENDS}
     51  1.7.6.2  nathanw 
     52  1.7.6.2  nathanw ${PROG}: machine m68k ${PROGDEPENDS}
     53  1.7.6.2  nathanw 	${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS}
     54  1.7.6.2  nathanw 
     55  1.7.6.3  nathanw .include <bsd.own.mk>
     56  1.7.6.3  nathanw 
     57  1.7.6.2  nathanw LIB_SA_DIR=	${.CURDIR}/../libsa
     58  1.7.6.3  nathanw LIBSA_DIR!=	cd ${LIB_SA_DIR} && ${PRINTOBJDIR}
     59  1.7.6.2  nathanw LIBSA=${LIBSA_DIR}/libsa.a
     60  1.7.6.2  nathanw 
     61  1.7.6.2  nathanw .PHONY: ${LIBSA}
     62  1.7.6.2  nathanw ${LIBSA}:
     63  1.7.6.2  nathanw 	@echo making sure the libsa is up to date...
     64  1.7.6.2  nathanw 	@cd ${LIB_SA_DIR} && ${MAKE}
     65  1.7.6.2  nathanw 
     66  1.7.6.2  nathanw SRTOBJ?= ${LIBSA_DIR}/SRT0.o
     67  1.7.6.2  nathanw .PHONY: ${SRTOBJ}
     68  1.7.6.2  nathanw ${SRTOBJ}:
     69  1.7.6.2  nathanw 	@echo making sure the libsa is up to date...
     70  1.7.6.2  nathanw 	@cd ${LIB_SA_DIR} && ${MAKE} SRT0.o
     71  1.7.6.2  nathanw 
     72  1.7.6.2  nathanw LIB_BUG_DIR=	${.CURDIR}/../libbug
     73  1.7.6.3  nathanw LIBBUG_DIR!=	cd ${LIB_BUG_DIR} && ${PRINTOBJDIR}
     74  1.7.6.2  nathanw LIBBUG=${LIBBUG_DIR}/libbug.a
     75  1.7.6.2  nathanw 
     76  1.7.6.2  nathanw .PHONY: ${LIBBUG}
     77  1.7.6.2  nathanw ${LIBBUG}:
     78  1.7.6.2  nathanw 	@echo making sure the libbug is up to date...
     79  1.7.6.2  nathanw 	@(cd ${LIB_BUG_DIR}; ${MAKE})
     80  1.7.6.2  nathanw 
     81  1.7.6.2  nathanw BUGCRT=${LIBBUG_DIR}/bugstart.o
     82  1.7.6.2  nathanw 
     83  1.7.6.2  nathanw .PHONY: ${BUGCRT}
     84  1.7.6.2  nathanw $(BUGCRT):
     85  1.7.6.2  nathanw 	@echo making sure the bugcrt is up to date...
     86  1.7.6.2  nathanw 	@(cd ${LIB_BUG_DIR}; ${MAKE} bugstart.o)
     87  1.7.6.2  nathanw 
     88  1.7.6.2  nathanw WRTVID_BOOT_DIR=  ${.CURDIR}/../wrtvid
     89  1.7.6.3  nathanw WRTVID_DIR!=	cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR}
     90  1.7.6.2  nathanw WRTVID=${WRTVID_DIR}/wrtvid
     91  1.7.6.2  nathanw 
     92  1.7.6.2  nathanw .PHONY: ${WRTVID}
     93  1.7.6.2  nathanw ${WRTVID}:
     94  1.7.6.2  nathanw 	@echo making sure the wrtvid is up to date...
     95  1.7.6.2  nathanw 	@(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall)
     96  1.7.6.2  nathanw 
     97  1.7.6.2  nathanw .endif
     98