Makefile revision 1.21
11.21Sjustin# $NetBSD: Makefile,v 1.21 2014/07/22 22:41:58 justin Exp $ 21.1Spooka# 31.1Spooka 41.14Spooka.include <bsd.own.mk> 51.14Spooka 61.6SmattWARNS?= 5 71.1Spooka 81.2Spooka# rumpuser.h is in sys/rump for inclusion by kernel components 91.2Spooka.PATH: ${.CURDIR}/../../sys/rump/include/rump 101.2Spooka 111.20SjustinRUMPUSER_THREADS?=pthread 121.20Sjustin 131.2SpookaLIB= rumpuser 141.20Sjustin 151.20Sjustin.if ${RUMPUSER_THREADS} == "pthread" 161.4SpookaLIBDPLIBS+= pthread ${.CURDIR}/../libpthread 171.20Sjustin.endif 181.13Spooka.for lib in ${RUMPUSER_EXTERNAL_DPLIBS} 191.13SpookaLIBDO.${lib}= _external 201.13SpookaLIBDPLIBS+= ${lib} lib 211.13Spooka.endfor 221.7SpookaCPPFLAGS+= -DLIBRUMPUSER 231.4Spooka#CPPFLAGS+= -D_DIAGNOSTIC 241.2Spooka 251.20Sjustin 261.20Sjustin.if ${RUMPUSER_THREADS} == "pthread" 271.20SjustinSRCS= rumpuser.c rumpuser_pth.c rumpuser_bio.c 281.20SjustinSRCS+= rumpuser_sp.c 291.20Sjustin.elif ${RUMPUSER_THREADS} == "none" 301.20SjustinSRCS= rumpuser.c rumpuser_pth_dummy.c rumpuser_bio.c 311.20SjustinSRCS+= rumpuser_sp.c 321.20Sjustin.elif ${RUMPUSER_THREADS} == "fiber" 331.20Sjustin.if defined(RUMP_CURLWP) 341.20Sjustin.if ${RUMP_CURLWP} != "hypercall" 351.20Sjustin.error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP} 361.20Sjustin.endif 371.20Sjustin.endif 381.20SjustinSRCS= rumpfiber.c rumpfiber_bio.c 391.20SjustinSRCS+= rumpfiber_sp.c 401.20Sjustin.else 411.20Sjustin.error Unsupported rumpuser threading type: ${RUMPUSER_THREADS} 421.20Sjustin.endif 431.20Sjustin 441.21SjustinSRCS+= rumpuser_component.c rumpuser_random.c 451.19SjustinSRCS+= rumpuser_file.c rumpuser_mem.c 461.16Spooka 471.16SpookaSRCS+= rumpuser_errtrans.c rumpuser_sigtrans.c 481.12Spooka 491.12Spooka# optional 501.20SjustinSRCS+= rumpuser_dl.c rumpuser_daemonize.c 511.2Spooka 521.2SpookaINCSDIR= /usr/include/rump 531.15SpookaINCS= rumpuser.h rumpuser_component.h rumpuser_port.h 541.2Spooka 551.1SpookaMAN= rumpuser.3 561.1Spooka 571.2SpookaCPPFLAGS+= -D_REENTRANT 581.2Spooka 591.2Spooka.include <bsd.lib.mk> 60