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