Makefile.rumpkern revision 1.20
1# $NetBSD: Makefile.rumpkern,v 1.20 2008/11/19 14:10:49 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}/../miscfs/genfs ${RUMPTOP}/../miscfs/syncfs 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# src/lib/libkern 49SRCS+= __assert.c scanc.c skpc.c 50 51# uncomment these lines if you want to use the real kmem code 52#CPPFLAGS+= -DRUMP_USE_REAL_KMEM 53#SRCS+= subr_kmem.c subr_vmem.c 54 55.if ${MACHINE_ARCH} == "vax" 56.PATH: ${RUMPTOP}/../lib/libkern/arch/vax 57SRCS+= blkset.S 58.endif 59 60# no shlib_version because this is automatically in sync with lib/librump 61SHLIB_MAJOR= 0 62SHLIB_MINOR= 0 63 64CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern/opt -DMAXUSERS=32 65CPPFLAGS+= -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs 66CFLAGS+= -Wno-pointer-sign 67 68.include <bsd.lib.mk> 69.include <bsd.klinks.mk> 70