Makefile.rumpkern revision 1.33
1#	$NetBSD: Makefile.rumpkern,v 1.33 2009/01/05 21:42:37 pooka Exp $
2#
3
4.include "${RUMPTOP}/Makefile.rump"
5
6LIB=		rump
7
8.PATH:	${RUMPTOP}/librump/rumpkern				\
9	${RUMPTOP}/../kern					\
10	${RUMPTOP}/../conf					\
11	${RUMPTOP}/../dev
12
13#
14# Source modules, first the ones specifically implemented for librump.
15# 
16SRCS=	rump.c emul.c intr.c locks.c ltsleep.c percpu.c pool.c sleepq.c vm.c
17
18# stubs
19#
20SRCS+=	misc_stub.c pmap_stub.c
21
22# autogenerated
23#
24SRCS+=	rump_syscalls.c
25
26#
27# Rest are from the std kernel sources.
28#
29# sys/kern
30SRCS+=	kern_auth.c kern_descrip.c kern_ksyms.c kern_malloc_stdtype.c	\
31	kern_module.c kern_rate.c kern_stub.c kern_sysctl.c		\
32	kern_timeout.c kern_uidinfo.c param.c sys_descrip.c		\
33	sys_generic.c
34
35# sys/kern subr (misc)
36SRCS+=	subr_devsw.c subr_callback.c subr_hash.c subr_iostat.c		\
37	subr_kobj.c subr_log.c subr_once.c subr_prf.c			\
38	subr_specificdata.c subr_time.c subr_workqueue.c
39
40# the funny bit.  this doesn't really belong here, but helps with the
41# needs of kern_descrip.c.  And since it's a fully dynamic interface,
42# it doesn't pull in other gunk.
43SRCS+=	vnode_if.c
44
45# sys/dev
46SRCS+=	clock_subr.c
47
48# uncomment these lines if you want to use the real kmem code
49#CPPFLAGS+=	-DRUMP_USE_REAL_KMEM
50#SRCS+=		subr_kmem.c subr_vmem.c
51
52.if ${MACHINE_ARCH} == "vax"
53.PATH:	${RUMPTOP}/../lib/libkern/arch/vax
54SRCS+=	blkset.S
55.endif
56
57# no shlib_version because this is automatically in sync with lib/librump
58SHLIB_MAJOR=    0
59SHLIB_MINOR=    0
60
61CPPFLAGS+=	-I${RUMPTOP}/librump/rumpkern
62CPPFLAGS+=	-I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs
63CFLAGS+=	-Wno-pointer-sign
64AFLAGS+=	-D_LOCORE -Wa,-fatal-warnings
65
66#
67# If archdir exists, it is required to provide:
68# 1) kobj_reloc() and kobj_machdep()
69# 2) ...?
70# 3) PROFIT!
71#
72
73#
74# XXX: THIS IS UGLY, NEEDS BETTER FIX FOR COMPAT LIB
75#
76.ifdef(LD32DIR)
77ARCHDIR=	${RUMPTOP}/librump/rumpkern/arch/${LD32DIR}
78LIBKERN_ARCH=	${LD32DIR}
79.else
80ARCHDIR=	${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH}
81.endif
82.if exists(${ARCHDIR})
83.include "${ARCHDIR}/Makefile.inc"
84.PATH:	${ARCHDIR}
85.else
86SRCS+=	kobj_stubs.c
87.endif
88
89# include libkern source files
90KERNDIR=${RUMPTOP}/../lib/libkern
91.include "${RUMPTOP}/../lib/libkern/Makefile.libkern"
92
93.include <bsd.lib.mk>
94.include <bsd.klinks.mk>
95