Makefile.rumpkern revision 1.22
1# $NetBSD: Makefile.rumpkern,v 1.22 2008/12/18 11:16:36 pooka Exp $ 2# 3 4.include "${RUMPTOP}/Makefile.rump" 5 6LIB= rump 7LDFLAGS+= -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 14# 15# Source modules, first the ones specifically implemented for librump. 16# 17SRCS= rump.c emul.c intr.c locks.c ltsleep.c percpu.c pool.c sleepq.c vm.c 18 19# stubs 20# 21SRCS+= misc_stub.c pmap_stub.c 22 23# autogenerated 24# 25SRCS+= rump_syscalls.c 26 27# 28# Rest are from the std kernel sources. 29# 30# sys/kern 31SRCS+= kern_auth.c kern_descrip.c kern_malloc_stdtype.c kern_module.c \ 32 kern_rate.c kern_stub.c kern_sysctl.c kern_timeout.c \ 33 kern_uidinfo.c param.c sys_descrip.c sys_generic.c 34 35# sys/kern subr (misc) 36SRCS+= subr_callback.c subr_hash.c subr_iostat.c \ 37 subr_kobj.c subr_once.c subr_prf2.c subr_specificdata.c \ 38 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# sys/lib/libkern 49SRCS+= __assert.c scanc.c skpc.c 50 51# src/common 52SRCS+= snprintb.c 53 54# uncomment these lines if you want to use the real kmem code 55#CPPFLAGS+= -DRUMP_USE_REAL_KMEM 56#SRCS+= subr_kmem.c subr_vmem.c 57 58.if ${MACHINE_ARCH} == "vax" 59.PATH: ${RUMPTOP}/../lib/libkern/arch/vax 60SRCS+= blkset.S 61.endif 62 63# no shlib_version because this is automatically in sync with lib/librump 64SHLIB_MAJOR= 0 65SHLIB_MINOR= 0 66 67CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern/opt -DMAXUSERS=32 68CPPFLAGS+= -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs 69CFLAGS+= -Wno-pointer-sign 70 71.include <bsd.lib.mk> 72.include <bsd.klinks.mk> 73