Home | History | Annotate | Line # | Download | only in libisc
Makefile revision 1.12
      1  1.12  christos #	$NetBSD: Makefile,v 1.12 2020/05/30 20:47:59 christos Exp $
      2   1.1  christos 
      3   1.1  christos LIB=isc
      4   1.1  christos #USE_SHLIBDIR=   yes
      5   1.1  christos 
      6   1.1  christos .include <bsd.own.mk>
      7   1.1  christos 
      8  1.12  christos LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv
      9  1.12  christos LIBUVOBJDIR!=   cd ${LIBUVDIR}/lib && ${PRINTOBJDIR}
     10  1.12  christos CPPFLAGS+=-I${LIBUVDIR}/dist/include
     11  1.12  christos 
     12   1.1  christos .include "${.CURDIR}/../Makefile.inc"
     13   1.1  christos 
     14   1.1  christos DIST=	${IDIST}/lib/isc
     15   1.1  christos .include "${DIST}/api"
     16   1.1  christos 
     17  1.11  christos DIST_ISC= ${DIST} ${DIST}/netmgr
     18  1.11  christos 
     19   1.1  christos .if ${NAMED_USE_PTHREADS} == "yes"
     20  1.11  christos .PATH.c:	${DIST}/unix ${DIST}/nls ${DIST}/pthreads ${DIST_ISC}
     21   1.1  christos .else
     22  1.11  christos .PATH.c:	${DIST}/unix ${DIST}/nls ${DIST}/nothreads ${DIST_ISC}
     23   1.1  christos .endif
     24   1.1  christos 
     25  1.11  christos UNIX_SRCS=	backtrace.c dir.c entropy.c errno.c errno2result.c \
     26   1.9  christos 		file.c fsaccess.c interfaceiter.c net.c os.c resource.c \
     27   1.3  christos 		socket.c stdio.c stdtime.c syslog.c time.c \
     28   1.1  christos 		backtrace-emptytbl.c meminfo.c
     29  1.11  christos 
     30   1.1  christos PTHREAD_SRCS=	condition.c mutex.c thread.c
     31   1.1  christos 
     32  1.11  christos NETMGR_SRCS=    tcp.c udp.c netmgr.c tcpdns.c uv-compat.c uverr2result.c 
     33  1.11  christos 
     34   1.1  christos CRYPTO_SRCS=	aes.c
     35   1.1  christos 
     36  1.11  christos SRCS=		app.c assertions.c astack.c base32.c base64.c bind9.c buffer.c \
     37   1.1  christos 		bufferlist.c commandline.c crc64.c counter.c error.c event.c \
     38  1.11  christos 		hash.c heap.c hex.c hmac.c hp.c httpd.c ht.c \
     39   1.3  christos 		iterated_hash.c lex.c lfsr.c lib.c log.c md.c mem.c \
     40   1.3  christos 		mutexblock.c netaddr.c netscope.c nonce.c parseint.c \
     41  1.11  christos 		pool.c portset.c queue.c quota.c radix.c random.c \
     42  1.11  christos 		ratelimiter.c regex.c \
     43  1.11  christos 		region.c result.c rwlock.c safe.c serial.c siphash.c \
     44   1.3  christos 		sockaddr.c stats.c string.c symtab.c task.c \
     45   1.1  christos 		taskpool.c timer.c tm.c version.c \
     46  1.11  christos 		${UNIX_SRCS} ${PTHREAD_SRCS} ${CRYPTO_SRCS} ${NETMGR_SRCS}
     47  1.11  christos 
     48   1.1  christos 
     49   1.1  christos .if (${USE_INET6} == "no")
     50   1.1  christos CPPFLAGS.net.c=	-Wno-error
     51   1.1  christos SRCS+=		ipv6.c
     52   1.1  christos .endif
     53   1.1  christos 
     54  1.12  christos LDFLAGS+=-Wl,--version-script=${.CURDIR}/isc.map
     55  1.12  christos LDADD+=-Wl,-Bstatic
     56  1.12  christos 
     57  1.12  christos LDADD+=-L${LIBUVOBJDIR} -luv_pic
     58  1.12  christos DPADD+=${LIBUVOBJDIR}/libuv_pic.a
     59  1.12  christos 
     60  1.12  christos LDADD+=-Wl,-Bdynamic
     61  1.12  christos 
     62   1.2  christos LDADD+=-lz
     63   1.2  christos DPADD+=${LIBZ}
     64   1.2  christos 
     65   1.1  christos .include <bsd.lib.mk>
     66