1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.PATH: ${SRCTOP}/contrib/libevent 6 7LIB= ntpevent 8INTERNALLIB= 9 10SRCS= buffer.c bufferevent.c bufferevent_filter.c \ 11 bufferevent_pair.c epoll.c evdns.c event.c event_tagging.c \ 12 evmap.c evport.c evrpc.c evthread.c evthread_pthread.c evutil.c \ 13 evutil_rand.c evutil_time.c http.c kqueue.c listener.c log.c poll.c \ 14 select.c signal.c strlcpy.c 15 16.if ${MK_OPENSSL} != "no" 17SRCS+= bufferevent_openssl.c 18.endif 19 20.if ${MACHINE_ARCH} == "i386" 21NTP_ATOMIC=x86_32 22.elif ${MACHINE_ARCH} == "amd64" 23NTP_ATOMIC=x86_64 24.elif ${MACHINE_ARCH} == "powerpc64" 25NTP_ATOMIC=powerpc 26.else 27NTP_ATOMIC=noatomic 28.endif 29 30CFLAGS+= -I${SRCTOP}/contrib/ntp/include \ 31 -I${SRCTOP}/contrib/libevent/include \ 32 -I${.CURDIR}/ 33 34CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H 35 36.include <bsd.lib.mk> 37