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