summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/stand/Makefile.inc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-09-17 10:46:26 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-09-17 10:46:26 +0000
commit6476cf829b28337c9b81bab966bbc4a4abe37982 (patch)
tree4c6323f69275a5aaa2d1e0a467f4f907e2f47314 /sys/arch/sparc/stand/Makefile.inc
parent3e5a5259f8fb1b6393dd2cf83fb2c3eeda0ea959 (diff)
Reorganizaed bootblocks. Builds like hp300 now.
Diffstat (limited to 'sys/arch/sparc/stand/Makefile.inc')
-rw-r--r--sys/arch/sparc/stand/Makefile.inc56
1 files changed, 38 insertions, 18 deletions
diff --git a/sys/arch/sparc/stand/Makefile.inc b/sys/arch/sparc/stand/Makefile.inc
index fee77b15daa..291390e4401 100644
--- a/sys/arch/sparc/stand/Makefile.inc
+++ b/sys/arch/sparc/stand/Makefile.inc
@@ -1,16 +1,7 @@
+# $OpenBSD: Makefile.inc,v 1.7 1997/09/17 10:46:08 downsj Exp $
# $NetBSD: Makefile.inc,v 1.5 1996/02/01 22:33:01 mycroft Exp $
-.if !defined(__stand_makefile_inc)
-__stand_makefile_inc=1
-
-S= ${.CURDIR}/../../../${R}
-
-.ifndef TOPLEVEL
-.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir)
-.BEGIN:
- -@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
-.endif
-.endif
+BINDIR= /usr/mdec
RELOC_SUN4= 0x240000
RELOC_SUN4C= 0x340000
@@ -19,14 +10,43 @@ RELOC_SUN4M= 0x440000
# Note: a `RELOC' value of 0x340000 seems to work on most machines
RELOC?= ${RELOC_SUN4C}
-INCLUDES+= -I. -I${.CURDIR}/.. -I${S}/arch -I${S} -I${S}/lib/libsa
-DEFS+= -DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
-CFLAGS+= -O2 ${INCLUDES} ${DEFS}
+DEFS= -DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
+
+### Figure out what to use for libkern
+LIBKERNDIR= ${.CURDIR}/../libkern
+
+.if exists(${LIBKERNDIR}/obj.${MACHINE})
+LIBKERNOBJDIR= ${LIBKERNDIR}/obj.${MACHINE}
+.elif exists(${LIBKERNDIR}/obj)
+LIBKERNOBJDIR= ${LIBKERNDIR}/obj
+.else
+LIBKERNOBJDIR= ${LIBKERNDIR}
+.endif
+
+LIBKERN= ${LIBKERNOBJDIR}/libkern.a
+
+### Figure out what to use for libsa
+LIBSADIR= ${.CURDIR}/../libsa
-srt0.o: srt0.S
- ${CC} ${CFLAGS} -D_LOCORE -c ${.IMPSRC}
+.if exists(${LIBSADIR}/obj.${MACHINE})
+LIBSAOBJDIR= ${LIBSADIR}/obj.${MACHINE}
+.elif exists(${LIBSADIR}/obj)
+LIBSAOBJDIR= ${LIBSADIR}/obj
+.else
+LIBSAOBJDIR= ${LIBSADIR}
+.endif
+
+LIBSA= ${LIBSAOBJDIR}/libsa.a
-cleandir:
- -@rm -rf lib machine
+### Figure out what to use for libz
+LIBZDIR= ${.CURDIR}/../libz
+.if exists(${LIBZDIR}/obj.${MACHINE})
+LIBZOBJDIR= ${LIBZDIR}/obj.${MACHINE}
+.elif exists(${LIBZDIR}/obj)
+LIBZOBJDIR= ${LIBZDIR}/obj
+.else
+LIBZOBJDIR= ${LIBZDIR}
.endif
+
+LIBZ= ${LIBZOBJDIR}/libz.a