Makefile.inc revision 1.3
1#	$NetBSD: Makefile.inc,v 1.3 1995/09/30 21:43:36 pk Exp $
2
3.if !defined(__stand_makefile_inc)
4__stand_makefile_inc=1
5
6S= ${.CURDIR}/../../../${R}
7
8.if !make(libdep)
9.BEGIN:
10	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
11.endif
12
13RELOC_SUN4=	0x240000
14RELOC_SUN4C=	0x340000
15RELOC_SUN4M=	0x440000
16
17# Note: a `RELOC' value of 0x340000 seems to work on most machines
18RELOC?=		${RELOC_SUN4C}
19
20INCLUDES+=	-I. -I${.CURDIR}/.. -I${S}/arch -I${S} -I${S}/lib/libsa
21DEFS+=		-DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
22CFLAGS+=	-O2 ${INCLUDES} ${DEFS}
23
24srt0.o: srt0.S
25	${CC} ${CFLAGS} -DLOCORE -c ${.IMPSRC}
26
27cleandir:
28	rm -rf lib machine
29
30.endif
31