Home | History | Annotate | Line # | Download | only in libisc
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2019/02/20 03:50:06 christos Exp $
      2 
      3 LIB=isc
      4 #USE_SHLIBDIR=   yes
      5 
      6 .include <bsd.own.mk>
      7 
      8 .include "${.CURDIR}/../Makefile.inc"
      9 
     10 DIST=	${IDIST}/lib/isc
     11 .include "${DIST}/api"
     12 
     13 .if ${NAMED_USE_PTHREADS} == "yes"
     14 .PATH.c:	${DIST}/unix ${DIST}/nls ${DIST}/pthreads ${DIST}
     15 .else
     16 .PATH.c:	${DIST}/unix ${DIST}/nls ${DIST}/nothreads ${DIST}
     17 .endif
     18 
     19 UNIX_SRCS=	app.c backtrace.c dir.c entropy.c errno2result.c file.c \
     20 		fsaccess.c interfaceiter.c net.c os.c resource.c \
     21 		socket.c stdio.c stdtime.c syslog.c time.c \
     22 		backtrace-emptytbl.c meminfo.c
     23 NLS_SRCS=	msgcat.c
     24 PTHREAD_SRCS=	condition.c mutex.c thread.c
     25 
     26 CRYPTO_SRCS=	aes.c
     27 
     28 SRCS=		assertions.c base32.c base64.c bind9.c buffer.c \
     29 		bufferlist.c commandline.c crc64.c counter.c error.c event.c \
     30 		hash.c heap.c hex.c hmac.c httpd.c ht.c \
     31 		iterated_hash.c lex.c lfsr.c lib.c log.c md.c mem.c \
     32 		mutexblock.c netaddr.c netscope.c nonce.c parseint.c \
     33 		pool.c portset.c quota.c radix.c random.c ratelimiter.c \
     34 		regex.c \
     35 		region.c result.c rwlock.c serial.c \
     36 		sockaddr.c stats.c string.c symtab.c task.c \
     37 		taskpool.c timer.c tm.c version.c \
     38 		${UNIX_SRCS} ${NLS_SRCS} ${PTHREAD_SRCS} ${CRYPTO_SRCS}
     39 
     40 
     41 
     42 .if (${USE_INET6} == "no")
     43 CPPFLAGS.net.c=	-Wno-error
     44 SRCS+=		ipv6.c
     45 .endif
     46 
     47 # On certain flavors of arm we don't have native atomics only ones
     48 # libcall ones which are inefficient. But this should not be an
     49 # error anyway.
     50 COPTS.mem.c+= ${${ACTIVE_CC} == "clang":? -Wno-error-atomic-alignment :}
     51 
     52 
     53 
     54 LDADD+=-lz
     55 DPADD+=${LIBZ}
     56 
     57 .include <bsd.lib.mk>
     58