freebsd-skq/usr.sbin/ntp/libntpevent/Makefile
Enji Cooper af6a5351a1 Simplify/improve idioms in usr.sbin/ntp Makefiles
- Use SRCTOP-relative paths to other directories instead of
  .CURDIR-relative ones. This simplifies pathing in make/displayed output.
- Also, use :H where possible/sensical to manipulate .CURDIR-relative
  paths
- Remove superfluous bsd.own.mk .includes which are already handled via
  src.opts.mk .includes

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
2017-03-01 04:54:06 +00:00

35 lines
852 B
Makefile

# $FreeBSD$
.PATH: ${SRCTOP}/contrib/ntp/sntp/libevent
LIB= ntpevent
INTERNALLIB=
SRCS= buffer.c bufferevent.c bufferevent_filter.c bufferevent_openssl.c \
bufferevent_pair.c epoll.c evdns.c event.c event_tagging.c \
evmap.c evport.c evrpc.c evthread.c evthread_pthread.c evutil.c \
evutil_rand.c evutil_time.c http.c kqueue.c listener.c log.c poll.c \
select.c signal.c strlcpy.c
.if ${MACHINE_ARCH} == "i386"
NTP_ATOMIC=x86_32
.elif ${MACHINE_ARCH} == "amd64"
NTP_ATOMIC=x86_64
.elif ${MACHINE_ARCH} == "ia64"
NTP_ATOMIC=ia64
.elif ${MACHINE_ARCH} == "powerpc64"
NTP_ATOMIC=powerpc
.elif ${MACHINE_ARCH} == "sparc64"
NTP_ATOMIC=sparc64
.else
NTP_ATOMIC=noatomic
.endif
CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
-I${SRCTOP}/contrib/ntp/sntp/libevent/include \
-I${.CURDIR}/
CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
.include <bsd.lib.mk>