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