Home | History | Annotate | Line # | Download | only in librumpuser
Makefile revision 1.22
      1 #	$NetBSD: Makefile,v 1.22 2014/10/28 23:48:03 pooka Exp $
      2 #
      3 
      4 .include <bsd.own.mk>
      5 
      6 WARNS?=		5
      7 
      8 # rumpuser.h is in sys/rump for inclusion by kernel components
      9 .PATH:		${.CURDIR}/../../sys/rump/include/rump
     10 
     11 RUMPUSER_THREADS?=pthread
     12 
     13 LIB=		rumpuser
     14 
     15 .if   ${RUMPUSER_THREADS} == "pthread"
     16 LIBDPLIBS+=	pthread ${.CURDIR}/../libpthread
     17 .endif
     18 .for lib in ${RUMPUSER_EXTERNAL_DPLIBS}
     19 LIBDO.${lib}=	_external
     20 LIBDPLIBS+=	${lib} lib
     21 .endfor
     22 CPPFLAGS+=	-DLIBRUMPUSER
     23 #CPPFLAGS+=	-D_DIAGNOSTIC
     24 
     25 
     26 .if   ${RUMPUSER_THREADS} == "pthread"
     27 SRCS=		rumpuser.c rumpuser_pth.c rumpuser_bio.c
     28 SRCS+=		rumpuser_sp.c
     29 .elif ${RUMPUSER_THREADS} == "none"
     30 SRCS=		rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c
     31 SRCS+=		rumpuser_sp.c
     32 .elif ${RUMPUSER_THREADS} == "fiber"
     33 .if defined(RUMP_CURLWP)
     34 .if ${RUMP_CURLWP} != "hypercall"
     35 .error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP}
     36 .endif
     37 .endif
     38 SRCS=		rumpfiber.c rumpfiber_bio.c
     39 SRCS+=		rumpfiber_sp.c
     40 .else
     41 .error Unsupported rumpuser threading type: ${RUMPUSER_THREADS}
     42 .endif
     43 
     44 SRCS+=		rumpuser_component.c rumpuser_random.c
     45 SRCS+=		rumpuser_file.c rumpuser_mem.c
     46 
     47 SRCS+=		rumpuser_errtrans.c rumpuser_sigtrans.c
     48 
     49 # optional
     50 SRCS+=		rumpuser_dl.c rumpuser_daemonize.c
     51 
     52 INCSDIR=	/usr/include/rump
     53 INCS=		rumpuser_component.h rumpuser_port.h
     54 
     55 MAN=		rumpuser.3
     56 
     57 CPPFLAGS+=	-D_REENTRANT
     58 
     59 .include <bsd.lib.mk>
     60