summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/Makefile.am
blob: 5ada4c4eb9a6f4596ab605b56d988578cf6db59f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
#
# Library Testsuite
#

ACLOCAL_AMFLAGS = -I ../aclocal

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am

lib_tests =
lib_screens =
lib_docs =

support_includes = -I$(top_srcdir)/../support/include
test_includes = -I$(top_srcdir)/support

if TEST_block01
lib_tests += block01
lib_screens += block01/block01.scn
lib_docs += block01/block01.doc
block01_SOURCES = block01/init.c
block01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block01) \
	$(support_includes)
endif

if TEST_block02
lib_tests += block02
lib_screens += block02/block02.scn
lib_docs += block02/block02.doc
block02_SOURCES = block02/init.c
block02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block02) \
	$(support_includes)
endif

if TEST_block03
lib_tests += block03
lib_screens += block03/block03.scn
lib_docs += block03/block03.doc
block03_SOURCES = block03/init.c
block03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block03) \
	$(support_includes)
endif

if TEST_block04
lib_tests += block04
lib_screens += block04/block04.scn
lib_docs += block04/block04.doc
block04_SOURCES = block04/init.c
block04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block04) \
	$(support_includes)
endif

if TEST_block05
lib_tests += block05
lib_screens += block05/block05.scn
lib_docs += block05/block05.doc block05/block05.png
block05_SOURCES = block05/init.c
block05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block05) \
	$(support_includes)
endif

if TEST_block06
lib_tests += block06
lib_screens += block06/block06.scn
lib_docs += block06/block06.doc
block06_SOURCES = block06/init.c
block06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block06) \
	$(support_includes)
endif

if TEST_block07
lib_tests += block07
lib_screens += block07/block07.scn
lib_docs += block07/block07.doc
block07_SOURCES = block07/init.c
block07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block07) \
	$(support_includes)
endif

if TEST_block08
lib_tests += block08
lib_screens += block08/block08.scn
lib_docs += block08/block08.doc
block08_SOURCES = block08/init.c block08/system.h \
	block08/bdbuf_tests.c block08/bdbuf_tests.h block08/test_disk.c \
	block08/bdbuf_test1_1.c block08/bdbuf_test1_2.c \
	block08/bdbuf_test1_3.c block08/bdbuf_test1_4.c \
	block08/bdbuf_test1_5.c block08/bdbuf_test2_1.c \
	block08/bdbuf_test2_2.c block08/bdbuf_test3_1.c \
	block08/bdbuf_test3_2.c block08/bdbuf_test3_3.c \
	block08/bdbuf_test4_1.c block08/bdbuf_test4_2.c \
	block08/bdbuf_test4_3.c
block08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block08) \
	$(support_includes)
endif

if TEST_block09
lib_tests += block09
lib_screens += block09/block09.scn
lib_docs += block09/block09.doc
block09_SOURCES = block09/init.c
block09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block09) \
	$(support_includes)
endif

if TEST_block10
lib_tests += block10
lib_screens += block10/block10.scn
lib_docs += block10/block10.doc block10/block10.png
block10_SOURCES = block10/init.c
block10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block10) \
	$(support_includes)
endif

if TEST_block11
lib_tests += block11
lib_screens += block11/block11.scn
lib_docs += block11/block11.doc
block11_SOURCES = block11/init.c
block11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block11) \
	$(support_includes)
endif

if TEST_block12
lib_tests += block12
lib_screens += block12/block12.scn
lib_docs += block12/block12.doc
block12_SOURCES = block12/init.c
block12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block12) \
	$(support_includes)
endif

if TEST_block13
lib_tests += block13
lib_screens += block13/block13.scn
lib_docs += block13/block13.doc
block13_SOURCES = block13/init.c
block13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block13) \
	$(support_includes)
endif

if TEST_block14
lib_tests += block14
lib_screens += block14/block14.scn
lib_docs += block14/block14.doc
block14_SOURCES = block14/init.c
block14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block14) \
	$(support_includes)
endif

if TEST_block15
lib_tests += block15
lib_screens += block15/block15.scn
lib_docs += block15/block15.doc
block15_SOURCES = block15/init.c
block15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block15) \
	$(support_includes)
endif

if TEST_block16
lib_tests += block16
lib_screens += block16/block16.scn
lib_docs += block16/block16.doc
block16_SOURCES = block16/init.c
block16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block16) \
	$(support_includes)
endif

if TEST_block17
lib_tests += block17
lib_screens += block17/block17.scn
lib_docs += block17/block17.doc
block17_SOURCES = block17/init.c
block17_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block17) \
	$(support_includes)
endif

if TEST_bspcmdline01
lib_tests += bspcmdline01
lib_screens += bspcmdline01/bspcmdline01.scn
lib_docs += bspcmdline01/bspcmdline01.doc
bspcmdline01_SOURCES = bspcmdline01/init.c
bspcmdline01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_bspcmdline01) \
	$(support_includes)
endif

if TEST_calloc
lib_tests += calloc.norun
calloc_norun_SOURCES = POSIX/calloc.c
calloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_capture01
lib_tests += capture01
lib_screens += capture01/capture01.scn
lib_docs += capture01/capture01.doc
capture01_SOURCES = capture01/init.c capture01/test1.c \
	capture01/system.h
capture01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_capture01) \
	$(support_includes)
endif

if TEST_clock_gettime
lib_tests += clock_gettime.norun
clock_gettime_norun_SOURCES = POSIX/clock_gettime.c
clock_gettime_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_close
lib_tests += close.norun
close_norun_SOURCES = POSIX/close.c
close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_complex
lib_tests += complex
lib_screens += complex/complex.scn
complex_SOURCES = complex/init.c complex/docomplex.c \
	complex/docomplexf.c complex/docomplexl.c
complex_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_complex) \
	$(support_includes)
complex_LDADD = -lm $(LDADD)
endif

if TEST_cpuuse
lib_tests += cpuuse
lib_screens += cpuuse/cpuuse.scn
cpuuse_SOURCES = cpuuse/init.c cpuuse/task1.c cpuuse/task2.c \
	cpuuse/task3.c cpuuse/tswitch.c cpuuse/system.h
cpuuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_cpuuse) \
	$(support_includes)
endif

if TEST_crypt01
lib_tests += crypt01
lib_screens += crypt01/crypt01.scn
lib_docs += crypt01/crypt01.doc
crypt01_SOURCES = crypt01/init.c
crypt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_crypt01) \
	$(support_includes)
endif

if DEBUGGERTESTS
if TEST_debugger01
lib_tests += debugger01
lib_screens += debugger01/debugger01.scn
debugger01_SOURCES = debugger01/init.c debugger01/remote.c \
	debugger01/system.h
debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \
	$(support_includes)
debugger01_LDADD = $(RTEMS_ROOT)cpukit/libdebugger.a $(LDADD)
endif
endif

if TEST_defaultconfig01
lib_tests += defaultconfig01
lib_screens += defaultconfig01/defaultconfig01.scn
lib_docs += defaultconfig01/defaultconfig01.doc
defaultconfig01_SOURCES = defaultconfig01/init.c
defaultconfig01_CPPFLAGS = $(AM_CPPFLAGS) \
	$(TEST_FLAGS_defaultconfig01) $(support_includes)
defaultconfig01_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_devfs01
lib_tests += devfs01
lib_screens += devfs01/devfs01.scn
lib_docs += devfs01/devfs01.doc
devfs01_SOURCES = devfs01/init.c
devfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs01) \
	$(support_includes)
endif

if TEST_devfs02
lib_tests += devfs02
lib_screens += devfs02/devfs02.scn
lib_docs += devfs02/devfs02.doc
devfs02_SOURCES = devfs02/init.c
devfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs02) \
	$(support_includes)
endif

if TEST_devfs03
lib_tests += devfs03
lib_screens += devfs03/devfs03.scn
lib_docs += devfs03/devfs03.doc
devfs03_SOURCES = devfs03/init.c
devfs03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs03) \
	$(support_includes)
endif

if TEST_devfs04
lib_tests += devfs04
lib_screens += devfs04/devfs04.scn
lib_docs += devfs04/devfs04.doc
devfs04_SOURCES = devfs04/init.c devfs04/test_driver.c \
	devfs04/test_driver.h
devfs04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs04) \
	$(support_includes)
endif

if TEST_deviceio01
lib_tests += deviceio01
lib_screens += deviceio01/deviceio01.scn
lib_docs += deviceio01/deviceio01.doc
deviceio01_SOURCES = deviceio01/init.c deviceio01/test_driver.c \
	deviceio01/test_driver.h
deviceio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_deviceio01) \
	$(support_includes)
endif

if TEST_devnullfatal01
lib_tests += devnullfatal01
lib_screens += devnullfatal01/devnullfatal01.scn
lib_docs += devnullfatal01/devnullfatal01.doc
devnullfatal01_SOURCES = ../sptests/spfatal_support/init.c \
	../sptests/spfatal_support/system.h devnullfatal01/testcase.h
devnullfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devnullfatal01) \
	$(support_includes) -I$(top_srcdir)/../../sptests/spfatal_support \
	-I$(top_srcdir)/devnullfatal01
endif

if DLTESTS
if TEST_dl01
lib_tests += dl01
lib_screens += dl01/dl01.scn
lib_docs += dl01/dl01.doc
dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h
dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes)
dl01/init.c: dl01-tar.o
dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES)
	@rm -f dl01.pre
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl01-o1.o: dl01/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl01.tar: dl01-o1.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $<
dl01-tar.c: dl01.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl01-tar.h: dl01.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl01-tar.o: dl01-tar.c dl01-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl01-sym.o: dl01.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl01$(EXEEXT):  $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h
endif
endif

if DLTESTS
if TEST_dl02
lib_tests += dl02
lib_screens += dl02/dl02.scn
lib_docs += dl02/dl02.doc
dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h
dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes)
dl02/init.c: dl02-tar.o
dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES)
	@rm -f dl02.pre
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl02-o1.o: dl02/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl02-o2.o: dl02/dl-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl02.tar: dl02-o1.o dl02-o2.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $+
dl02-tar.c: dl02.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl02-tar.h: dl02.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl02-tar.o: dl02-tar.c dl02-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl02-sym.o: dl02.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl02$(EXEEXT):  $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h
endif
endif

if DLTESTS
if TEST_dl03
lib_tests += dl03
lib_screens += dl03/dl03.scn
lib_docs += dl03/dl03.doc
dl03_SOURCES = dl03/init.c dl03/dl-cache.c dl03/dl-bit-alloc.c
dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes) \
	-I$(top_srcdir)/../../cpukit/libdl
endif
endif

if DLTESTS
if HAS_CXX
if TEST_dl04
lib_tests += dl04
lib_screens += dl04/dl04.scn
lib_docs += dl04/dl04.doc
dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \
	dl04-tar.h
dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes)
dl04/init.c: dl04-tar.o
dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
	@rm -f dl04.pre
	$(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl04-o4.o: dl04/dl-o4.cpp Makefile
	$(AM_V_GEN)$(CXXCOMPILE) -c -o $@ $<
dl04.tar: dl04-o4.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $<
dl04-tar.c: dl04.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl04-tar.h: dl04.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl04-tar.o: dl04-tar.c dl04-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl04-sym.o: dl04.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl04$(EXEEXT):  $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o
	@rm -f $@
	$(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h
endif
endif
endif

if DLTESTS
if HAS_CXX
if TEST_dl05
lib_tests += dl05
lib_screens += dl05/dl05.scn
lib_docs += dl05/dl05.doc
dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \
	dl05-tar.h
dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes)
dl05/init.c: dl05-tar.o
dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
	@rm -f dl05.pre dl05-sym.o
	$(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl05-o5.o: dl05/dl-o5.cpp
	$(AM_V_CXX)$(CXXCOMPILE) -c -o $@ $<
dl05.tar: dl05-o5.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $<
dl05-tar.c: dl05.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl05-tar.h: dl05.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl05-tar.o: dl05-tar.c dl05-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl05-sym.o: dl05.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
	@rm -f $@
	$(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h
endif
endif
endif

if DLTESTS
if TEST_dl06
lib_tests += dl06
lib_screens += dl06/dl06.scn
lib_docs += dl06/dl06.doc
dl06_SOURCES = dl06/init.c dl06/dl-load.c dl06-tar.c dl06-tar.h
dl06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl06) $(support_includes)
dl06/init.c: dl06-tar.o
dl06-pre.tar: Makefile
	$(AM_V_at)echo "Something in a file" > dl06_pre_file
	$(AM_V_GEN)$(PAX) -w -f $@ dl06_pre_file
dl06-pre-tar.c: dl06-pre.tar
	$(AM_V_GEN)$(BIN2C) -N dl06_tar -C $< $@
dl06-pre-tar.h: dl06-pre.tar
	$(AM_V_GEN)$(BIN2C) -N dl06_tar -H $< $@
dl06-pre-tar.o: dl06-pre-tar.c dl06-pre-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl06-pre-init.o: dl06-pre-tar.o
	$(AM_V_CC)$(COMPILE)  $(dl06_CPPFLAGS) $(CPU_CFLAGS) $(AM_CFLAGS) \
	  -c -o $@ $(srcdir)/dl06/pre-init.c
dl06.pre: dl06-pre-init.o dl06/dl06-dl-load.o dl06-pre-tar.o
	@rm -f $@ dl06-sym.o
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ $(LDADD)
dl06-o1.o: dl06/dl06-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl06-o2.o: dl06/dl06-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl06.rap: dl06.pre dl06-o1.o dl06-o2.o
	$(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) \
	  -C $(CC) -c "$(CPU_CFLAGS)" \
	  -O rap -b $< -e rtems_main -s \
	  -o $@ $(filter-out dl06.pre,$+) -lm
dl06.tar: dl06.rap
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $<
dl06-tar.c: dl06.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl06-tar.h: dl06.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl06-tar.o: dl06-tar.c dl06-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl06-sym.o: dl06.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ $(LDADD)
CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h
endif
endif

if DLTESTS
if TEST_dl07
lib_tests += dl07
lib_screens += dl07/dl07.scn
lib_docs += dl07/dl07.doc
dl07_SOURCES = dl07/init.c dl07/dl-load.c dl07-tar.c dl07-tar.h
dl07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl07) $(support_includes)
dl07/init.c: dl07-tar.o
dl07.pre: $(dl07_OBJECTS) $(dl07_DEPENDENCIES)
	@rm -f dl07.pre dl07-sym.o
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl07-o1.o: dl07/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl07-o2.o: dl07/dl-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl07-o3.o: dl07/dl-o3.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl07-o4.o: dl07/dl-o4.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl07-o5.o: dl07/dl-o5.c Makefile
	$(AM_V_CC) $(COMPILE) -c -o $@ $<
dl07.tar: dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $+
dl07-tar.c: dl07.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl07-tar.h: dl07.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl07-tar.o: dl07-tar.c dl07-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl07-sym.o: dl07.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl07$(EXEEXT):  $(dl07_OBJECTS) $(dl07_DEPENDENCIES) dl07-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl07.pre dl07-sym.o dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o \
		dl07-o5.o dl07.tar dl07-tar.h
endif
endif

if DLTESTS
if TEST_dl08
lib_tests += dl08
lib_screens += dl08/dl08.scn
lib_docs += dl08/dl08.doc
dl08_SOURCES = dl08/init.c dl08/dl-load.c dl08-tar.c dl08-tar.h
dl08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl08) $(support_includes)
dl08/init.c: dl08-tar.o
dl08.pre: $(dl08_OBJECTS) $(dl08_DEPENDENCIES)
	@rm -f dl08.pre dl08-syms.o
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl08-o1.o: dl08/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-o2.o: dl08/dl-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-o3.o: dl08/dl-o3.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-o4.o: dl08/dl-o4.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-o5.o: dl08/dl-o5.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-o6-123456789-123456789.o: dl08/dl-o6-123456789-123456789.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
etc/libdl.conf:
	mkdir etc; \
	echo "#" > etc/libdl.conf
	echo "  # blah blah" >> etc/libdl.conf
	echo "/libdl08*.a" >> etc/libdl.conf
	echo "" >> etc/libdl.conf
	echo "x" >> etc/libdl.conf
	echo "" >> etc/libdl.conf
noinst_LIBRARIES = libdl08_1.a libdl08_2.a
libdl08_1_a_SOURCES = dl08-o2.c dl08-o4.c
libdl08_2_a_SOURCES = dl08-o3.c dl08-o5.c \
			dl08-o6-123456789-123456789.c
dl08.tar: etc/libdl.conf dl08-o1.o libdl08_1.a libdl08_2.a
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $+
dl08-tar.c: dl08.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl08-tar.h: dl08.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl08-tar.o: dl08-tar.c dl08-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl08-sym.o: dl08.pre
	$(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
dl08$(EXEEXT):  $(dl08_OBJECTS) $(dl08_DEPENDENCIES) dl08-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl08.pre dl08-sym.o libdl08_1.a libdl08_2.a dl08-o1.o dl08-o2.o \
		dl08-o3.o dl08-o4.o dl08-o5.o dl08-o6-123456789-123456789.o \
		dl08.tar dl08-tar.h etc/libdl.conf
endif
endif

if DLTESTS
if TEST_dl09
lib_tests += dl09
lib_screens += dl09/dl09.scn
lib_docs += dl09/dl09.doc
dl09_SOURCES = dl09/init.c dl09/dl-load.c dl09-tar.c dl09-tar.h
dl09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl09) $(support_includes)
dl09/init.c: dl09-tar.o
dl09.pre: $(dl09_OBJECTS) $(dl09_DEPENDENCIES)
	@rm -f dl09.pre dl09-syms.o
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl09-o1.o: dl09/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09-o2.o: dl09/dl-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09-o3.o: dl09/dl-o3.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09-o4.o: dl09/dl-o4.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09-o5.o: dl09/dl-o5.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09.tar: dl09-o1.o dl09-o2.o dl09-o3.o dl09-o4.o dl09-o5.o
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $+
dl09-tar.c: dl09.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl09-tar.h: dl09.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl09-tar.o: dl09-tar.c dl09-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl09-sym.o: dl09.pre
	$(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
dl09$(EXEEXT):  $(dl09_OBJECTS) $(dl09_DEPENDENCIES) dl09-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl09.pre dl09-sym.o dl09-o1.o dl09-o2.o dl09-o3.o dl09-o4.o \
		dl09-o5.o dl09.tar dl09-tar.h
endif
endif

if DLTESTS
if TEST_dl10
lib_tests += dl10
lib_screens += dl10/dl10.scn
lib_docs += dl10/dl10.doc
dl10_SOURCES = dl10/init.c dl10/dl-load.c dl10-tar.c dl10-tar.h
dl10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl10) $(support_includes)
dl10/init.c: dl10-tar.o
dl10.pre: $(dl10_OBJECTS) $(dl10_DEPENDENCIES)
	@rm -f dl10.pre dl10-syms.o
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
dl10-o1.o: dl10/dl-o1.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-o2.o: dl10/dl-o2.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-o3.o: dl10/dl-o3.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-o4.o: dl10/dl-o4.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-o5.o: dl10/dl-o5.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-o6.o: dl10/dl-o6.c Makefile
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
etc/libdl-dl10.conf:
	mkdir etc; \
	echo "#" > $@
	echo "  # blah blah" >>  $@
	echo "/libdl10*.a" >> $@
	echo "" >> $@
noinst_LIBRARIES = libdl10_1.a libdl10_2.a
libdl10_1_a_SOURCES = dl10-o2.c dl10-o4.c
libdl10_2_a_SOURCES = dl10-o3.c dl10-o5.c dl10-o6.c
dl10.tar: etc/libdl-dl10.conf dl10-o1.o libdl10_1.a libdl10_2.a
	@rm -f $@
	$(AM_V_GEN)$(PAX) -w -f $@ $+
dl10-tar.c: dl10.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
dl10-tar.h: dl10.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
dl10-tar.o: dl10-tar.c dl10-tar.h
	$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl10-sym.o: dl10.pre
	$(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
dl10$(EXEEXT):  $(dl10_OBJECTS) $(dl10_DEPENDENCIES) dl10-sym.o
	@rm -f $@
	$(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
CLEANFILES += dl10.pre dl10-sym.o libdl10_1.a libdl10_2.a dl10-o1.o dl10-o2.o \
		dl10-o3.o dl10-o4.o dl10-o5.o dl10-o6.o \
		dl10.tar dl10-tar.h etc/libdl-dl10.conf
endif
endif

if TEST_dumpbuf01
lib_tests += dumpbuf01
lib_screens += dumpbuf01/dumpbuf01.scn
lib_docs += dumpbuf01/dumpbuf01.doc
dumpbuf01_SOURCES = dumpbuf01/init.c
dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \
	$(support_includes)
endif

if TEST_dup2
lib_tests += dup2.norun
dup2_norun_SOURCES = POSIX/dup2.c
dup2_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_exit01
lib_tests += exit01
lib_screens += exit01/exit01.scn
lib_docs += exit01/exit01.doc
exit01_SOURCES = exit01/init.c
exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \
	$(support_includes)
endif

if TEST_exit02
lib_tests += exit02
lib_screens += exit02/exit02.scn
lib_docs += exit02/exit02.doc
exit02_SOURCES = exit02/init.c
exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \
	$(support_includes)
endif

if TEST_fcntl
lib_tests += fcntl.norun
fcntl_norun_SOURCES = POSIX/fcntl.c
fcntl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_flashdisk01
lib_tests += flashdisk01
lib_screens += flashdisk01/flashdisk01.scn
lib_docs += flashdisk01/flashdisk01.doc
flashdisk01_SOURCES = flashdisk01/init.c \
	flashdisk01/test-file-system.c
flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \
	$(support_includes)
endif

if TEST_flockfile
lib_tests += flockfile.norun
flockfile_norun_SOURCES = POSIX/flockfile.c
flockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_fork
lib_tests += fork.norun
fork_norun_SOURCES = POSIX/fork.c
fork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_free
lib_tests += free.norun
free_norun_SOURCES = POSIX/free.c
free_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_fstat
lib_tests += fstat.norun
fstat_norun_SOURCES = POSIX/fstat.c
fstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if NETTESTS
if TEST_ftp01
lib_tests += ftp01
lib_screens += ftp01/ftp01.scn
lib_docs += ftp01/ftp01.doc
ftp01_SOURCES = ftp01/init.c
ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
ftp01_LDADD = $(RTEMS_ROOT)cpukit/libftpd.a $(RTEMS_ROOT)cpukit/libftpfs.a $(LDADD)
endif
endif

if TEST_ftrylockfile
lib_tests += ftrylockfile.norun
ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c
ftrylockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_funlockfile
lib_tests += funlockfile.norun
funlockfile_norun_SOURCES = POSIX/funlockfile.c
funlockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_getentropy01
lib_tests += getentropy01
lib_screens += getentropy01/getentropy01.scn
lib_docs += getentropy01/getentropy01.doc
getentropy01_SOURCES = getentropy01/init.c
getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \
	$(support_includes)
endif

if TEST_getlogin
lib_tests += getlogin.norun
getlogin_norun_SOURCES = POSIX/getlogin.c
getlogin_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_getpwnam
lib_tests += getpwnam.norun
getpwnam_norun_SOURCES = POSIX/getpwnam.c
getpwnam_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_getpwuid
lib_tests += getpwuid.norun
getpwuid_norun_SOURCES = POSIX/getpwuid.c
getpwuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_gettimeofday
lib_tests += gettimeofday.norun
gettimeofday_norun_SOURCES = POSIX/gettimeofday.c
gettimeofday_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_getuid
lib_tests += getuid.norun
getuid_norun_SOURCES = POSIX/getuid.c
getuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_gxx01
lib_tests += gxx01
lib_screens += gxx01/gxx01.scn
lib_docs += gxx01/gxx01.doc
gxx01_SOURCES = gxx01/init.c
gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \
	$(support_includes)
endif

if TEST_heapwalk
lib_tests += heapwalk
lib_screens += heapwalk/heapwalk.scn
heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h
heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \
	$(support_includes)
endif

if TEST_htonl
lib_tests += htonl.norun
htonl_norun_SOURCES = POSIX/htonl.c
htonl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_i2c01
lib_tests += i2c01
lib_screens += i2c01/i2c01.scn
lib_docs += i2c01/i2c01.doc
i2c01_SOURCES = i2c01/init.c
i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \
	$(support_includes)
endif

if TEST_iconv
lib_tests += iconv.norun
iconv_norun_SOURCES = POSIX/iconv.c
iconv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_iconv_close
lib_tests += iconv_close.norun
iconv_close_norun_SOURCES = POSIX/iconv_close.c
iconv_close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_iconv_open
lib_tests += iconv_open.norun
iconv_open_norun_SOURCES = POSIX/iconv_open.c
iconv_open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_kill
lib_tests += kill.norun
kill_norun_SOURCES = POSIX/kill.c
kill_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_libfdt01
lib_tests += libfdt01
lib_screens += libfdt01/libfdt01.scn
lib_docs += libfdt01/libfdt01.doc
libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c
libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \
	$(support_includes)
endif

if TEST_longjmp
lib_tests += longjmp.norun
longjmp_norun_SOURCES = POSIX/longjmp.c
longjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_lseek
lib_tests += lseek.norun
lseek_norun_SOURCES = POSIX/lseek.c
lseek_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_lstat
lib_tests += lstat.norun
lstat_norun_SOURCES = POSIX/lstat.c
lstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_malloc
lib_tests += malloc.norun
malloc_norun_SOURCES = POSIX/malloc.c
malloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_malloc02
lib_tests += malloc02
lib_screens += malloc02/malloc02.scn
lib_docs += malloc02/malloc02.doc
malloc02_SOURCES = malloc02/init.c
malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \
	$(support_includes)
endif

if TEST_malloc03
lib_tests += malloc03
lib_screens += malloc03/malloc03.scn
lib_docs += malloc03/malloc03.doc
malloc03_SOURCES = malloc03/init.c
malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \
	$(support_includes)
endif

if TEST_malloc04
lib_tests += malloc04
lib_screens += malloc04/malloc04.scn
lib_docs += malloc04/malloc04.doc
malloc04_SOURCES = malloc04/init.c
malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \
	$(support_includes)
endif

if TEST_malloctest
lib_tests += malloctest
lib_screens += malloctest/malloctest.scn
malloctest_SOURCES = malloctest/init.c malloctest/task1.c \
	malloctest/system.h
malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \
	$(support_includes)
endif

if TEST_math
lib_tests += math
lib_screens += math/math.scn
math_SOURCES = math/init.c math/domath.c
math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \
	-I$(top_srcdir)/math
math_LDADD = -lm $(LDADD)
endif

if TEST_mathf
lib_tests += mathf
lib_screens += mathf/mathf.scn
mathf_SOURCES = mathf/init.c mathf/domathf.c
mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \
	$(support_includes) -I$(top_srcdir)/math
mathf_LDADD = -lm $(LDADD)
endif

if TEST_mathl
lib_tests += mathl
lib_screens += mathl/mathl.scn
mathl_SOURCES = mathl/init.c mathl/domathl.c
mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \
	$(support_includes) -I$(top_srcdir)/math
mathl_LDADD = -lm $(LDADD)
endif

if TEST_md501
lib_tests += md501
lib_screens += md501/md501.scn
lib_docs += md501/md501.doc
md501_SOURCES = md501/init.c
md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \
	$(support_includes)
endif

if NETTESTS
if HAS_POSIX
if TEST_mghttpd01
lib_tests += mghttpd01
lib_screens += mghttpd01/mghttpd01.scn
lib_docs += mghttpd01/mghttpd01.doc
mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \
	mghttpd01_tar.h mghttpd01/test-http-client.c \
	mghttpd01/test-http-client.h
mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
mghttpd01_LDADD = $(RTEMS_ROOT)cpukit/libmghttpd.a $(LDADD)
mghttpd01_tar.c: mghttpd01/mghttpd01.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
mghttpd01_tar.h: mghttpd01/mghttpd01.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h
mghttpd01/init.c: mghttpd01_tar.h
CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h
endif
endif
endif

if TEST_monitor
lib_tests += monitor
monitor_SOURCES = monitor/init.c monitor/system.h
monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \
	$(support_includes)
endif

if TEST_monitor02
lib_tests += monitor02
lib_screens += monitor02/monitor02.scn
monitor02_SOURCES = monitor02/init.c monitor02/system.h
monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \
	$(support_includes)
endif

if TEST_mouse01
lib_tests += mouse01
lib_screens += mouse01/mouse01.scn
lib_docs += mouse01/mouse01.doc
mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \
	mouse01/msmouse.c termios04/termios_testdriver_intr.c
mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \
	$(support_includes)
endif

if TEST_nanosleep
lib_tests += nanosleep.norun
nanosleep_norun_SOURCES = POSIX/nanosleep.c
nanosleep_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if NETTESTS
if TEST_networking01
lib_tests += networking01
lib_screens += networking01/networking01.scn
lib_docs += networking01/networking01.doc
networking01_SOURCES = networking01/init.c
networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
endif
endif

if TEST_newlib01
lib_tests += newlib01
lib_screens += newlib01/newlib01.scn
lib_docs += newlib01/newlib01.doc
newlib01_SOURCES = newlib01/init.c
newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \
	$(support_includes)
endif

if TEST_open
lib_tests += open.norun
open_norun_SOURCES = POSIX/open.c
open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_pipe
lib_tests += pipe.norun
pipe_norun_SOURCES = POSIX/pipe.c
pipe_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_posix_memalign
lib_tests += posix_memalign.norun
posix_memalign_norun_SOURCES = POSIX/posix_memalign.c
posix_memalign_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_putenvtest
lib_tests += putenvtest
lib_screens += putenvtest/putenvtest.scn
putenvtest_SOURCES = putenvtest/init.c
putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \
	$(support_includes)
endif

if TEST_pwdgrp01
lib_tests += pwdgrp01
lib_screens += pwdgrp01/pwdgrp01.scn
lib_docs += pwdgrp01/pwdgrp01.doc
pwdgrp01_SOURCES = pwdgrp01/init.c
pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \
	$(support_includes)
endif

if TEST_pwdgrp02
lib_tests += pwdgrp02
lib_screens += pwdgrp02/pwdgrp02.scn
lib_docs += pwdgrp02/pwdgrp02.doc
pwdgrp02_SOURCES = pwdgrp02/init.c
pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \
	$(support_includes)
endif

if TEST_rbheap01
lib_tests += rbheap01
lib_screens += rbheap01/rbheap01.scn
lib_docs += rbheap01/rbheap01.doc
rbheap01_SOURCES = rbheap01/init.c
rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \
	$(support_includes)
endif

if TEST_read
lib_tests += read.norun
read_norun_SOURCES = POSIX/read.c
read_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_readv
lib_tests += readv.norun
readv_norun_SOURCES = POSIX/readv.c
readv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_realloc
lib_tests += realloc.norun
realloc_norun_SOURCES = POSIX/realloc.c
realloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_record01
lib_tests += record01
lib_screens += record01/record01.scn
lib_docs += record01/record01.doc
record01_SOURCES = record01/init.c
record01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_record01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
endif

if TEST_record02
lib_tests += record02
lib_screens += record02/record02.scn
lib_docs += record02/record02.doc
record02_SOURCES = record02/init.c
record02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_record02) \
	$(support_includes)
endif

if TEST_rtmonuse
lib_tests += rtmonuse
lib_screens += rtmonuse/rtmonuse.scn
rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \
	rtmonuse/system.h
rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \
	$(support_includes)
endif

if TEST_setjmp
lib_tests += setjmp.norun
setjmp_norun_SOURCES = POSIX/setjmp.c
setjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sha
lib_tests += sha
lib_screens += sha/sha.scn
lib_docs += sha/sha.doc
sha_SOURCES = sha/init.c
sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes)
endif

if TEST_shell01
lib_tests += shell01
lib_screens += shell01/shell01.scn
lib_docs += shell01/shell01.doc
shell01_SOURCES = shell01/init.c
shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \
	$(support_includes)
endif

if TEST_sigaddset
lib_tests += sigaddset.norun
sigaddset_norun_SOURCES = POSIX/sigaddset.c
sigaddset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sigdelset
lib_tests += sigdelset.norun
sigdelset_norun_SOURCES = POSIX/sigdelset.c
sigdelset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sigemptyset
lib_tests += sigemptyset.norun
sigemptyset_norun_SOURCES = POSIX/sigemptyset.c
sigemptyset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sigfillset
lib_tests += sigfillset.norun
sigfillset_norun_SOURCES = POSIX/sigfillset.c
sigfillset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sigismember
lib_tests += sigismember.norun
sigismember_norun_SOURCES = POSIX/sigismember.c
sigismember_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sigprocmask
lib_tests += sigprocmask.norun
sigprocmask_norun_SOURCES = POSIX/sigprocmask.c
sigprocmask_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_sparsedisk01
lib_tests += sparsedisk01
lib_screens += sparsedisk01/sparsedisk01.scn
lib_docs += sparsedisk01/sparsedisk01.doc
sparsedisk01_SOURCES = sparsedisk01/init.c
sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \
	$(support_includes)
endif

if TEST_spi01
lib_tests += spi01
lib_screens += spi01/spi01.scn
lib_docs += spi01/spi01.doc
spi01_SOURCES = spi01/init.c
spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \
	$(support_includes)
endif

if TEST_stackchk
lib_tests += stackchk
lib_screens += stackchk/stackchk.scn
stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \
	stackchk/system.h
stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \
	$(support_includes)
endif

if TEST_stackchk01
lib_tests += stackchk01
lib_screens += stackchk01/stackchk01.scn
lib_docs += stackchk01/stackchk01.doc
stackchk01_SOURCES = stackchk01/init.c
stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \
	$(support_includes)
endif

if TEST_stat
lib_tests += stat.norun
stat_norun_SOURCES = POSIX/stat.c
stat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_stringto01
lib_tests += stringto01
lib_screens += stringto01/stringto01.scn
lib_docs += stringto01/stringto01.doc
stringto01_SOURCES = stringto01/init.c \
	stringto01/stringto_test_template.h
stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \
	$(support_includes)
endif

if NETTESTS
if TEST_syscall01
lib_tests += syscall01
lib_screens += syscall01/syscall01.scn
lib_docs += syscall01/syscall01.doc
syscall01_SOURCES = syscall01/init.c
syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
endif
endif

if TARTESTS
if TEST_tar01
lib_tests += tar01
lib_screens += tar01/tar01.scn
lib_docs += tar01/tar01.doc
tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \
	tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h
if TARTEST_XZ
tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h
endif
tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \
	$(support_includes) $(test_includes) -I$(top_srcdir)/include
tar01_LDADD = $(RTEMS_ROOT)cpukit/librtemscpu.a $(RTEMS_ROOT)cpukit/libz.a $(LDADD)
tar01.tar: Makefile
	$(AM_V_GEN)rm -rf tar01_fs
	$(AM_V_GEN)$(MKDIR_P) tar01_fs/home
	$(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an"; \
	 echo "initial tar image.") > tar01_fs/home/test_file
	$(AM_V_GEN)(echo "#! joel"; \
	 echo "ls -las /dev") > tar01_fs/home/test_script
	$(AM_V_GEN)chmod +x tar01_fs/home/test_script
	$(AM_V_GEN)(cd tar01_fs; \
	 $(LN_S) home/test_file symlink; \
	 $(PAX) -w -f ../tar01.tar home symlink)
tar01_tar.c: tar01.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
tar01_tar.h: tar01.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
tar01-tar.o: tar01-tar.c tar01-tar.h
tar01.tar.gz: tar01.tar
	$(AM_V_GEN)$(GZIP) < $< > $@
tar01_tar_gz.c: tar01.tar.gz
	$(AM_V_GEN)$(BIN2C) -C $< $@
tar01_tar_gz.h: tar01.tar.gz
	$(AM_V_GEN)$(BIN2C) -H $< $@
CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \
	tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h
if TARTEST_XZ
tar01.tar.xz: tar01.tar
	$(AM_V_GEN)$(XZ) < $< > $@
tar01_tar_xz.c: tar01.tar.xz
	$(AM_V_GEN)$(BIN2C) -C $< $@
tar01_tar_xz.h: tar01.tar.xz
	$(AM_V_GEN)$(BIN2C) -H $< $@
TAR01_XZ_H = tar01_tar_xz.h
CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h
endif
tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H)
endif
endif

if TARTESTS
if TEST_tar02
lib_tests += tar02
lib_screens += tar02/tar02.scn
lib_docs += tar02/tar02.doc
tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \
	tar02_tar.c tar02_tar.h
tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \
	$(support_includes) $(test_includes) -I$(top_srcdir)/include
tar02.tar: Makefile
	$(AM_V_GEN)rm -rf tar02_fs
	$(AM_V_GEN)$(MKDIR_P) tar02_fs/home
	$(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an" ; \
	 echo "initial tar image.") > tar02_fs/home/test_file
	$(AM_V_GEN)(echo "#! joel" ; \
	 echo "ls -las /dev") > tar02_fs/home/test_script
	$(AM_V_GEN)chmod +x tar02_fs/home/test_script
	$(AM_V_GEN)(cd tar02_fs; \
	 $(LN_S) home/test_file symlink; \
	 $(PAX) -w -f ../tar02.tar home symlink)
tar02_tar.c: tar02.tar
	$(AM_V_GEN)$(BIN2C) -C $< $@
tar02_tar.h: tar02.tar
	$(AM_V_GEN)$(BIN2C) -H $< $@
tar02-tar.o: tar02-tar.c tar02-tar.h
tar02/init.c: tar02_tar.h
CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h
endif
endif

if TEST_tar03
lib_tests += tar03
lib_screens += tar03/tar03.scn
lib_docs += tar03/tar03.doc
tar03_SOURCES = tar03/init.c
tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \
	$(support_includes)
endif

if NETTESTS
if TEST_telnetd01
lib_tests += telnetd01
lib_screens += telnetd01/telnetd01.scn
lib_docs += telnetd01/telnetd01.doc
telnetd01_SOURCES = telnetd01/init.c
telnetd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_telnetd01) \
	$(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
telnetd01_LDADD = $(RTEMS_ROOT)cpukit/libtelnetd.a $(LDADD)
endif
endif

if TEST_termios
lib_tests += termios
termios_SOURCES = termios/init.c
termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \
	$(support_includes)
endif

if TEST_termios01
lib_tests += termios01
lib_screens += termios01/termios01.scn
lib_docs += termios01/termios01.doc
termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \
	termios01/termios_testdriver.h
termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_termios02
lib_tests += termios02
lib_screens += termios02/termios02.scn
lib_docs += termios02/termios02.doc
termios02_SOURCES = termios02/init.c
termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_termios03
lib_tests += termios03
lib_screens += termios03/termios03.scn
lib_docs += termios03/termios03.doc
termios03_SOURCES = termios03/init.c \
	termios03/termios_testdriver_polled.c \
	termios03/termios_testdriver_polled.h
termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \
	$(support_includes)
endif

if TEST_termios04
lib_tests += termios04
lib_screens += termios04/termios04.scn
lib_docs += termios04/termios04.doc
termios04_SOURCES = termios04/init.c \
	termios04/termios_testdriver_intr.c \
	termios04/termios_testdriver_intr.h
termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \
	$(support_includes)
endif

if TEST_termios05
lib_tests += termios05
lib_screens += termios05/termios05.scn
lib_docs += termios05/termios05.doc
termios05_SOURCES = termios05/init.c \
	termios05/termios_testdriver_task.c
termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \
	$(support_includes)
endif

if TEST_termios06
lib_tests += termios06
lib_screens += termios06/termios06.scn
lib_docs += termios06/termios06.doc
termios06_SOURCES = termios06/init.c \
	termios03/termios_testdriver_polled.c termios06/test_pppd.c
termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \
	$(support_includes)
endif

if TEST_termios07
lib_tests += termios07
lib_screens += termios07/termios07.scn
lib_docs += termios07/termios07.doc
termios07_SOURCES = termios07/init.c \
	termios04/termios_testdriver_intr.c
termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \
	$(support_includes)
endif

if TEST_termios08
lib_tests += termios08
lib_screens += termios08/termios08.scn
lib_docs += termios08/termios08.doc
termios08_SOURCES = termios08/init.c \
	termios03/termios_testdriver_polled.c
termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \
	$(support_includes)
endif

if TEST_termios09
lib_tests += termios09
lib_screens += termios09/termios09.scn
lib_docs += termios09/termios09.doc
termios09_SOURCES = termios09/init.c
termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \
	$(support_includes) 
endif

if TEST_termios10
lib_tests += termios10
lib_screens += termios10/termios10.scn
lib_docs += termios10/termios10.doc
termios10_SOURCES  = termios10/init.c
termios10_SOURCES += termios03/termios_testdriver_polled.c
termios10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios10) \
	$(support_includes)
endif

if TEST_termios11
lib_tests += termios11
lib_screens += termios11/termios11.scn
lib_docs += termios11/termios11.doc
termios11_SOURCES  = termios11/init.c
termios11_SOURCES += termios04/termios_testdriver_intr.c
termios11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios11) \
	$(support_includes)
endif

if TEST_top
lib_tests += top
lib_screens += top/top.scn
top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \
	top/system.h
top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes)
endif

if TEST_ttest01
lib_tests += ttest01
lib_screens += ttest01/ttest01.scn
lib_docs += ttest01/ttest01.doc
ttest01_SOURCES = ttest01/init.c
ttest01_SOURCES += ttest01/test-assert.c
ttest01_SOURCES += ttest01/test-checks.c
ttest01_SOURCES += ttest01/test-destructor.c
ttest01_SOURCES += ttest01/test-eno.c
ttest01_SOURCES += ttest01/test-example.c
ttest01_SOURCES += ttest01/test-fixture.c
ttest01_SOURCES += ttest01/test-leak.c
ttest01_SOURCES += ttest01/test-log.c
ttest01_SOURCES += ttest01/test-malloc.c
ttest01_SOURCES += ttest01/test-plan.c
ttest01_SOURCES += ttest01/test-psx.c
ttest01_SOURCES += ttest01/test-rtems.c
ttest01_SOURCES += ttest01/test-simple.c
ttest01_SOURCES += ttest01/test-step.c
ttest01_SOURCES += ttest01/test-time.c
ttest01_SOURCES += ttest01/test-verbosity.c
ttest01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ttest01) \
	$(support_includes)
endif

if TEST_tztest
lib_tests += tztest
lib_screens += tztest/tztest.scn
lib_docs += tztest/tztest.doc
tztest_SOURCES = tztest/init.c
tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \
	$(support_includes)
endif

if TEST_uid01
lib_tests += uid01
lib_docs += uid01/uid01.doc
uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \
	uid01/msmouse.c termios04/termios_testdriver_intr.c
uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \
	$(support_includes)
endif

if TEST_unlink
lib_tests += unlink.norun
unlink_norun_SOURCES = POSIX/unlink.c
unlink_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_utf8proc01
lib_tests += utf8proc01
lib_screens += utf8proc01/utf8proc01.scn
lib_docs += utf8proc01/utf8proc01.doc
utf8proc01_SOURCES = utf8proc01/init.c
utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \
	$(support_includes)
endif

if TEST_vfork
lib_tests += vfork.norun
vfork_norun_SOURCES = POSIX/vfork.c
vfork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_wait
lib_tests += wait.norun
wait_norun_SOURCES = POSIX/wait.c
wait_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_waitpid
lib_tests += waitpid.norun
waitpid_norun_SOURCES = POSIX/waitpid.c
waitpid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_write
lib_tests += write.norun
write_norun_SOURCES = POSIX/write.c
write_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

if TEST_writev
lib_tests += writev.norun
writev_norun_SOURCES = POSIX/writev.c
writev_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
endif

noinst_PROGRAMS = $(lib_tests)