Updated for ELF support.
This commit is contained in:
parent
79f31f9463
commit
fdc8ed9a06
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.sun2,v 1.3 2001/05/29 02:20:26 mrg Exp $
|
||||
# $NetBSD: Makefile.sun2,v 1.4 2001/06/27 17:03:10 fredette Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,13 +46,13 @@ S!= cd ../../../..; pwd
|
|||
.endif
|
||||
SUN2= $S/arch/sun2
|
||||
|
||||
TEXTADDR=0000C000
|
||||
TEXTADDR=00006000
|
||||
|
||||
# Override CPP defaults entirely, so cross-compilation works.
|
||||
# Keep -nostdinc before all -I flags, similar for -undef ...
|
||||
HAVE_EGCS!= ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
|
||||
INCLUDES= -nostdinc -I. -I$S/arch -I$S
|
||||
XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000
|
||||
XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000 -D__ELF__
|
||||
DEFINES= -D_KERNEL -D_KERNEL_OPT -Dsun2
|
||||
CPPFLAGS= ${INCLUDES} ${XDEFS} ${DEFINES} ${IDENT} ${PARAM}
|
||||
# Make it easy to override this on the command line...
|
||||
|
@ -74,6 +74,8 @@ STRIPFLAGS= -g
|
|||
|
||||
### find out what to use for libkern
|
||||
KERN_AS= obj
|
||||
# XXX lib/libkern/arch/m68k/Makefile.inc needs to know that
|
||||
# XXX our MACHINE_ARCH is m68000, and not m68k. --fredette
|
||||
KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH}
|
||||
.include "$S/lib/libkern/Makefile.inc"
|
||||
.ifndef PROF
|
||||
|
|
Loading…
Reference in New Issue