1ab95087aSAdrian Chadd.include <src.opts.mk> 2ab95087aSAdrian Chadd 3539a27e1SEd Maste.PATH: ${SRCTOP}/contrib/libevent 42b15cb3dSCy Schubert 5*2f9966ffSLexi WinterPACKAGE= ntp 62b15cb3dSCy SchubertLIB= ntpevent 72b15cb3dSCy SchubertINTERNALLIB= 82b15cb3dSCy Schubert 9ab95087aSAdrian ChaddSRCS= buffer.c bufferevent.c bufferevent_filter.c \ 102b15cb3dSCy Schubert bufferevent_pair.c epoll.c evdns.c event.c event_tagging.c \ 112b15cb3dSCy Schubert evmap.c evport.c evrpc.c evthread.c evthread_pthread.c evutil.c \ 122b15cb3dSCy Schubert evutil_rand.c evutil_time.c http.c kqueue.c listener.c log.c poll.c \ 132b15cb3dSCy Schubert select.c signal.c strlcpy.c 142b15cb3dSCy Schubert 15ab95087aSAdrian Chadd.if ${MK_OPENSSL} != "no" 16ab95087aSAdrian ChaddSRCS+= bufferevent_openssl.c 17ab95087aSAdrian Chadd.endif 18ab95087aSAdrian Chadd 192b15cb3dSCy Schubert.if ${MACHINE_ARCH} == "i386" 202b15cb3dSCy SchubertNTP_ATOMIC=x86_32 212b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "amd64" 222b15cb3dSCy SchubertNTP_ATOMIC=x86_64 232b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "powerpc64" 242b15cb3dSCy SchubertNTP_ATOMIC=powerpc 252b15cb3dSCy Schubert.else 262b15cb3dSCy SchubertNTP_ATOMIC=noatomic 272b15cb3dSCy Schubert.endif 282b15cb3dSCy Schubert 29af6a5351SEnji CooperCFLAGS+= -I${SRCTOP}/contrib/ntp/include \ 30539a27e1SEd Maste -I${SRCTOP}/contrib/libevent/include \ 312b15cb3dSCy Schubert -I${.CURDIR}/ 322b15cb3dSCy Schubert 332b15cb3dSCy SchubertCFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H 342b15cb3dSCy Schubert 352b15cb3dSCy Schubert.include <bsd.lib.mk> 36