Home | History | Annotate | Line # | Download | only in rumpkern
Makefile.rumpkern revision 1.26
      1 #	$NetBSD: Makefile.rumpkern,v 1.26 2008/12/31 13:08:57 pooka Exp $
      2 #
      3 
      4 .include "${RUMPTOP}/Makefile.rump"
      5 
      6 LIB=		rump
      7 LDFLAGS+=	-Wl,--wrap=malloc
      8 
      9 .PATH:	${RUMPTOP}/librump/rumpkern				\
     10 	${RUMPTOP}/../kern ${RUMPTOP}/../lib/libkern		\
     11 	${RUMPTOP}/../conf ${RUMPTOP}/../dev			\
     12 	${RUMPTOP}/../../common/lib/libutil			\
     13 	${RUMPTOP}/../../common/lib/libc/gen
     14 
     15 #
     16 # Source modules, first the ones specifically implemented for librump.
     17 # 
     18 SRCS=	rump.c emul.c intr.c locks.c ltsleep.c percpu.c pool.c sleepq.c vm.c
     19 
     20 # stubs
     21 #
     22 SRCS+=	misc_stub.c pmap_stub.c
     23 
     24 # autogenerated
     25 #
     26 SRCS+=	rump_syscalls.c
     27 
     28 #
     29 # Rest are from the std kernel sources.
     30 #
     31 # sys/kern
     32 SRCS+=	kern_auth.c kern_descrip.c kern_malloc_stdtype.c kern_module.c	\
     33 	kern_rate.c kern_stub.c kern_sysctl.c kern_timeout.c		\
     34 	kern_uidinfo.c param.c sys_descrip.c sys_generic.c
     35 
     36 # sys/kern subr (misc)
     37 SRCS+=	subr_devsw.c subr_callback.c subr_hash.c subr_iostat.c		\
     38 	subr_kobj.c subr_once.c subr_prf2.c subr_specificdata.c		\
     39 	subr_time.c subr_workqueue.c
     40 
     41 # the funny bit.  this doesn't really belong here, but helps with the
     42 # needs of kern_descrip.c.  And since it's a fully dynamic interface,
     43 # it doesn't pull in other gunk.
     44 SRCS+=	vnode_if.c
     45 
     46 # sys/dev
     47 SRCS+=	clock_subr.c
     48 
     49 # sys/lib/libkern
     50 SRCS+=	__assert.c scanc.c skpc.c
     51 
     52 # src/common
     53 SRCS+=	snprintb.c rb.c
     54 
     55 # uncomment these lines if you want to use the real kmem code
     56 #CPPFLAGS+=	-DRUMP_USE_REAL_KMEM
     57 #SRCS+=		subr_kmem.c subr_vmem.c
     58 
     59 .if ${MACHINE_ARCH} == "vax"
     60 .PATH:	${RUMPTOP}/../lib/libkern/arch/vax
     61 SRCS+=	blkset.S
     62 .endif
     63 
     64 # no shlib_version because this is automatically in sync with lib/librump
     65 SHLIB_MAJOR=    0
     66 SHLIB_MINOR=    0
     67 
     68 CPPFLAGS+=	-I${RUMPTOP}/librump/rumpkern
     69 CPPFLAGS+=	-I${RUMPTOP}/librump/rumpkern/opt -DMAXUSERS=32
     70 CPPFLAGS+=	-I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs
     71 CFLAGS+=	-Wno-pointer-sign
     72 
     73 ARCHDIR=	${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH}
     74 .if exists(${ARCHDIR})
     75 .include "${ARCHDIR}/Makefile.inc"
     76 .PATH:	${ARCHDIR}
     77 .endif
     78 
     79 .include <bsd.lib.mk>
     80 .include <bsd.klinks.mk>
     81