1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../../contrib/ntp/libntp \ 4 ${.CURDIR}/../../../contrib/ntp/lib/isc \ 5 ${.CURDIR}/../../../contrib/ntp/lib/isc/nls \ 6 ${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads \ 7 ${.CURDIR}/../../../contrib/ntp/lib/isc/unix \ 8 9LIB= ntp 10INTERNALLIB= 11 12NTP_SRCS= systime.c a_md5encrypt.c adjtime.c atoint.c \ 13 atolfp.c atouint.c audio.c authkeys.c \ 14 authreadkeys.c authusekey.c bsd_strerror.c buftvtots.c \ 15 caljulian.c caltontp.c calyearstart.c clocktime.c \ 16 clocktypes.c decodenetnum.c dofptoa.c dolfptoa.c \ 17 emalloc.c findconfig.c getopt.c hextoint.c \ 18 hextolfp.c humandate.c icom.c iosignal.c \ 19 is_ip_address.c \ 20 lib_strbuf.c machines.c mktime.c modetoa.c \ 21 mstolfp.c msyslog.c netof.c ntp_calendar.c \ 22 ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c \ 23 ntp_lineedit.c ntp_random.c ntp_rfc2553.c ntp_worker.c \ 24 numtoa.c numtohost.c octtoint.c prettydate.c \ 25 recvbuff.c refidsmear.c \ 26 refnumtoa.c snprintf.c socket.c \ 27 socktoa.c socktohost.c ssl_init.c statestr.c \ 28 strdup.c strl_obsd.c syssignal.c timetoa.c \ 29 timevalops.c uglydate.c vint64ops.c work_fork.c \ 30 work_thread.c ymd2yd.c 31 32ISC_PTHREADS_SRCS= condition.c \ 33 thread.c \ 34 mutex.c 35 36ISC_UNIX_SRCS= dir.c \ 37 errno2result.c \ 38 file.c \ 39 interfaceiter.c \ 40 net.c \ 41 stdio.c \ 42 stdtime.c \ 43 strerror.c \ 44 time.c \ 45 tsmemcmp.c 46 47ISC_NLS_SRCS= msgcat.c 48 49ISC_SRCS= assertions.c \ 50 buffer.c \ 51 backtrace-emptytbl.c \ 52 backtrace.c \ 53 error.c \ 54 event.c \ 55 inet_ntop.c \ 56 inet_pton.c \ 57 lib.c \ 58 log.c \ 59 md5.c \ 60 netaddr.c \ 61 netscope.c \ 62 ondestroy.c \ 63 random.c \ 64 result.c \ 65 task.c \ 66 sha1.c \ 67 sockaddr.c \ 68 ${ISC_NLS_SRCS} \ 69 ${ISC_PTHREADS_SRCS} \ 70 ${ISC_UNIX_SRCS} 71 72SRCS= ${NTP_SRCS} ${ISC_SRCS} version.c 73 74CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 75 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 76 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 77 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 78 -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 79 -I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \ 80 -I${.CURDIR}/../../../lib/libedit/edit \ 81 -I${.CURDIR}/../ \ 82 -I${.CURDIR}/ 83 84CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H 85 86CLEANFILES+= .version version.c 87 88version.c: 89 sh -e ${.CURDIR}/../scripts/mkver ntpd 90 91.include <bsd.lib.mk> 92