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 lib_strbuf.c machines.c mktime.c modetoa.c \ 20 mstolfp.c msyslog.c netof.c ntp_calendar.c \ 21 ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c \ 22 ntp_lineedit.c ntp_random.c ntp_rfc2553.c ntp_worker.c \ 23 numtoa.c numtohost.c octtoint.c prettydate.c \ 24 recvbuff.c refnumtoa.c snprintf.c socket.c \ 25 socktoa.c socktohost.c ssl_init.c statestr.c \ 26 strdup.c strl_obsd.c syssignal.c timetoa.c \ 27 timevalops.c uglydate.c vint64ops.c work_fork.c \ 28 work_thread.c ymd2yd.c 29 30ISC_PTHREADS_SRCS= condition.c \ 31 thread.c \ 32 mutex.c 33 34ISC_UNIX_SRCS= dir.c \ 35 errno2result.c \ 36 file.c \ 37 interfaceiter.c \ 38 net.c \ 39 stdio.c \ 40 stdtime.c \ 41 strerror.c \ 42 time.c 43 44ISC_NLS_SRCS= msgcat.c 45 46ISC_SRCS= assertions.c \ 47 buffer.c \ 48 backtrace-emptytbl.c \ 49 backtrace.c \ 50 error.c \ 51 event.c \ 52 inet_ntop.c \ 53 inet_pton.c \ 54 lib.c \ 55 log.c \ 56 md5.c \ 57 netaddr.c \ 58 netscope.c \ 59 ondestroy.c \ 60 random.c \ 61 result.c \ 62 task.c \ 63 sha1.c \ 64 sockaddr.c \ 65 ${ISC_NLS_SRCS} \ 66 ${ISC_PTHREADS_SRCS} \ 67 ${ISC_UNIX_SRCS} 68 69SRCS= ${NTP_SRCS} ${ISC_SRCS} version.c 70 71CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 72 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 73 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 74 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 75 -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 76 -I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \ 77 -I${.CURDIR}/../../../lib/libedit/edit \ 78 -I${.CURDIR}/../ \ 79 -I${.CURDIR}/ 80 81CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H 82 83CLEANFILES+= .version version.c 84 85version.c: 86 sh -e ${.CURDIR}/../scripts/mkver ntpd 87 88.include <bsd.lib.mk> 89