12b15cb3dSCy Schubert# $FreeBSD$ 22b15cb3dSCy Schubert 3*ab95087aSAdrian Chadd.include <src.opts.mk> 4*ab95087aSAdrian Chadd 5539a27e1SEd Maste.PATH: ${SRCTOP}/contrib/libevent 62b15cb3dSCy Schubert 72b15cb3dSCy SchubertLIB= ntpevent 82b15cb3dSCy SchubertINTERNALLIB= 92b15cb3dSCy Schubert 10*ab95087aSAdrian ChaddSRCS= buffer.c bufferevent.c bufferevent_filter.c \ 112b15cb3dSCy Schubert bufferevent_pair.c epoll.c evdns.c event.c event_tagging.c \ 122b15cb3dSCy Schubert evmap.c evport.c evrpc.c evthread.c evthread_pthread.c evutil.c \ 132b15cb3dSCy Schubert evutil_rand.c evutil_time.c http.c kqueue.c listener.c log.c poll.c \ 142b15cb3dSCy Schubert select.c signal.c strlcpy.c 152b15cb3dSCy Schubert 16*ab95087aSAdrian Chadd.if ${MK_OPENSSL} != "no" 17*ab95087aSAdrian ChaddSRCS+= bufferevent_openssl.c 18*ab95087aSAdrian Chadd.endif 19*ab95087aSAdrian Chadd 202b15cb3dSCy Schubert.if ${MACHINE_ARCH} == "i386" 212b15cb3dSCy SchubertNTP_ATOMIC=x86_32 222b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "amd64" 232b15cb3dSCy SchubertNTP_ATOMIC=x86_64 242b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "ia64" 252b15cb3dSCy SchubertNTP_ATOMIC=ia64 262b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "powerpc64" 272b15cb3dSCy SchubertNTP_ATOMIC=powerpc 282b15cb3dSCy Schubert.elif ${MACHINE_ARCH} == "sparc64" 292b15cb3dSCy SchubertNTP_ATOMIC=sparc64 302b15cb3dSCy Schubert.else 312b15cb3dSCy SchubertNTP_ATOMIC=noatomic 322b15cb3dSCy Schubert.endif 332b15cb3dSCy Schubert 34af6a5351SEnji CooperCFLAGS+= -I${SRCTOP}/contrib/ntp/include \ 35539a27e1SEd Maste -I${SRCTOP}/contrib/libevent/include \ 362b15cb3dSCy Schubert -I${.CURDIR}/ 372b15cb3dSCy Schubert 382b15cb3dSCy SchubertCFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H 392b15cb3dSCy Schubert 402b15cb3dSCy Schubert.include <bsd.lib.mk> 41