1 # $NetBSD: Makefile.rumpkern,v 1.16.2.3 2008/12/13 01:15:34 haad 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}/../miscfs/genfs ${RUMPTOP}/../miscfs/syncfs 13 14 # 15 # Source modules, first the ones specifically implemented for librump. 16 # 17 SRCS= rump.c emul.c intr.c locks.c ltsleep.c percpu.c pool.c sleepq.c vm.c 18 19 # stubs 20 # 21 SRCS+= misc_stub.c pmap_stub.c 22 23 # autogenerated 24 # 25 SRCS+= rump_syscalls.c 26 27 # 28 # Rest are from the std kernel sources. 29 # 30 # sys/kern 31 SRCS+= 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) 36 SRCS+= 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. 43 SRCS+= vnode_if.c 44 45 # sys/dev 46 SRCS+= clock_subr.c 47 48 # src/lib/libkern 49 SRCS+= __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 57 SRCS+= blkset.S 58 .endif 59 60 # no shlib_version because this is automatically in sync with lib/librump 61 SHLIB_MAJOR= 0 62 SHLIB_MINOR= 0 63 64 CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern/opt -DMAXUSERS=32 65 CPPFLAGS+= -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs 66 CFLAGS+= -Wno-pointer-sign 67 68 .include <bsd.lib.mk> 69 .include <bsd.klinks.mk> 70