NetBSD/sys/arch/pmax/stand/Makefile.booters

57 lines
1.3 KiB
Makefile

# $NetBSD: Makefile.booters,v 1.11 1998/05/22 12:56:35 drochner Exp $
# @(#)Makefile 8.3 (Berkeley) 2/16/94
STAND= ../../stand
#VPATH= ${STAND}
# RELOC=80200000 allows for boot prog up to 1D0000 (1900544) bytes long
RELOC= 80200000
DEFS= -D_STANDALONE -DSMALL
CFLAGS= -O2 ${INCPATH} ${DEFS}
AFLAGS= -O2 ${INCPATH} ${DEFS} -D_LOCORE
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH: ${S}/stand ${S}/lib/libsa
#INCPATH=-I. -I/sys
INCPATH=-I${.CURDIR} -I${.CURDIR}/../.. -I${S} -I${S}/lib/libsa
### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
#LIBKERN= ${KERNLIB}
#KERNLIB= ${.CURDIR}/../compile/libkern.a
.include "$S/lib/libsa/Makefile.inc"
LIBSA= ${SA_LIB}
# not yet: need to write libsa/Makefile.inc first
LIBS= ${.OBJDIR}/libdrive.a ${.CURDIR}/libsa/libsa.a ${KERNLIB}
#LIBS= libdrive.a libsa/libsa.a ../../libkern/obj/libkern.a
DRIVERS= rz.c
SRCS= ${DRIVERS}
#STUFF= callvec.c devopen.c getenv.c gets.c strcmp.c
STUFF=
.s.o:
${CPP} -E ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \
${AS} -o ${.TARGET}
includes:
#libsa/libsa.a::
# cd libsa; make
${.OBJDIR}/libdrive.a: conf.o ${DRIVERS:.c=.o}
ar crv $@ $?
ranlib $@
depend: ${SRCS}
mkdep ${INCPATH} ${DEFS} ${SRCS}
mkdep -a -p ${INCPATH} ${DEFS} mkboot.c mkboottape.c
cd libsa; make depend
.include <bsd.dep.mk>
.include <bsd.obj.mk>