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