]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/libntp/Makefile.am
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / libntp / Makefile.am
1 NULL =
2 BUILT_SOURCES =
3 CLEANFILES =
4
5 run_unity =     cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
6
7 #removed test-libntp
8 check_PROGRAMS =                \
9         test-a_md5encrypt       \
10         test-atoint             \
11         test-atouint            \
12         test-authkeys           \
13         test-buftvtots          \
14         test-calendar           \
15         test-caljulian          \
16         test-caltontp           \
17         test-calyearstart       \
18         test-clocktime          \
19         test-decodenetnum       \
20         test-hextoint           \
21         test-hextolfp           \
22         test-humandate          \
23         test-lfpfunc            \
24         test-lfptostr           \
25         test-modetoa            \
26         test-msyslog            \
27         test-netof              \
28         test-numtoa             \
29         test-numtohost          \
30         test-octtoint           \
31         test-prettydate         \
32         test-recvbuff           \
33         test-refidsmear         \
34         test-refnumtoa          \
35         test-sfptostr           \
36         test-socktoa            \
37         test-ssl_init           \
38         test-statestr           \
39         test-strtolfp           \
40         test-timespecops        \
41         test-timevalops         \
42         test-tstotv             \
43         test-tvtots             \
44         test-uglydate           \
45         test-vi64ops            \
46         test-ymd2yd             \
47         $(NULL)
48
49 if GTEST_AVAILABLE
50 check_PROGRAMS += tests
51 else
52 EXTRA_PROGRAMS = tests
53 endif
54
55 LDADD =                                 \
56         $(top_builddir)/libntp/libntp.a \
57         $(LDADD_LIBNTP)                 \
58         $(PTHREAD_LIBS)                 \
59         $(LDADD_NTP)                    \
60         $(LIBM)                         \
61         $(NULL)
62
63 tests_LDADD =                           \
64         $(LDADD)                        \
65         $(GTEST_LDFLAGS)                \
66         $(GTEST_LIBS)                   \
67         $(NULL)
68
69 unity_tests_LDADD =                             \
70         $(LDADD)                                \
71         $(top_builddir)/sntp/unity/libunity.a   \
72         $(NULL)
73
74 AM_CFLAGS = $(CFLAGS_NTP)
75 AM_CXXFLAGS = $(GTEST_CXXFLAGS)
76
77 AM_CPPFLAGS  = $(NTP_INCS)
78 AM_CPPFLAGS += -I$(top_srcdir)/sntp
79 AM_CPPFLAGS += $(GTEST_CPPFLAGS)
80 AM_CPPFLAGS += $(CPPFLAGS_NTP)
81
82 AM_LDFLAGS = $(LDFLAGS_NTP)
83
84 tests_SOURCES =                                 \
85         $(top_srcdir)/sntp/tests_main.cpp       \
86         g_libntptest.cpp        \
87         g_a_md5encrypt.cpp      \
88         g_atoint.cpp            \
89         g_atouint.cpp           \
90         g_authkeys.cpp          \
91         g_buftvtots.cpp         \
92         g_calendar.cpp          \
93         g_caljulian.cpp         \
94         g_caltontp.cpp          \
95         g_calyearstart.cpp      \
96         g_clocktime.cpp         \
97         g_decodenetnum.cpp      \
98         g_hextoint.cpp          \
99         g_hextolfp.cpp          \
100         g_humandate.cpp         \
101         g_lfpfunc.cpp           \
102         g_lfptostr.cpp          \
103         g_modetoa.cpp           \
104         g_msyslog.cpp           \
105         g_netof.cpp             \
106         g_numtoa.cpp            \
107         g_numtohost.cpp         \
108         g_octtoint.cpp          \
109         g_prettydate.cpp        \
110         g_recvbuff.cpp          \
111         g_refnumtoa.cpp         \
112         g_sfptostr.cpp          \
113         g_socktoa.cpp           \
114         g_ssl_init.cpp          \
115         g_statestr.cpp          \
116         g_strtolfp.cpp          \
117         g_timespecops.cpp       \
118         g_timestructs.cpp       \
119         g_timevalops.cpp        \
120         g_tstotv.cpp            \
121         g_tvtots.cpp            \
122         g_uglydate.cpp          \
123         g_vi64ops.cpp           \
124         g_ymd2yd.cpp            \
125         $(NULL)
126
127 BUILT_SOURCES +=                        \
128         $(srcdir)/run-a_md5encrypt.c    \
129         $(srcdir)/run-atoint.c          \
130         $(srcdir)/run-atouint.c         \
131         $(srcdir)/run-authkeys.c        \
132         $(srcdir)/run-buftvtots.c       \
133         $(srcdir)/run-calendar.c        \
134         $(srcdir)/run-caljulian.c       \
135         $(srcdir)/run-caltontp.c        \
136         $(srcdir)/run-calyearstart.c    \
137         $(srcdir)/run-clocktime.c       \
138         $(srcdir)/run-decodenetnum.c    \
139         $(srcdir)/run-hextoint.c        \
140         $(srcdir)/run-hextolfp.c        \
141         $(srcdir)/run-humandate.c       \
142         $(srcdir)/run-lfpfunc.c         \
143         $(srcdir)/run-lfptostr.c        \
144         $(srcdir)/run-modetoa.c         \
145         $(srcdir)/run-msyslog.c         \
146         $(srcdir)/run-netof.c           \
147         $(srcdir)/run-numtoa.c          \
148         $(srcdir)/run-numtohost.c       \
149         $(srcdir)/run-octtoint.c        \
150         $(srcdir)/run-prettydate.c      \
151         $(srcdir)/run-recvbuff.c        \
152         $(srcdir)/run-refidsmear.c      \
153         $(srcdir)/run-refnumtoa.c       \
154         $(srcdir)/run-sfptostr.c        \
155         $(srcdir)/run-socktoa.c         \
156         $(srcdir)/run-ssl_init.c        \
157         $(srcdir)/run-statestr.c        \
158         $(srcdir)/run-strtolfp.c        \
159         $(srcdir)/run-timevalops.c      \
160         $(srcdir)/run-timespecops.c     \
161         $(srcdir)/run-tstotv.c          \
162         $(srcdir)/run-tvtots.c          \
163         $(srcdir)/run-uglydate.c        \
164         $(srcdir)/run-vi64ops.c         \
165         $(srcdir)/run-ymd2yd.c          \
166         $(NULL)
167
168 noinst_HEADERS =        \
169         g_lfptest.h     \
170         lfptest.h       \
171         g_libntptest.h  \
172         g_sockaddrtest.h        \
173         sockaddrtest.h  \
174         g_timestructs.h \
175         test-libntp.h   \
176         $(NULL)
177
178 ###
179
180 test_a_md5encrypt_CFLAGS =              \
181         -I$(top_srcdir)/sntp/unity      \
182         $(NULL)
183
184 test_a_md5encrypt_LDADD =               \
185         $(unity_tests_LDADD)            \
186         $(NULL)
187
188 test_a_md5encrypt_SOURCES =             \
189         a_md5encrypt.c                  \
190         run-a_md5encrypt.c              \
191         $(NULL)
192
193 $(srcdir)/run-a_md5encrypt.c: $(srcdir)/a_md5encrypt.c $(std_unity_list)
194         $(run_unity) a_md5encrypt.c run-a_md5encrypt.c
195
196 ###
197
198 test_atoint_CFLAGS =                    \
199         -I$(top_srcdir)/sntp/unity      \
200         $(NULL)
201
202 test_atoint_LDADD =                     \
203         $(unity_tests_LDADD)            \
204         $(NULL)
205
206 test_atoint_SOURCES =                   \
207         atoint.c                        \
208         run-atoint.c                    \
209         $(NULL)
210
211 $(srcdir)/run-atoint.c: $(srcdir)/atoint.c $(std_unity_list)
212         $(run_unity) atoint.c run-atoint.c
213
214 ###
215
216 test_atouint_CFLAGS =                   \
217         -I$(top_srcdir)/sntp/unity      \
218         $(NULL)
219
220 test_atouint_LDADD =                    \
221         $(unity_tests_LDADD)            \
222         $(NULL)
223
224 test_atouint_SOURCES =                  \
225         atouint.c                       \
226         run-atouint.c                   \
227         $(NULL)
228
229 $(srcdir)/run-atouint.c: $(srcdir)/atouint.c $(std_unity_list)
230         $(run_unity) atouint.c run-atouint.c
231
232 ###
233
234 test_authkeys_CFLAGS =                  \
235         -I$(top_srcdir)/sntp/unity      \
236         $(NULL)
237
238 test_authkeys_LDADD =                   \
239         $(unity_tests_LDADD)            \
240         $(NULL)
241
242 test_authkeys_SOURCES =                 \
243         authkeys.c                      \
244         run-authkeys.c                  \
245         $(NULL)
246
247 $(srcdir)/run-authkeys.c: $(srcdir)/authkeys.c $(std_unity_list)
248         $(run_unity) authkeys.c run-authkeys.c
249
250 ###
251
252 test_buftvtots_LDADD =                  \
253         $(unity_tests_LDADD)            \
254         $(NULL)
255
256 test_buftvtots_SOURCES =                \
257         buftvtots.c                     \
258         run-buftvtots.c                 \
259         $(NULL)
260
261 test_buftvtots_CFLAGS =                 \
262         -I$(top_srcdir)/sntp/unity      \
263         -DUNITY_INCLUDE_DOUBLE          \
264         $(NULL)
265
266 $(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
267         $(run_unity) buftvtots.c run-buftvtots.c
268
269 ###
270
271 test_calendar_CFLAGS =                  \
272         -I$(top_srcdir)/sntp/unity      \
273         $(NULL)
274
275 test_calendar_LDADD =                   \
276         $(unity_tests_LDADD)            \
277         $(NULL)
278
279 test_calendar_SOURCES =                 \
280         calendar.c                      \
281         run-calendar.c                  \
282         test-libntp.c                   \
283         $(NULL)
284
285 $(srcdir)/run-calendar.c: $(srcdir)/calendar.c $(std_unity_list)
286         $(run_unity) calendar.c run-calendar.c
287
288 ###
289
290 test_caltontp_CFLAGS =                  \
291         -I$(top_srcdir)/sntp/unity      \
292         $(NULL)
293
294 test_caltontp_LDADD =                   \
295         $(unity_tests_LDADD)            \
296         -lpthread                       \
297         $(NULL)
298
299 test_caltontp_SOURCES =                 \
300         caltontp.c                      \
301         run-caltontp.c                  \
302         $(NULL)
303
304 $(srcdir)/run-caltontp.c: $(srcdir)/caltontp.c $(std_unity_list)
305         $(run_unity) caltontp.c run-caltontp.c
306
307 ###
308
309 test_caljulian_CFLAGS =                 \
310         -I$(top_srcdir)/sntp/unity      \
311         $(NULL)
312
313 test_caljulian_LDADD =                  \
314         $(unity_tests_LDADD)            \
315         -lpthread                       \
316         $(NULL)
317
318 test_caljulian_SOURCES =                \
319         caljulian.c                     \
320         run-caljulian.c                 \
321         test-libntp.c                   \
322         $(NULL)
323
324 $(srcdir)/run-caljulian.c: $(srcdir)/caljulian.c $(std_unity_list)
325         $(run_unity) caljulian.c run-caljulian.c
326
327 ###
328
329 test_calyearstart_CFLAGS =              \
330         -I$(top_srcdir)/sntp/unity      \
331         $(NULL)
332
333 test_calyearstart_LDADD =               \
334         $(unity_tests_LDADD)            \
335         $(NULL)
336
337 test_calyearstart_SOURCES =             \
338         calyearstart.c                  \
339         run-calyearstart.c              \
340         test-libntp.c                   \
341         $(NULL)
342
343 $(srcdir)/run-calyearstart.c: $(srcdir)/calyearstart.c $(std_unity_list)
344         $(run_unity) calyearstart.c run-calyearstart.c
345
346 ###
347
348 test_clocktime_CFLAGS =                 \
349         -I$(top_srcdir)/sntp/unity      \
350         $(NULL)
351
352 test_clocktime_LDADD =                  \
353         $(unity_tests_LDADD)            \
354         $(NULL)
355
356 test_clocktime_SOURCES =                \
357         clocktime.c                     \
358         run-clocktime.c                 \
359         test-libntp.c                   \
360         $(NULL)
361
362 $(srcdir)/run-clocktime.c: $(srcdir)/clocktime.c $(std_unity_list)
363         $(run_unity) clocktime.c run-clocktime.c
364
365 ###
366
367 test_decodenetnum_CFLAGS =              \
368         -I$(top_srcdir)/sntp/unity      \
369         $(NULL)
370
371 test_decodenetnum_LDADD =               \
372         $(unity_tests_LDADD)            \
373         -lpthread                       \
374         $(NULL)
375
376 test_decodenetnum_SOURCES =             \
377         decodenetnum.c                  \
378         run-decodenetnum.c              \
379         $(NULL)
380
381 $(srcdir)/run-decodenetnum.c: $(srcdir)/decodenetnum.c $(std_unity_list)
382         $(run_unity) decodenetnum.c run-decodenetnum.c
383
384 ###
385
386 test_hextoint_CFLAGS =                  \
387         -I$(top_srcdir)/sntp/unity      \
388         $(NULL)
389
390 test_hextoint_LDADD =                   \
391         $(unity_tests_LDADD)            \
392         $(NULL)
393
394 test_hextoint_SOURCES =                 \
395         hextoint.c                      \
396         run-hextoint.c                  \
397         $(NULL)
398
399 $(srcdir)/run-hextoint.c: $(srcdir)/hextoint.c $(std_unity_list)
400         $(run_unity) hextoint.c run-hextoint.c
401
402 ###
403
404 test_hextolfp_CFLAGS =                  \
405         -I$(top_srcdir)/sntp/unity      \
406         $(NULL)
407
408 test_hextolfp_LDADD =                   \
409         $(unity_tests_LDADD)            \
410         $(NULL)
411
412 test_hextolfp_SOURCES =                 \
413         hextolfp.c                      \
414         run-hextolfp.c                  \
415         $(NULL)
416
417 $(srcdir)/run-hextolfp.c: $(srcdir)/hextolfp.c $(std_unity_list)
418         $(run_unity) hextolfp.c run-hextolfp.c
419
420 ###
421
422 test_humandate_CFLAGS =                 \
423         -I$(top_srcdir)/sntp/unity      \
424         $(NULL)
425
426 test_humandate_LDADD =                  \
427         $(unity_tests_LDADD)            \
428         $(NULL)
429
430 test_humandate_SOURCES =                \
431         humandate.c                     \
432         run-humandate.c                 \
433         $(NULL)
434
435 $(srcdir)/run-humandate.c: $(srcdir)/humandate.c $(std_unity_list)
436         $(run_unity) humandate.c run-humandate.c
437
438 ###
439
440 test_lfpfunc_CFLAGS =                   \
441         -I$(top_srcdir)/sntp/unity      \
442         -DUNITY_INCLUDE_DOUBLE          \
443         $(NULL)
444
445 test_lfpfunc_LDADD =                    \
446         $(unity_tests_LDADD)            \
447         $(NULL)
448
449 test_lfpfunc_SOURCES =                  \
450         lfpfunc.c                       \
451         run-lfpfunc.c                   \
452         $(NULL)
453
454 $(srcdir)/run-lfpfunc.c: $(srcdir)/lfpfunc.c $(std_unity_list)
455         $(run_unity) lfpfunc.c run-lfpfunc.c
456
457 ###
458
459 test_lfptostr_CFLAGS =                  \
460         -I$(top_srcdir)/sntp/unity      \
461         $(NULL)
462
463 test_lfptostr_LDADD =                   \
464         $(unity_tests_LDADD)            \
465         $(NULL)
466
467 test_lfptostr_SOURCES =                 \
468         lfptostr.c                      \
469         run-lfptostr.c                  \
470         $(NULL)
471
472 $(srcdir)/run-lfptostr.c: $(srcdir)/lfptostr.c $(std_unity_list)
473         $(run_unity) lfptostr.c run-lfptostr.c
474
475 ###
476
477 test_modetoa_CFLAGS =                   \
478         -I$(top_srcdir)/sntp/unity      \
479         $(NULL)
480
481 test_modetoa_LDADD =                    \
482         $(unity_tests_LDADD)            \
483         $(NULL)
484
485 test_modetoa_SOURCES =                  \
486         modetoa.c                       \
487         run-modetoa.c                   \
488         $(NULL)
489
490 $(srcdir)/run-modetoa.c: $(srcdir)/modetoa.c $(std_unity_list)
491         $(run_unity) modetoa.c run-modetoa.c
492
493 ###
494
495 test_msyslog_CFLAGS =                   \
496         -I$(top_srcdir)/sntp/unity      \
497         $(NULL)
498
499 test_msyslog_LDADD =                    \
500         $(unity_tests_LDADD)            \
501         $(NULL)
502
503 test_msyslog_SOURCES =                  \
504         msyslog.c                       \
505         run-msyslog.c                   \
506         $(NULL)
507
508 $(srcdir)/run-msyslog.c: $(srcdir)/msyslog.c $(std_unity_list)
509         $(run_unity) msyslog.c run-msyslog.c
510
511 ###
512
513 test_netof_CFLAGS =                     \
514         -I$(top_srcdir)/sntp/unity      \
515         $(NULL)
516
517 test_netof_LDADD =                      \
518         $(unity_tests_LDADD)            \
519         $(NULL)
520
521 test_netof_SOURCES =                    \
522         netof.c                         \
523         run-netof.c                     \
524         $(NULL)
525
526 $(srcdir)/run-netof.c: $(srcdir)/netof.c $(std_unity_list)
527         $(run_unity) netof.c run-netof.c
528
529 ###
530
531 test_numtoa_CFLAGS =                    \
532         -I$(top_srcdir)/sntp/unity      \
533         $(NULL)
534
535 test_numtoa_LDADD =                     \
536         $(unity_tests_LDADD)            \
537         $(NULL)
538
539 test_numtoa_SOURCES =                   \
540         numtoa.c                        \
541         run-numtoa.c                    \
542         $(NULL)
543
544 $(srcdir)/run-numtoa.c: $(srcdir)/numtoa.c $(std_unity_list)
545         $(run_unity) numtoa.c run-numtoa.c
546
547 ###
548
549 test_numtohost_CFLAGS =                 \
550         -I$(top_srcdir)/sntp/unity      \
551         $(NULL)
552
553 test_numtohost_LDADD =                  \
554         $(unity_tests_LDADD)            \
555         $(NULL)
556
557 test_numtohost_SOURCES =                \
558         numtohost.c                     \
559         run-numtohost.c                 \
560         $(NULL)
561
562 $(srcdir)/run-numtohost.c: $(srcdir)/numtohost.c $(std_unity_list)
563         $(run_unity) numtohost.c run-numtohost.c
564
565 ###
566
567 test_octtoint_CFLAGS =                  \
568         -I$(top_srcdir)/sntp/unity      \
569         $(NULL)
570
571 test_octtoint_LDADD =                   \
572         $(unity_tests_LDADD)            \
573         $(NULL)
574
575 test_octtoint_SOURCES =                 \
576         octtoint.c                      \
577         run-octtoint.c                  \
578         $(NULL)
579
580 $(srcdir)/run-octtoint.c: $(srcdir)/octtoint.c $(std_unity_list)
581         $(run_unity) octtoint.c run-octtoint.c
582
583 ###
584
585 test_prettydate_CFLAGS =                \
586         -I$(top_srcdir)/sntp/unity      \
587         $(NULL)
588
589 test_prettydate_LDADD =                 \
590         $(unity_tests_LDADD)            \
591         $(NULL)
592
593 test_prettydate_SOURCES =               \
594         prettydate.c                    \
595         run-prettydate.c                \
596         $(NULL)
597
598 $(srcdir)/run-prettydate.c: $(srcdir)/prettydate.c $(std_unity_list)
599         $(run_unity) prettydate.c run-prettydate.c
600
601 ###
602
603 test_recvbuff_CFLAGS =                  \
604         -I$(top_srcdir)/sntp/unity      \
605         $(NULL)
606
607 test_recvbuff_LDADD =                   \
608         $(unity_tests_LDADD)            \
609         $(NULL)
610
611 test_recvbuff_SOURCES =                 \
612         recvbuff.c                      \
613         run-recvbuff.c                  \
614         $(NULL)
615
616 $(srcdir)/run-recvbuff.c: $(srcdir)/recvbuff.c $(std_unity_list)
617         $(run_unity) recvbuff.c run-recvbuff.c
618
619 ###
620
621 test_refidsmear_CFLAGS =                \
622         -I$(top_srcdir)/sntp/unity      \
623         $(NULL)
624
625 test_refidsmear_LDADD =                 \
626         $(unity_tests_LDADD)            \
627         $(NULL)
628
629 test_refidsmear_SOURCES =               \
630         refidsmear.c                    \
631         run-refidsmear.c                \
632         $(NULL)
633
634 $(srcdir)/run-refidsmear.c: $(srcdir)/refidsmear.c $(std_unity_list)
635         $(run_unity) refidsmear.c run-refidsmear.c
636
637 ###
638
639 test_refnumtoa_CFLAGS =                         \
640         -I$(top_srcdir)/sntp/unity              \
641         $(NULL)
642
643 test_refnumtoa_LDADD =                  \
644         $(unity_tests_LDADD)            \
645         $(NULL)
646
647 test_refnumtoa_SOURCES =                \
648         refnumtoa.c                     \
649         run-refnumtoa.c                 \
650         $(NULL)
651
652 $(srcdir)/run-refnumtoa.c: $(srcdir)/refnumtoa.c $(std_unity_list)
653         $(run_unity) refnumtoa.c run-refnumtoa.c
654
655 ###
656
657 test_sfptostr_CFLAGS =                  \
658         -I$(top_srcdir)/sntp/unity      \
659         -DUNITY_INCLUDE_DOUBLE          \
660         $(NULL)
661
662 test_sfptostr_LDADD =                   \
663         $(unity_tests_LDADD)            \
664         $(NULL)
665
666 test_sfptostr_SOURCES =                 \
667         sfptostr.c                      \
668         run-sfptostr.c                  \
669         $(NULL)
670
671 $(srcdir)/run-sfptostr.c: $(srcdir)/sfptostr.c $(std_unity_list)
672         $(run_unity) sfptostr.c run-sfptostr.c
673
674 ###
675
676 test_socktoa_CFLAGS =                   \
677         -I$(top_srcdir)/sntp/unity      \
678         $(NULL)
679
680 test_socktoa_LDADD =                    \
681         $(unity_tests_LDADD)            \
682         $(NULL)
683
684 test_socktoa_SOURCES =                  \
685         socktoa.c                       \
686         run-socktoa.c                   \
687         $(NULL)
688
689 $(srcdir)/run-socktoa.c: $(srcdir)/socktoa.c $(std_unity_list)
690         $(run_unity) socktoa.c run-socktoa.c
691
692 ###
693
694 test_ssl_init_CFLAGS =                  \
695         -I$(top_srcdir)/sntp/unity      \
696         $(NULL)
697
698 test_ssl_init_LDADD =                   \
699         $(unity_tests_LDADD)            \
700         $(NULL)
701
702 test_ssl_init_SOURCES =                 \
703         ssl_init.c                      \
704         run-ssl_init.c                  \
705         $(NULL)
706
707 $(srcdir)/run-ssl_init.c: $(srcdir)/ssl_init.c $(std_unity_list)
708         $(run_unity) ssl_init.c run-ssl_init.c
709
710 ###
711
712 test_statestr_CFLAGS =                  \
713         -I$(top_srcdir)/sntp/unity      \
714         $(NULL)
715
716 test_statestr_LDADD =                   \
717         $(unity_tests_LDADD)            \
718         $(NULL)
719
720 test_statestr_SOURCES =                 \
721         statestr.c                      \
722         run-statestr.c                  \
723         $(NULL)
724
725 $(srcdir)/run-statestr.c: $(srcdir)/statestr.c $(std_unity_list)
726         $(run_unity) statestr.c run-statestr.c
727
728 ###
729
730 test_strtolfp_CFLAGS =                  \
731         -I$(top_srcdir)/sntp/unity      \
732         $(NULL)
733
734 test_strtolfp_LDADD =                   \
735         $(unity_tests_LDADD)            \
736         -lpthread                       \
737         $(NULL)
738
739 test_strtolfp_SOURCES =                 \
740         strtolfp.c                      \
741         run-strtolfp.c                  \
742         $(NULL)
743
744 $(srcdir)/run-strtolfp.c: $(srcdir)/strtolfp.c $(std_unity_list)
745         $(run_unity) strtolfp.c run-strtolfp.c
746
747 ###
748
749 test_timespecops_CFLAGS =               \
750         -I$(top_srcdir)/sntp/unity      \
751         $(NULL)
752
753 test_timespecops_LDADD =                \
754         $(unity_tests_LDADD)            \
755         $(NULL)
756
757 test_timespecops_SOURCES =              \
758         timespecops.c                   \
759         run-timespecops.c               \
760         $(NULL)
761
762 $(srcdir)/run-timespecops.c: $(srcdir)/timespecops.c $(std_unity_list)
763         $(run_unity) timespecops.c run-timespecops.c
764
765 ###
766
767 test_timevalops_CFLAGS =                \
768         -I$(top_srcdir)/sntp/unity      \
769         $(NULL)
770
771 test_timevalops_LDADD =                 \
772         $(unity_tests_LDADD)            \
773         $(NULL)
774
775 test_timevalops_SOURCES =               \
776         timevalops.c                    \
777         run-timevalops.c                \
778         $(NULL)
779
780 $(srcdir)/run-timevalops.c: $(srcdir)/timevalops.c $(std_unity_list)
781         $(run_unity) timevalops.c run-timevalops.c
782
783 ###
784
785 test_tstotv_CFLAGS =                    \
786         -I$(top_srcdir)/sntp/unity      \
787         $(NULL)
788
789 test_tstotv_LDADD =                     \
790         $(unity_tests_LDADD)            \
791         $(NULL)
792
793 test_tstotv_SOURCES =                   \
794         tstotv.c                        \
795         run-tstotv.c                    \
796         $(NULL)
797
798 $(srcdir)/run-tstotv.c: $(srcdir)/tstotv.c $(std_unity_list)
799         $(run_unity) tstotv.c run-tstotv.c
800
801 ###
802
803 test_tvtots_CFLAGS =                    \
804         -I$(top_srcdir)/sntp/unity      \
805         -DUNITY_INCLUDE_DOUBLE          \
806         $(NULL)
807
808 test_tvtots_LDADD =                     \
809         $(unity_tests_LDADD)            \
810         $(NULL)
811
812 test_tvtots_SOURCES =                   \
813         tvtots.c                        \
814         run-tvtots.c                    \
815         $(NULL)
816
817 $(srcdir)/run-tvtots.c: $(srcdir)/tvtots.c $(std_unity_list)
818         $(run_unity) tvtots.c run-tvtots.c
819
820 ###
821
822 test_uglydate_CFLAGS =                  \
823         -I$(top_srcdir)/sntp/unity      \
824         $(NULL)
825
826 test_uglydate_LDADD =                   \
827         $(unity_tests_LDADD)            \
828         $(NULL)
829
830 test_uglydate_SOURCES =                 \
831         uglydate.c                      \
832         run-uglydate.c                  \
833         $(NULL)
834
835 $(srcdir)/run-uglydate.c: $(srcdir)/uglydate.c $(std_unity_list)
836         $(run_unity) uglydate.c run-uglydate.c
837
838 ###
839
840 test_vi64ops_CFLAGS =                   \
841         -I$(top_srcdir)/sntp/unity      \
842         $(NULL)
843
844 test_vi64ops_LDADD =                    \
845         $(unity_tests_LDADD)            \
846         $(NULL)
847
848 test_vi64ops_SOURCES =                  \
849         vi64ops.c                       \
850         run-vi64ops.c                   \
851         $(NULL)
852
853 $(srcdir)/run-vi64ops.c: $(srcdir)/vi64ops.c $(std_unity_list)
854         $(run_unity) vi64ops.c run-vi64ops.c
855
856 ###
857
858 test_ymd2yd_CFLAGS =                    \
859         -I$(top_srcdir)/sntp/unity      \
860         $(NULL)
861
862 test_ymd2yd_LDADD =                     \
863         $(unity_tests_LDADD)            \
864         $(NULL)
865
866 test_ymd2yd_SOURCES =                   \
867         ymd2yd.c                        \
868         run-ymd2yd.c                    \
869         $(NULL)
870
871 $(srcdir)/run-ymd2yd.c: $(srcdir)/ymd2yd.c $(std_unity_list)
872         $(run_unity) ymd2yd.c run-ymd2yd.c
873
874 ###
875
876 TESTS =
877
878 if !NTP_CROSSCOMPILE
879 TESTS += $(check_PROGRAMS)
880 endif
881
882 ## check-libntp.mf - automake fragment
883 ## slightly adapted for deeper directory
884
885 BUILT_SOURCES   += check-libntp check-libunity
886 CLEANFILES      += check-libntp check-libunity
887
888 check-libntp: ../../libntp/libntp.a
889         @echo stamp > $@
890
891 ../../libntp/libntp.a:
892         cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
893
894 check-libunity: ../../sntp/unity/libunity.a
895         @echo stamp > $@
896
897 ../../sntp/unity/libunity.a:
898         cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
899
900 include $(top_srcdir)/depsver.mf
901 include $(top_srcdir)/includes.mf