12b15cb3dSCy SchubertNULL= 22b15cb3dSCy SchubertBUILT_SOURCES = 32b15cb3dSCy SchubertCLEANFILES = 4*a466cc55SCy SchubertDISTCLEANFILES = 59c2daa00SOllivier Robertnoinst_LIBRARIES = libntp.a @MAKE_LIBNTPSIM@ 69c2daa00SOllivier RobertEXTRA_LIBRARIES = libntpsim.a 72b15cb3dSCy Schubert 8*a466cc55SCy Schubertnoinst_HEADERS = \ 9*a466cc55SCy Schubert lib/isc/task_p.h \ 10*a466cc55SCy Schubert lib/isc/include/isc/app.h \ 11*a466cc55SCy Schubert lib/isc/include/isc/assertions.h \ 12*a466cc55SCy Schubert lib/isc/include/isc/backtrace.h \ 13*a466cc55SCy Schubert lib/isc/include/isc/bind9.h \ 14*a466cc55SCy Schubert lib/isc/include/isc/buffer.h \ 15*a466cc55SCy Schubert lib/isc/include/isc/boolean.h \ 16*a466cc55SCy Schubert lib/isc/include/isc/error.h \ 17*a466cc55SCy Schubert lib/isc/include/isc/event.h \ 18*a466cc55SCy Schubert lib/isc/include/isc/eventclass.h \ 19*a466cc55SCy Schubert lib/isc/include/isc/file.h \ 20*a466cc55SCy Schubert lib/isc/include/isc/formatcheck.h \ 21*a466cc55SCy Schubert lib/isc/include/isc/hash.h \ 22*a466cc55SCy Schubert lib/isc/include/isc/interfaceiter.h \ 23*a466cc55SCy Schubert lib/isc/include/isc/lang.h \ 24*a466cc55SCy Schubert lib/isc/include/isc/lib.h \ 25*a466cc55SCy Schubert lib/isc/include/isc/list.h \ 26*a466cc55SCy Schubert lib/isc/include/isc/log.h \ 27*a466cc55SCy Schubert lib/isc/include/isc/magic.h \ 28*a466cc55SCy Schubert lib/isc/include/isc/md5.h \ 29*a466cc55SCy Schubert lib/isc/include/isc/msgs.h \ 30*a466cc55SCy Schubert lib/isc/include/isc/msgcat.h \ 31*a466cc55SCy Schubert lib/isc/include/isc/namespace.h \ 32*a466cc55SCy Schubert lib/isc/include/isc/netscope.h \ 33*a466cc55SCy Schubert lib/isc/include/isc/netaddr.h \ 34*a466cc55SCy Schubert lib/isc/include/isc/ondestroy.h \ 35*a466cc55SCy Schubert lib/isc/include/isc/platform.h \ 36*a466cc55SCy Schubert lib/isc/include/isc/print.h \ 37*a466cc55SCy Schubert lib/isc/include/isc/random.h \ 38*a466cc55SCy Schubert lib/isc/include/isc/region.h \ 39*a466cc55SCy Schubert lib/isc/include/isc/result.h \ 40*a466cc55SCy Schubert lib/isc/include/isc/resultclass.h \ 41*a466cc55SCy Schubert lib/isc/include/isc/sha1.h \ 42*a466cc55SCy Schubert lib/isc/include/isc/sockaddr.h \ 43*a466cc55SCy Schubert lib/isc/include/isc/socket.h \ 44*a466cc55SCy Schubert lib/isc/include/isc/stdio.h \ 45*a466cc55SCy Schubert lib/isc/include/isc/string.h \ 46*a466cc55SCy Schubert lib/isc/include/isc/task.h \ 47*a466cc55SCy Schubert lib/isc/include/isc/timer.h \ 48*a466cc55SCy Schubert lib/isc/include/isc/types.h \ 49*a466cc55SCy Schubert lib/isc/include/isc/util.h \ 50*a466cc55SCy Schubert lib/isc/include/isc/xml.h \ 51*a466cc55SCy Schubert lib/isc/unix/errno2result.h \ 52*a466cc55SCy Schubert lib/isc/unix/include/isc/dir.h \ 53*a466cc55SCy Schubert lib/isc/unix/include/isc/int.h \ 54*a466cc55SCy Schubert lib/isc/unix/include/isc/net.h \ 55*a466cc55SCy Schubert lib/isc/unix/include/isc/offset.h \ 56*a466cc55SCy Schubert lib/isc/unix/include/isc/stat.h \ 57*a466cc55SCy Schubert lib/isc/unix/include/isc/stdtime.h \ 58*a466cc55SCy Schubert lib/isc/unix/include/isc/strerror.h \ 59*a466cc55SCy Schubert lib/isc/unix/include/isc/time.h \ 60*a466cc55SCy Schubert lib/isc/win32/include/isc/condition.h \ 61*a466cc55SCy Schubert lib/isc/win32/include/isc/dir.h \ 62*a466cc55SCy Schubert lib/isc/win32/include/isc/int.h \ 63*a466cc55SCy Schubert lib/isc/win32/include/isc/ipv6.h \ 64*a466cc55SCy Schubert lib/isc/win32/include/isc/mutex.h \ 65*a466cc55SCy Schubert lib/isc/win32/include/isc/net.h \ 66*a466cc55SCy Schubert lib/isc/win32/include/isc/offset.h \ 67*a466cc55SCy Schubert lib/isc/win32/include/isc/once.h \ 68*a466cc55SCy Schubert lib/isc/win32/include/isc/platform.h \ 69*a466cc55SCy Schubert lib/isc/win32/include/isc/stat.h \ 70*a466cc55SCy Schubert lib/isc/win32/include/isc/stdtime.h \ 71*a466cc55SCy Schubert lib/isc/win32/include/isc/strerror.h \ 72*a466cc55SCy Schubert lib/isc/win32/include/isc/thread.h \ 73*a466cc55SCy Schubert lib/isc/win32/include/isc/time.h \ 74*a466cc55SCy Schubert lib/isc/win32/include/isc/win32os.h \ 75*a466cc55SCy Schubert $(NULL) 76*a466cc55SCy Schubert 77*a466cc55SCy Schubert 78*a466cc55SCy Schubert# ntp_crypto_rnd.c includes libevent headers for use when 79*a466cc55SCy Schubert# neither OpenSSL nor arc4random_buf are available. Those 80*a466cc55SCy Schubert# include event2/event-config.h which is built, so if we 81*a466cc55SCy Schubert# are building our libevent tearoff, build it before this. 82*a466cc55SCy Schubert 83*a466cc55SCy Schubertif BUILD_LIBEVENT 84*a466cc55SCy SchubertBUILT_SOURCES += libevent_first 85*a466cc55SCy SchubertCLEANFILES += libevent_first 86*a466cc55SCy Schubert 87*a466cc55SCy Schubertlibevent_first: 88*a466cc55SCy Schubert cd $(top_builddir)/sntp/libevent && $(MAKE) $(AM_MAKEFLAGS) 89*a466cc55SCy Schubert echo stamp > $@ 90*a466cc55SCy Schubertendif 91*a466cc55SCy Schubert 92*a466cc55SCy Schubert 932b15cb3dSCy Schubertlibisc_SRCS = \ 94*a466cc55SCy Schubert lib/isc/assertions.c \ 95*a466cc55SCy Schubert lib/isc/buffer.c \ 96*a466cc55SCy Schubert lib/isc/backtrace-emptytbl.c \ 97*a466cc55SCy Schubert lib/isc/backtrace.c \ 98*a466cc55SCy Schubert lib/isc/unix/dir.c \ 99*a466cc55SCy Schubert lib/isc/error.c \ 100*a466cc55SCy Schubert lib/isc/unix/errno2result.c \ 101*a466cc55SCy Schubert lib/isc/event.c \ 102*a466cc55SCy Schubert lib/isc/unix/file.c \ 103*a466cc55SCy Schubert lib/isc/inet_ntop.c \ 104*a466cc55SCy Schubert lib/isc/inet_pton.c \ 105*a466cc55SCy Schubert lib/isc/unix/interfaceiter.c \ 106*a466cc55SCy Schubert lib/isc/lib.c \ 107*a466cc55SCy Schubert lib/isc/log.c \ 108*a466cc55SCy Schubert lib/isc/md5.c \ 109*a466cc55SCy Schubert lib/isc/nls/msgcat.c \ 110*a466cc55SCy Schubert lib/isc/unix/net.c \ 111*a466cc55SCy Schubert lib/isc/netaddr.c \ 112*a466cc55SCy Schubert lib/isc/netscope.c \ 113*a466cc55SCy Schubert lib/isc/ondestroy.c \ 114*a466cc55SCy Schubert lib/isc/random.c \ 115*a466cc55SCy Schubert lib/isc/result.c \ 116*a466cc55SCy Schubert lib/isc/unix/stdio.c \ 117*a466cc55SCy Schubert lib/isc/unix/stdtime.c \ 118*a466cc55SCy Schubert lib/isc/unix/strerror.c \ 119*a466cc55SCy Schubert lib/isc/task.c \ 120*a466cc55SCy Schubert lib/isc/unix/time.c \ 121*a466cc55SCy Schubert lib/isc/sha1.c \ 122*a466cc55SCy Schubert lib/isc/sockaddr.c \ 123*a466cc55SCy Schubert lib/isc/tsmemcmp.c \ 124*a466cc55SCy Schubert $(NULL) 125*a466cc55SCy Schubert 126*a466cc55SCy Schubertlibisc_XTRA = \ 127*a466cc55SCy Schubert lib/isc/pthreads/condition.c \ 128*a466cc55SCy Schubert lib/isc/pthreads/mutex.c \ 129*a466cc55SCy Schubert lib/isc/pthreads/thread.c \ 130*a466cc55SCy Schubert lib/isc/nothreads/condition.c \ 131*a466cc55SCy Schubert lib/isc/nothreads/thread.c \ 1322b15cb3dSCy Schubert $(NULL) 1332b15cb3dSCy Schubert 1342b15cb3dSCy Schubertif PTHREADS 135*a466cc55SCy Schubertlibisc_SRCS += \ 136*a466cc55SCy Schubert lib/isc/pthreads/condition.c \ 137*a466cc55SCy Schubert lib/isc/pthreads/mutex.c \ 138*a466cc55SCy Schubert lib/isc/pthreads/thread.c \ 139*a466cc55SCy Schubert $(NULL) 140*a466cc55SCy Schubertelse 141*a466cc55SCy Schubertlibisc_SRCS += \ 142*a466cc55SCy Schubert lib/isc/nothreads/condition.c \ 143*a466cc55SCy Schubert lib/isc/nothreads/thread.c \ 144*a466cc55SCy Schubert $(NULL) 1452b15cb3dSCy Schubertendif 1462b15cb3dSCy Schubert 1472b15cb3dSCy Schubertlibntp_a_SRCS = \ 1482b15cb3dSCy Schubert a_md5encrypt.c \ 1492b15cb3dSCy Schubert adjtime.c \ 1502b15cb3dSCy Schubert atoint.c \ 1512b15cb3dSCy Schubert atolfp.c \ 1522b15cb3dSCy Schubert atouint.c \ 1532b15cb3dSCy Schubert audio.c \ 1542b15cb3dSCy Schubert authkeys.c \ 1552b15cb3dSCy Schubert authreadkeys.c \ 1562b15cb3dSCy Schubert authusekey.c \ 1572b15cb3dSCy Schubert bsd_strerror.c \ 1582b15cb3dSCy Schubert buftvtots.c \ 1592b15cb3dSCy Schubert caljulian.c \ 1602b15cb3dSCy Schubert caltontp.c \ 1612b15cb3dSCy Schubert calyearstart.c \ 1622b15cb3dSCy Schubert clocktime.c \ 1632b15cb3dSCy Schubert clocktypes.c \ 1642b15cb3dSCy Schubert decodenetnum.c \ 1652b15cb3dSCy Schubert dofptoa.c \ 1662b15cb3dSCy Schubert dolfptoa.c \ 1672b15cb3dSCy Schubert emalloc.c \ 1682b15cb3dSCy Schubert findconfig.c \ 1692b15cb3dSCy Schubert getopt.c \ 1702b15cb3dSCy Schubert hextoint.c \ 1712b15cb3dSCy Schubert hextolfp.c \ 1722b15cb3dSCy Schubert humandate.c \ 1732b15cb3dSCy Schubert icom.c \ 1742b15cb3dSCy Schubert iosignal.c \ 17568ba7e87SXin LI is_ip_address.c \ 1762b15cb3dSCy Schubert lib_strbuf.c \ 177f391d6bcSXin LI libssl_compat.c \ 1782b15cb3dSCy Schubert machines.c \ 1792b15cb3dSCy Schubert mktime.c \ 1802b15cb3dSCy Schubert modetoa.c \ 1812b15cb3dSCy Schubert mstolfp.c \ 1822b15cb3dSCy Schubert msyslog.c \ 1832b15cb3dSCy Schubert netof.c \ 1842b15cb3dSCy Schubert ntp_calendar.c \ 1852d4e511cSCy Schubert ntp_calgps.c \ 1862b15cb3dSCy Schubert ntp_crypto_rnd.c \ 1872b15cb3dSCy Schubert ntp_intres.c \ 1882b15cb3dSCy Schubert ntp_libopts.c \ 1892b15cb3dSCy Schubert ntp_lineedit.c \ 1902b15cb3dSCy Schubert ntp_random.c \ 191*a466cc55SCy Schubert ntp_realpath.c \ 1922b15cb3dSCy Schubert ntp_rfc2553.c \ 1932b15cb3dSCy Schubert ntp_worker.c \ 1942b15cb3dSCy Schubert numtoa.c \ 1952b15cb3dSCy Schubert octtoint.c \ 1962b15cb3dSCy Schubert prettydate.c \ 197276da39aSCy Schubert refidsmear.c \ 1982b15cb3dSCy Schubert recvbuff.c \ 1992b15cb3dSCy Schubert refnumtoa.c \ 2002b15cb3dSCy Schubert snprintf.c \ 2012b15cb3dSCy Schubert socket.c \ 2022b15cb3dSCy Schubert socktoa.c \ 2032b15cb3dSCy Schubert socktohost.c \ 2042b15cb3dSCy Schubert ssl_init.c \ 2052b15cb3dSCy Schubert statestr.c \ 2062b15cb3dSCy Schubert strdup.c \ 2072b15cb3dSCy Schubert strl_obsd.c \ 2082b15cb3dSCy Schubert syssignal.c \ 2092d4e511cSCy Schubert timespecops.c \ 2102b15cb3dSCy Schubert timetoa.c \ 2112b15cb3dSCy Schubert timevalops.c \ 2122d4e511cSCy Schubert timexsup.c \ 2132b15cb3dSCy Schubert uglydate.c \ 2142b15cb3dSCy Schubert vint64ops.c \ 2152b15cb3dSCy Schubert work_fork.c \ 2162b15cb3dSCy Schubert work_thread.c \ 217052d159aSCy Schubert xsbprintf.c \ 2182b15cb3dSCy Schubert ymd2yd.c \ 2192b15cb3dSCy Schubert $(libisc_SRCS) \ 2202b15cb3dSCy Schubert $(NULL) 2212b15cb3dSCy Schubert 2229c2daa00SOllivier Robertlibntp_a_SOURCES = systime.c $(libntp_a_SRCS) 2239c2daa00SOllivier Robertlibntpsim_a_SOURCES = systime_s.c $(libntp_a_SRCS) 224*a466cc55SCy Schubert 225*a466cc55SCy SchubertEXTRA_libntp_a_SOURCES = \ 226*a466cc55SCy Schubert adjtimex.c \ 227*a466cc55SCy Schubert $(libisc_XTRA) \ 228*a466cc55SCy Schubert $(NULL) 229c0b746e5SOllivier Robert 2302b15cb3dSCy SchubertAM_CFLAGS = $(CFLAGS_NTP) 231f0574f5cSXin LIAM_CFLAGS += $(NTP_HARD_CFLAGS) 232c0b746e5SOllivier Robert 2332b15cb3dSCy SchubertAM_CPPFLAGS = $(NTP_INCS) 2342b15cb3dSCy SchubertAM_CPPFLAGS += $(LIBOPTS_CFLAGS) 235*a466cc55SCy SchubertAM_CPPFLAGS += $(CPPFLAGS_LIBEVENT) 2362b15cb3dSCy SchubertAM_CPPFLAGS += $(CPPFLAGS_NTP) 237f0574f5cSXin LIAM_CPPFLAGS += $(NTP_HARD_CPPFLAGS) 238f0574f5cSXin LI 239f0574f5cSXin LIAM_LDFLAGS = $(NTP_HARD_LDFLAGS) 240c0b746e5SOllivier Robert 241*a466cc55SCy SchubertEXTRA_DIST = \ 242*a466cc55SCy Schubert README \ 243*a466cc55SCy Schubert lib/isc/nothreads/include \ 244*a466cc55SCy Schubert lib/isc/pthreads/include \ 245*a466cc55SCy Schubert lib/isc/unix/ifiter_getifaddrs.c \ 246*a466cc55SCy Schubert lib/isc/unix/ifiter_ioctl.c \ 247*a466cc55SCy Schubert lib/isc/unix/ifiter_sysctl.c \ 248*a466cc55SCy Schubert lib/isc/win32/condition.c \ 249*a466cc55SCy Schubert lib/isc/win32/interfaceiter.c \ 250*a466cc55SCy Schubert lib/isc/win32/net.c \ 251*a466cc55SCy Schubert lib/isc/win32/once.c \ 252*a466cc55SCy Schubert lib/isc/win32/stdtime.c \ 253*a466cc55SCy Schubert lib/isc/win32/strerror.c \ 254*a466cc55SCy Schubert lib/isc/win32/thread.c \ 255*a466cc55SCy Schubert lib/isc/win32/time.c \ 256*a466cc55SCy Schubert lib/isc/win32/win32os.c \ 257*a466cc55SCy Schubert $(NULL) 258c0b746e5SOllivier Robert 2592b15cb3dSCy Schubertinclude $(top_srcdir)/depsver.mf 2602b15cb3dSCy Schubertinclude $(top_srcdir)/includes.mf 261