1996-02-02 01:28:24 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 1996/02/01 22:33:01 mycroft Exp $
|
1995-09-17 03:20:22 +04:00
|
|
|
|
|
|
|
.if !defined(__stand_makefile_inc)
|
|
|
|
__stand_makefile_inc=1
|
|
|
|
|
1995-10-01 00:43:35 +03:00
|
|
|
S= ${.CURDIR}/../../../${R}
|
|
|
|
|
1995-10-10 02:25:54 +03:00
|
|
|
.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir)
|
1995-10-01 00:43:35 +03:00
|
|
|
.BEGIN:
|
|
|
|
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
|
|
|
|
.endif
|
1995-09-17 03:20:22 +04:00
|
|
|
|
1995-09-18 23:52:15 +04:00
|
|
|
RELOC_SUN4= 0x240000
|
|
|
|
RELOC_SUN4C= 0x340000
|
|
|
|
RELOC_SUN4M= 0x440000
|
1995-09-17 03:20:22 +04:00
|
|
|
|
|
|
|
# Note: a `RELOC' value of 0x340000 seems to work on most machines
|
|
|
|
RELOC?= ${RELOC_SUN4C}
|
|
|
|
|
1995-10-01 00:43:35 +03:00
|
|
|
INCLUDES+= -I. -I${.CURDIR}/.. -I${S}/arch -I${S} -I${S}/lib/libsa
|
1995-09-17 03:20:22 +04:00
|
|
|
DEFS+= -DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
|
|
|
|
CFLAGS+= -O2 ${INCLUDES} ${DEFS}
|
|
|
|
|
|
|
|
srt0.o: srt0.S
|
1996-02-02 01:28:24 +03:00
|
|
|
${CC} ${CFLAGS} -D_LOCORE -c ${.IMPSRC}
|
1995-09-17 03:20:22 +04:00
|
|
|
|
1995-10-01 00:43:35 +03:00
|
|
|
cleandir:
|
|
|
|
rm -rf lib machine
|
|
|
|
|
1995-09-17 03:20:22 +04:00
|
|
|
.endif
|