6 $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \
9 run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
54 $(top_builddir)/libntp/libntp.a \
59 $(top_builddir)/sntp/unity/libunity.a \
62 AM_CFLAGS = $(CFLAGS_NTP)
64 AM_CPPFLAGS = $(NTP_INCS)
65 AM_CPPFLAGS += -I$(top_srcdir)/sntp
66 AM_CPPFLAGS += $(CPPFLAGS_NTP)
67 AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
68 AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
70 AM_LDFLAGS = $(LDFLAGS_NTP)
73 $(srcdir)/run-a_md5encrypt.c \
74 $(srcdir)/run-atoint.c \
75 $(srcdir)/run-atouint.c \
76 $(srcdir)/run-authkeys.c \
77 $(srcdir)/run-buftvtots.c \
78 $(srcdir)/run-calendar.c \
79 $(srcdir)/run-caljulian.c \
80 $(srcdir)/run-caltontp.c \
81 $(srcdir)/run-calyearstart.c \
82 $(srcdir)/run-clocktime.c \
83 $(srcdir)/run-decodenetnum.c \
84 $(srcdir)/run-hextoint.c \
85 $(srcdir)/run-hextolfp.c \
86 $(srcdir)/run-humandate.c \
87 $(srcdir)/run-lfpfunc.c \
88 $(srcdir)/run-lfptostr.c \
89 $(srcdir)/run-modetoa.c \
90 $(srcdir)/run-msyslog.c \
91 $(srcdir)/run-netof.c \
92 $(srcdir)/run-numtoa.c \
93 $(srcdir)/run-numtohost.c \
94 $(srcdir)/run-octtoint.c \
95 $(srcdir)/run-prettydate.c \
96 $(srcdir)/run-recvbuff.c \
97 $(srcdir)/run-refidsmear.c \
98 $(srcdir)/run-refnumtoa.c \
99 $(srcdir)/run-sfptostr.c \
100 $(srcdir)/run-socktoa.c \
101 $(srcdir)/run-ssl_init.c \
102 $(srcdir)/run-statestr.c \
103 $(srcdir)/run-strtolfp.c \
104 $(srcdir)/run-timevalops.c \
105 $(srcdir)/run-timespecops.c \
106 $(srcdir)/run-tsafememcmp.c \
107 $(srcdir)/run-tstotv.c \
108 $(srcdir)/run-tvtots.c \
109 $(srcdir)/run-uglydate.c \
110 $(srcdir)/run-vi64ops.c \
111 $(srcdir)/run-ymd2yd.c \
122 test_a_md5encrypt_SOURCES = \
127 $(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
128 $(run_unity) a_md5encrypt.c run-a_md5encrypt.c
132 test_atoint_SOURCES = \
137 $(srcdir)/run-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
138 $(run_unity) atoint.c run-atoint.c
142 test_atouint_SOURCES = \
147 $(srcdir)/run-atouint.c: $(srcdir)/atouint.c $(std_unity_list)
148 $(run_unity) atouint.c run-atouint.c
152 test_authkeys_SOURCES = \
157 $(srcdir)/run-authkeys.c: $(srcdir)/authkeys.c $(std_unity_list)
158 $(run_unity) authkeys.c run-authkeys.c
162 test_buftvtots_SOURCES = \
168 $(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
169 $(run_unity) buftvtots.c run-buftvtots.c
173 test_calendar_SOURCES = \
179 $(srcdir)/run-calendar.c: $(srcdir)/calendar.c $(std_unity_list)
180 $(run_unity) calendar.c run-calendar.c
184 test_caltontp_CFLAGS = \
189 test_caltontp_SOURCES = \
194 $(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
195 $(run_unity) caltontp.c run-caltontp.c
199 test_caljulian_CFLAGS = \
204 test_caljulian_SOURCES = \
210 $(srcdir)/run-caljulian.c: $(srcdir)/caljulian.c $(std_unity_list)
211 $(run_unity) caljulian.c run-caljulian.c
215 test_calyearstart_SOURCES = \
221 $(srcdir)/run-calyearstart.c: $(srcdir)/calyearstart.c $(std_unity_list)
222 $(run_unity) calyearstart.c run-calyearstart.c
226 test_clocktime_SOURCES = \
232 $(srcdir)/run-clocktime.c: $(srcdir)/clocktime.c $(std_unity_list)
233 $(run_unity) clocktime.c run-clocktime.c
237 test_decodenetnum_CFLAGS = \
242 test_decodenetnum_SOURCES = \
248 $(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list)
249 $(run_unity) decodenetnum.c run-decodenetnum.c
253 test_hextoint_SOURCES = \
258 $(srcdir)/run-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
259 $(run_unity) hextoint.c run-hextoint.c
263 test_hextolfp_SOURCES = \
269 $(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list)
270 $(run_unity) hextolfp.c run-hextolfp.c
274 test_humandate_SOURCES = \
279 $(srcdir)/run-humandate.c: $(srcdir)/humandate.c $(std_unity_list)
280 $(run_unity) humandate.c run-humandate.c
284 test_lfpfunc_SOURCES = \
289 $(srcdir)/run-lfpfunc.c: $(srcdir)/lfpfunc.c $(std_unity_list)
290 $(run_unity) lfpfunc.c run-lfpfunc.c
294 test_lfptostr_SOURCES = \
299 $(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list)
300 $(run_unity) lfptostr.c run-lfptostr.c
304 test_modetoa_SOURCES = \
309 $(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
310 $(run_unity) modetoa.c run-modetoa.c
314 test_msyslog_SOURCES = \
319 $(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
320 $(run_unity) msyslog.c run-msyslog.c
324 test_netof_SOURCES = \
330 $(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list)
331 $(run_unity) netof.c run-netof.c
335 test_numtoa_SOURCES = \
340 $(srcdir)/run-numtoa.c: $(srcdir)/numtoa.c $(std_unity_list)
341 $(run_unity) numtoa.c run-numtoa.c
345 test_numtohost_SOURCES = \
350 $(srcdir)/run-numtohost.c: $(srcdir)/numtohost.c $(std_unity_list)
351 $(run_unity) numtohost.c run-numtohost.c
355 test_octtoint_SOURCES = \
360 $(srcdir)/run-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
361 $(run_unity) octtoint.c run-octtoint.c
365 test_prettydate_SOURCES = \
370 $(srcdir)/run-prettydate.c: $(srcdir)/prettydate.c $(std_unity_list)
371 $(run_unity) prettydate.c run-prettydate.c
375 test_recvbuff_SOURCES = \
380 $(srcdir)/run-recvbuff.c: $(srcdir)/recvbuff.c $(std_unity_list)
381 $(run_unity) recvbuff.c run-recvbuff.c
385 test_refidsmear_SOURCES = \
390 $(srcdir)/run-refidsmear.c: $(srcdir)/refidsmear.c $(std_unity_list)
391 $(run_unity) refidsmear.c run-refidsmear.c
395 test_refnumtoa_SOURCES = \
400 $(srcdir)/run-refnumtoa.c: $(srcdir)/refnumtoa.c $(std_unity_list)
401 $(run_unity) refnumtoa.c run-refnumtoa.c
405 test_sfptostr_SOURCES = \
410 $(srcdir)/run-sfptostr.c: $(srcdir)/sfptostr.c $(std_unity_list)
411 $(run_unity) sfptostr.c run-sfptostr.c
415 test_socktoa_SOURCES = \
421 $(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list)
422 $(run_unity) socktoa.c run-socktoa.c
426 test_ssl_init_SOURCES = \
431 $(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
432 $(run_unity) ssl_init.c run-ssl_init.c
436 test_statestr_SOURCES = \
441 $(srcdir)/run-statestr.c: $(srcdir)/statestr.c $(std_unity_list)
442 $(run_unity) statestr.c run-statestr.c
446 test_strtolfp_CFLAGS = \
451 test_strtolfp_SOURCES = \
457 $(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list)
458 $(run_unity) strtolfp.c run-strtolfp.c
462 test_timespecops_SOURCES = \
467 $(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
468 $(run_unity) timespecops.c run-timespecops.c
472 test_timevalops_SOURCES = \
477 $(srcdir)/run-timevalops.c: $(srcdir)/timevalops.c $(std_unity_list)
478 $(run_unity) timevalops.c run-timevalops.c
482 test_tsafememcmp_SOURCES = \
487 $(srcdir)/run-tsafememcmp.c: $(srcdir)/tsafememcmp.c $(std_unity_list)
488 $(run_unity) tsafememcmp.c run-tsafememcmp.c
492 test_tstotv_SOURCES = \
497 $(srcdir)/run-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
498 $(run_unity) tstotv.c run-tstotv.c
502 test_tvtots_SOURCES = \
508 $(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list)
509 $(run_unity) tvtots.c run-tvtots.c
513 test_uglydate_SOURCES = \
518 $(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
519 $(run_unity) uglydate.c run-uglydate.c
523 test_vi64ops_SOURCES = \
528 $(srcdir)/run-vi64ops.c: $(srcdir)/vi64ops.c $(std_unity_list)
529 $(run_unity) vi64ops.c run-vi64ops.c
533 test_ymd2yd_SOURCES = \
538 $(srcdir)/run-ymd2yd.c: $(srcdir)/ymd2yd.c $(std_unity_list)
539 $(run_unity) ymd2yd.c run-ymd2yd.c
546 TESTS += $(check_PROGRAMS)
549 ## check-libntp.mf - automake fragment
550 ## slightly adapted for deeper directory
552 BUILT_SOURCES += check-libntp check-libunity
553 CLEANFILES += check-libntp check-libunity
555 check-libntp: ../../libntp/libntp.a
558 ../../libntp/libntp.a:
559 cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
561 check-libunity: ../../sntp/unity/libunity.a
564 ../../sntp/unity/libunity.a:
565 cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
567 include $(top_srcdir)/depsver.mf
568 include $(top_srcdir)/includes.mf