Cross Reference: Makefile
xref: /src/lib/librumpuser/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/lib/librumpuser/
Makefile revision 1.25
1#	$NetBSD: Makefile,v 1.25 2017/05/10 01:11:52 sevan Exp $
2#
3
4.include <bsd.own.mk>
5
6WARNS?=		5
7
8# rumpuser.h is in sys/rump for inclusion by kernel components
9.PATH:		${.CURDIR}/../../sys/rump/include/rump
10
11RUMPUSER_THREADS?=pthread
12
13LIB=		rumpuser
14
15.if   ${RUMPUSER_THREADS} == "pthread"
16LIBDPLIBS+=	pthread ${.CURDIR}/../libpthread
17.endif
18.for lib in ${RUMPUSER_EXTERNAL_DPLIBS}
19LIBDO.${lib}=	_external
20LIBDPLIBS+=	${lib} lib
21.endfor
22CPPFLAGS+=	-DLIBRUMPUSER
23#CPPFLAGS+=	-D_DIAGNOSTIC
24
25
26.if   ${RUMPUSER_THREADS} == "pthread"
27SRCS=		rumpuser.c rumpuser_pth.c rumpuser_bio.c
28SRCS+=		rumpuser_sp.c
29.elif ${RUMPUSER_THREADS} == "none"
30SRCS=		rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c
31SRCS+=		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
38SRCS=		rumpfiber.c rumpfiber_bio.c
39SRCS+=		rumpfiber_sp.c
40.else
41.error Unsupported rumpuser threading type: ${RUMPUSER_THREADS}
42.endif
43
44SRCS+=		rumpuser_component.c rumpuser_random.c
45SRCS+=		rumpuser_file.c rumpuser_mem.c
46
47SRCS+=		rumpuser_errtrans.c rumpuser_sigtrans.c
48
49# optional
50SRCS+=		rumpuser_dl.c rumpuser_daemonize.c
51
52INCSDIR=	/usr/include/rump
53INCS=		rumpuser_component.h rumpuser_port.h
54
55CPPFLAGS+=	-D_REENTRANT
56
57.include <bsd.lib.mk>
58

Indexes created Wed Dec 17 08:09:36 GMT 2025