[BACK]Return to Makefile.xen CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / xen / conf

File: [cvs.NetBSD.org] / src / sys / arch / xen / conf / Makefile.xen (download)

Revision 1.13.4.1, Wed Apr 19 02:34:03 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.13: +3 -20 lines

sync with head - hopefully this will work

#	$NetBSD: Makefile.xen,v 1.13.4.1 2006/04/19 02:34:03 elad Exp $
#	NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp 

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/xen/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/xen/conf/Makefile.xen
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

.include "$S/arch/xen/conf/Makefile.arch.inc"
MACHINE_ARCH?=	i386
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
XEN=		$S/arch/xen
I386=		$S/arch/i386
GENASSYM_CONF=	${XEN}/${XEN_BUILD}/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-D${XEN_BUILD}
AFLAGS+=	-x assembler-with-cpp -traditional-cpp ${DBG}
EXTRA_INCLUDES=	-I${.CURDIR}/xen-ma

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o spl.o vector.o
MD_CFILES=
MD_SFILES=	${XEN}/${XEN_BUILD}/locore.S \
		${XEN}/${XEN_BUILD}/spl.S \
		${XEN}/${XEN_BUILD}/vector.S

.if ${MACHINE_ARCH} == i386
MD_OBJS+=	copy.o
MD_SFILES+=	${I386}/i386/copy.S

copy.o: ${I386}/i386/copy.S assym.h
	${NORMAL_S}
.endif

locore.o: ${XEN}/${XEN_BUILD}/locore.S assym.h
	${NORMAL_S}

spl.o: ${XEN}/${XEN_BUILD}/spl.S assym.h
	${NORMAL_S}

vector.o: ${XEN}/${XEN_BUILD}/vector.S assym.h
	${NORMAL_S}

.ifndef noBEGIN
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
.for A in ${XEN_MACHINE_ARCHS}
	rm -f ${A}
	ln -s $S/arch/${A}/include ${A}
.endfor
	-rm -rf xen-ma
	mkdir xen-ma
	ln -s ../${XEN_BUILD} xen-ma/machine
.endif
.endif

##
## (5) link settings
##
TEXTADDR?=	c0100000
LINKFLAGS_NORMAL=	-X
.if (${OBJECT_FMT} == "ELF")
KERN_LDSCRIPT?=	kern.ldscript
LINKFORMAT=	-T $S/arch/${XEN_BUILD}/conf/${KERN_LDSCRIPT}
.else
LINKFORMAT=	-z
.endif

##
## (6) port specific target dependencies
##

freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h
svr4_sigcode.o mach_sigcode.o: assym.h
apmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
mptramp.o: assym.h
clock.o: config_time.h

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

## Include rules for Atheros WLAN
.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND