6 $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
9 run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
53 $(top_builddir)/libntp/libntp.a \
58 $(top_builddir)/sntp/unity/libunity.a \
61 AM_CFLAGS = $(CFLAGS_NTP)
63 AM_CPPFLAGS = $(NTP_INCS)
64 AM_CPPFLAGS += -I$(top_srcdir)/sntp
65 AM_CPPFLAGS += $(CPPFLAGS_NTP)
66 AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
67 AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
69 AM_LDFLAGS = $(LDFLAGS_NTP)
72 $(srcdir)/run-a_md5encrypt.c \
73 $(srcdir)/run-atoint.c \
74 $(srcdir)/run-atouint.c \
75 $(srcdir)/run-authkeys.c \
76 $(srcdir)/run-buftvtots.c \
77 $(srcdir)/run-calendar.c \
78 $(srcdir)/run-caljulian.c \
79 $(srcdir)/run-caltontp.c \
80 $(srcdir)/run-calyearstart.c \
81 $(srcdir)/run-clocktime.c \
82 $(srcdir)/run-decodenetnum.c \
83 $(srcdir)/run-hextoint.c \
84 $(srcdir)/run-hextolfp.c \
85 $(srcdir)/run-humandate.c \
86 $(srcdir)/run-lfpfunc.c \
87 $(srcdir)/run-lfptostr.c \
88 $(srcdir)/run-modetoa.c \
89 $(srcdir)/run-msyslog.c \
90 $(srcdir)/run-netof.c \
91 $(srcdir)/run-numtoa.c \
92 $(srcdir)/run-numtohost.c \
93 $(srcdir)/run-octtoint.c \
94 $(srcdir)/run-prettydate.c \
95 $(srcdir)/run-recvbuff.c \
96 $(srcdir)/run-refidsmear.c \
97 $(srcdir)/run-refnumtoa.c \
98 $(srcdir)/run-sfptostr.c \
99 $(srcdir)/run-socktoa.c \
100 $(srcdir)/run-ssl_init.c \
101 $(srcdir)/run-statestr.c \
102 $(srcdir)/run-strtolfp.c \
103 $(srcdir)/run-timevalops.c \
104 $(srcdir)/run-timespecops.c \
105 $(srcdir)/run-tstotv.c \
106 $(srcdir)/run-tvtots.c \
107 $(srcdir)/run-uglydate.c \
108 $(srcdir)/run-vi64ops.c \
109 $(srcdir)/run-ymd2yd.c \
120 test_a_md5encrypt_SOURCES = \
125 $(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
126 $(run_unity) a_md5encrypt.c run-a_md5encrypt.c
130 test_atoint_SOURCES = \
135 $(srcdir)/run-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
136 $(run_unity) atoint.c run-atoint.c
140 test_atouint_SOURCES = \
145 $(srcdir)/run-atouint.c: $(srcdir)/atouint.c $(std_unity_list)
146 $(run_unity) atouint.c run-atouint.c
150 test_authkeys_SOURCES = \
155 $(srcdir)/run-authkeys.c: $(srcdir)/authkeys.c $(std_unity_list)
156 $(run_unity) authkeys.c run-authkeys.c
160 test_buftvtots_SOURCES = \
166 $(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
167 $(run_unity) buftvtots.c run-buftvtots.c
171 test_calendar_SOURCES = \
177 $(srcdir)/run-calendar.c: $(srcdir)/calendar.c $(std_unity_list)
178 $(run_unity) calendar.c run-calendar.c
182 test_caltontp_CFLAGS = \
187 test_caltontp_SOURCES = \
192 $(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
193 $(run_unity) caltontp.c run-caltontp.c
197 test_caljulian_CFLAGS = \
202 test_caljulian_SOURCES = \
208 $(srcdir)/run-caljulian.c: $(srcdir)/caljulian.c $(std_unity_list)
209 $(run_unity) caljulian.c run-caljulian.c
213 test_calyearstart_SOURCES = \
219 $(srcdir)/run-calyearstart.c: $(srcdir)/calyearstart.c $(std_unity_list)
220 $(run_unity) calyearstart.c run-calyearstart.c
224 test_clocktime_SOURCES = \
230 $(srcdir)/run-clocktime.c: $(srcdir)/clocktime.c $(std_unity_list)
231 $(run_unity) clocktime.c run-clocktime.c
235 test_decodenetnum_CFLAGS = \
240 test_decodenetnum_SOURCES = \
246 $(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list)
247 $(run_unity) decodenetnum.c run-decodenetnum.c
251 test_hextoint_SOURCES = \
256 $(srcdir)/run-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
257 $(run_unity) hextoint.c run-hextoint.c
261 test_hextolfp_SOURCES = \
267 $(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list)
268 $(run_unity) hextolfp.c run-hextolfp.c
272 test_humandate_SOURCES = \
277 $(srcdir)/run-humandate.c: $(srcdir)/humandate.c $(std_unity_list)
278 $(run_unity) humandate.c run-humandate.c
282 test_lfpfunc_SOURCES = \
287 $(srcdir)/run-lfpfunc.c: $(srcdir)/lfpfunc.c $(std_unity_list)
288 $(run_unity) lfpfunc.c run-lfpfunc.c
292 test_lfptostr_SOURCES = \
297 $(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list)
298 $(run_unity) lfptostr.c run-lfptostr.c
302 test_modetoa_SOURCES = \
307 $(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
308 $(run_unity) modetoa.c run-modetoa.c
312 test_msyslog_SOURCES = \
317 $(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
318 $(run_unity) msyslog.c run-msyslog.c
322 test_netof_SOURCES = \
328 $(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list)
329 $(run_unity) netof.c run-netof.c
333 test_numtoa_SOURCES = \
338 $(srcdir)/run-numtoa.c: $(srcdir)/numtoa.c $(std_unity_list)
339 $(run_unity) numtoa.c run-numtoa.c
343 test_numtohost_SOURCES = \
348 $(srcdir)/run-numtohost.c: $(srcdir)/numtohost.c $(std_unity_list)
349 $(run_unity) numtohost.c run-numtohost.c
353 test_octtoint_SOURCES = \
358 $(srcdir)/run-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
359 $(run_unity) octtoint.c run-octtoint.c
363 test_prettydate_SOURCES = \
368 $(srcdir)/run-prettydate.c: $(srcdir)/prettydate.c $(std_unity_list)
369 $(run_unity) prettydate.c run-prettydate.c
373 test_recvbuff_SOURCES = \
378 $(srcdir)/run-recvbuff.c: $(srcdir)/recvbuff.c $(std_unity_list)
379 $(run_unity) recvbuff.c run-recvbuff.c
383 test_refidsmear_SOURCES = \
388 $(srcdir)/run-refidsmear.c: $(srcdir)/refidsmear.c $(std_unity_list)
389 $(run_unity) refidsmear.c run-refidsmear.c
393 test_refnumtoa_SOURCES = \
398 $(srcdir)/run-refnumtoa.c: $(srcdir)/refnumtoa.c $(std_unity_list)
399 $(run_unity) refnumtoa.c run-refnumtoa.c
403 test_sfptostr_SOURCES = \
408 $(srcdir)/run-sfptostr.c: $(srcdir)/sfptostr.c $(std_unity_list)
409 $(run_unity) sfptostr.c run-sfptostr.c
413 test_socktoa_SOURCES = \
419 $(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list)
420 $(run_unity) socktoa.c run-socktoa.c
424 test_ssl_init_SOURCES = \
429 $(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
430 $(run_unity) ssl_init.c run-ssl_init.c
434 test_statestr_SOURCES = \
439 $(srcdir)/run-statestr.c: $(srcdir)/statestr.c $(std_unity_list)
440 $(run_unity) statestr.c run-statestr.c
444 test_strtolfp_CFLAGS = \
449 test_strtolfp_SOURCES = \
455 $(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list)
456 $(run_unity) strtolfp.c run-strtolfp.c
460 test_timespecops_SOURCES = \
465 $(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
466 $(run_unity) timespecops.c run-timespecops.c
470 test_timevalops_SOURCES = \
475 $(srcdir)/run-timevalops.c: $(srcdir)/timevalops.c $(std_unity_list)
476 $(run_unity) timevalops.c run-timevalops.c
480 test_tstotv_SOURCES = \
485 $(srcdir)/run-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
486 $(run_unity) tstotv.c run-tstotv.c
490 test_tvtots_SOURCES = \
496 $(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list)
497 $(run_unity) tvtots.c run-tvtots.c
501 test_uglydate_SOURCES = \
506 $(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
507 $(run_unity) uglydate.c run-uglydate.c
511 test_vi64ops_SOURCES = \
516 $(srcdir)/run-vi64ops.c: $(srcdir)/vi64ops.c $(std_unity_list)
517 $(run_unity) vi64ops.c run-vi64ops.c
521 test_ymd2yd_SOURCES = \
526 $(srcdir)/run-ymd2yd.c: $(srcdir)/ymd2yd.c $(std_unity_list)
527 $(run_unity) ymd2yd.c run-ymd2yd.c
534 TESTS += $(check_PROGRAMS)
537 ## check-libntp.mf - automake fragment
538 ## slightly adapted for deeper directory
540 BUILT_SOURCES += check-libntp check-libunity
541 CLEANFILES += check-libntp check-libunity
543 check-libntp: ../../libntp/libntp.a
546 ../../libntp/libntp.a:
547 cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
549 check-libunity: ../../sntp/unity/libunity.a
552 ../../sntp/unity/libunity.a:
553 cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
555 include $(top_srcdir)/depsver.mf
556 include $(top_srcdir)/includes.mf