source: rtems/testsuites/libtests/Makefile.am @ 07fb7667

5
Last change on this file since 07fb7667 was 07fb7667, checked in by Sebastian Huber <sebastian.huber@…>, on 01/07/19 at 12:40:00

build: Call rtems-ld with the $(CC) of the build

This enables support for non-standard compiler names, e.g.
sparc-rtems6-gcc.

  • Property mode set to 100644
File size: 39.2 KB
Line 
1#
2# Library Testsuite
3#
4
5ACLOCAL_AMFLAGS = -I ../aclocal
6
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8include $(top_srcdir)/../automake/compile.am
9
10lib_tests =
11lib_screens =
12lib_docs =
13
14support_includes = -I$(top_srcdir)/../support/include
15test_includes = -I$(top_srcdir)/support \
16        -I$(top_srcdir)/../psxtests/include
17
18if TEST_block01
19lib_tests += block01
20lib_screens += block01/block01.scn
21lib_docs += block01/block01.doc
22block01_SOURCES = block01/init.c
23block01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block01) \
24        $(support_includes)
25endif
26
27if TEST_block02
28lib_tests += block02
29lib_screens += block02/block02.scn
30lib_docs += block02/block02.doc
31block02_SOURCES = block02/init.c
32block02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block02) \
33        $(support_includes)
34endif
35
36if TEST_block03
37lib_tests += block03
38lib_screens += block03/block03.scn
39lib_docs += block03/block03.doc
40block03_SOURCES = block03/init.c
41block03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block03) \
42        $(support_includes)
43endif
44
45if TEST_block04
46lib_tests += block04
47lib_screens += block04/block04.scn
48lib_docs += block04/block04.doc
49block04_SOURCES = block04/init.c
50block04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block04) \
51        $(support_includes)
52endif
53
54if TEST_block05
55lib_tests += block05
56lib_screens += block05/block05.scn
57lib_docs += block05/block05.doc block05/block05.png
58block05_SOURCES = block05/init.c
59block05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block05) \
60        $(support_includes)
61endif
62
63if TEST_block06
64lib_tests += block06
65lib_screens += block06/block06.scn
66lib_docs += block06/block06.doc
67block06_SOURCES = block06/init.c
68block06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block06) \
69        $(support_includes)
70endif
71
72if TEST_block07
73lib_tests += block07
74lib_screens += block07/block07.scn
75lib_docs += block07/block07.doc
76block07_SOURCES = block07/init.c
77block07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block07) \
78        $(support_includes)
79endif
80
81if TEST_block08
82lib_tests += block08
83lib_screens += block08/block08.scn
84lib_docs += block08/block08.doc
85block08_SOURCES = block08/init.c block08/system.h \
86        block08/bdbuf_tests.c block08/bdbuf_tests.h block08/test_disk.c \
87        block08/bdbuf_test1_1.c block08/bdbuf_test1_2.c \
88        block08/bdbuf_test1_3.c block08/bdbuf_test1_4.c \
89        block08/bdbuf_test1_5.c block08/bdbuf_test2_1.c \
90        block08/bdbuf_test2_2.c block08/bdbuf_test3_1.c \
91        block08/bdbuf_test3_2.c block08/bdbuf_test3_3.c \
92        block08/bdbuf_test4_1.c block08/bdbuf_test4_2.c \
93        block08/bdbuf_test4_3.c
94block08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block08) \
95        $(support_includes) -I$(top_srcdir)/block08
96endif
97
98if TEST_block09
99lib_tests += block09
100lib_screens += block09/block09.scn
101lib_docs += block09/block09.doc
102block09_SOURCES = block09/init.c
103block09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block09) \
104        $(support_includes)
105endif
106
107if TEST_block10
108lib_tests += block10
109lib_screens += block10/block10.scn
110lib_docs += block10/block10.doc block10/block10.png
111block10_SOURCES = block10/init.c
112block10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block10) \
113        $(support_includes)
114endif
115
116if TEST_block11
117lib_tests += block11
118lib_screens += block11/block11.scn
119lib_docs += block11/block11.doc
120block11_SOURCES = block11/init.c
121block11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block11) \
122        $(support_includes)
123endif
124
125if TEST_block12
126lib_tests += block12
127lib_screens += block12/block12.scn
128lib_docs += block12/block12.doc
129block12_SOURCES = block12/init.c
130block12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block12) \
131        $(support_includes)
132endif
133
134if TEST_block13
135lib_tests += block13
136lib_screens += block13/block13.scn
137lib_docs += block13/block13.doc
138block13_SOURCES = block13/init.c
139block13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block13) \
140        $(support_includes)
141endif
142
143if TEST_block14
144lib_tests += block14
145lib_screens += block14/block14.scn
146lib_docs += block14/block14.doc
147block14_SOURCES = block14/init.c
148block14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block14) \
149        $(support_includes)
150endif
151
152if TEST_block15
153lib_tests += block15
154lib_screens += block15/block15.scn
155lib_docs += block15/block15.doc
156block15_SOURCES = block15/init.c
157block15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block15) \
158        $(support_includes)
159endif
160
161if TEST_block16
162lib_tests += block16
163lib_screens += block16/block16.scn
164lib_docs += block16/block16.doc
165block16_SOURCES = block16/init.c
166block16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block16) \
167        $(support_includes)
168endif
169
170if TEST_block17
171lib_tests += block17
172lib_screens += block17/block17.scn
173lib_docs += block17/block17.doc
174block17_SOURCES = block17/init.c
175block17_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block17) \
176        $(support_includes)
177endif
178
179if TEST_bspcmdline01
180lib_tests += bspcmdline01
181lib_screens += bspcmdline01/bspcmdline01.scn
182lib_docs += bspcmdline01/bspcmdline01.doc
183bspcmdline01_SOURCES = bspcmdline01/init.c
184bspcmdline01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_bspcmdline01) \
185        $(support_includes)
186endif
187
188if TEST_calloc
189lib_tests += calloc.norun
190calloc_norun_SOURCES = POSIX/calloc.c
191calloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
192endif
193
194if TEST_capture01
195lib_tests += capture01
196lib_screens += capture01/capture01.scn
197lib_docs += capture01/capture01.doc
198capture01_SOURCES = capture01/init.c capture01/test1.c \
199        capture01/system.h
200capture01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_capture01) \
201        $(support_includes)
202endif
203
204if TEST_clock_gettime
205lib_tests += clock_gettime.norun
206clock_gettime_norun_SOURCES = POSIX/clock_gettime.c
207clock_gettime_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
208endif
209
210if TEST_close
211lib_tests += close.norun
212close_norun_SOURCES = POSIX/close.c
213close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
214endif
215
216if TEST_complex
217lib_tests += complex
218lib_screens += complex/complex.scn
219complex_SOURCES = complex/init.c complex/docomplex.c \
220        complex/docomplexf.c complex/docomplexl.c
221complex_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_complex) \
222        $(support_includes) -DNO_LONG_DOUBLE
223complex_LDADD = -lm
224endif
225
226if TEST_cpuuse
227lib_tests += cpuuse
228lib_screens += cpuuse/cpuuse.scn
229cpuuse_SOURCES = cpuuse/init.c cpuuse/task1.c cpuuse/task2.c \
230        cpuuse/task3.c cpuuse/tswitch.c cpuuse/system.h
231cpuuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_cpuuse) \
232        $(support_includes)
233endif
234
235if TEST_crypt01
236lib_tests += crypt01
237lib_screens += crypt01/crypt01.scn
238lib_docs += crypt01/crypt01.doc
239crypt01_SOURCES = crypt01/init.c
240crypt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_crypt01) \
241        $(support_includes)
242endif
243
244if DEBUGGERTESTS
245if TEST_debugger01
246lib_tests += debugger01
247lib_screens += debugger01/debugger01.scn
248debugger01_SOURCES = debugger01/init.c debugger01/remote.c \
249        debugger01/system.h
250debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \
251        $(support_includes)
252debugger01_LDADD = $(RTEMS_ROOT)cpukit/libdebugger.a $(LDADD)
253endif
254endif
255
256if TEST_defaultconfig01
257lib_tests += defaultconfig01
258lib_screens += defaultconfig01/defaultconfig01.scn
259lib_docs += defaultconfig01/defaultconfig01.doc
260defaultconfig01_SOURCES = defaultconfig01/init.c
261defaultconfig01_CPPFLAGS = $(AM_CPPFLAGS) \
262        $(TEST_FLAGS_defaultconfig01) $(support_includes)
263defaultconfig01_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
264endif
265
266if TEST_devfs01
267lib_tests += devfs01
268lib_screens += devfs01/devfs01.scn
269lib_docs += devfs01/devfs01.doc
270devfs01_SOURCES = devfs01/init.c
271devfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs01) \
272        $(support_includes)
273endif
274
275if TEST_devfs02
276lib_tests += devfs02
277lib_screens += devfs02/devfs02.scn
278lib_docs += devfs02/devfs02.doc
279devfs02_SOURCES = devfs02/init.c
280devfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs02) \
281        $(support_includes)
282endif
283
284if TEST_devfs03
285lib_tests += devfs03
286lib_screens += devfs03/devfs03.scn
287lib_docs += devfs03/devfs03.doc
288devfs03_SOURCES = devfs03/init.c
289devfs03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs03) \
290        $(support_includes)
291endif
292
293if TEST_devfs04
294lib_tests += devfs04
295lib_screens += devfs04/devfs04.scn
296lib_docs += devfs04/devfs04.doc
297devfs04_SOURCES = devfs04/init.c devfs04/test_driver.c \
298        devfs04/test_driver.h
299devfs04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs04) \
300        $(support_includes)
301endif
302
303if TEST_deviceio01
304lib_tests += deviceio01
305lib_screens += deviceio01/deviceio01.scn
306lib_docs += deviceio01/deviceio01.doc
307deviceio01_SOURCES = deviceio01/init.c deviceio01/test_driver.c \
308        deviceio01/test_driver.h
309deviceio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_deviceio01) \
310        $(support_includes)
311endif
312
313if TEST_devnullfatal01
314lib_tests += devnullfatal01
315lib_screens += devnullfatal01/devnullfatal01.scn
316lib_docs += devnullfatal01/devnullfatal01.doc
317devnullfatal01_SOURCES = ../sptests/spfatal_support/init.c \
318        ../sptests/spfatal_support/system.h devnullfatal01/testcase.h
319devnullfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devnullfatal01) \
320        $(support_includes) -I$(top_srcdir)/../../sptests/spfatal_support \
321        -I$(top_srcdir)/devnullfatal01
322endif
323
324if DLTESTS
325if TEST_dl01
326lib_tests += dl01
327lib_screens += dl01/dl01.scn
328lib_docs += dl01/dl01.doc
329dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h
330dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes)
331dl01/init.c: dl01-tar.o
332dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES)
333        @rm -f dl01.pre
334        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
335dl01-o1.o: dl01/dl-o1.c Makefile
336        $(AM_V_CC)$(COMPILE) -c -o $@ $<
337dl01.tar: dl01-o1.o
338        @rm -f $@
339        $(AM_V_GEN)$(PAX) -w -f $@ $<
340dl01-tar.c: dl01.tar
341        $(AM_V_GEN)$(BIN2C) -C $< $@
342dl01-tar.h: dl01.tar
343        $(AM_V_GEN)$(BIN2C) -H $< $@
344dl01-tar.o: dl01-tar.c dl01-tar.h
345        $(AM_V_CC)$(COMPILE) -c -o $@ $<
346dl01-sym.o: dl01.pre
347        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
348dl01$(EXEEXT):  $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o
349        @rm -f $@
350        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
351CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h
352endif
353endif
354
355if DLTESTS
356if TEST_dl02
357lib_tests += dl02
358lib_screens += dl02/dl02.scn
359lib_docs += dl02/dl02.doc
360dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h
361dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes)
362dl02/init.c: dl02-tar.o
363dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES)
364        @rm -f dl02.pre
365        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
366dl02-o1.o: dl02/dl-o1.c Makefile
367        $(AM_V_CC)$(COMPILE) -c -o $@ $<
368dl02-o2.o: dl02/dl-o2.c Makefile
369        $(AM_V_CC)$(COMPILE) -c -o $@ $<
370dl02.tar: dl02-o1.o dl02-o2.o
371        @rm -f $@
372        $(AM_V_GEN)$(PAX) -w -f $@ $+
373dl02-tar.c: dl02.tar
374        $(AM_V_GEN)$(BIN2C) -C $< $@
375dl02-tar.h: dl02.tar
376        $(AM_V_GEN)$(BIN2C) -H $< $@
377dl02-tar.o: dl02-tar.c dl02-tar.h
378        $(AM_V_CC)$(COMPILE) -c -o $@ $<
379dl02-sym.o: dl02.pre
380        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
381dl02$(EXEEXT):  $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o
382        @rm -f $@
383        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
384CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h
385endif
386endif
387
388if DLTESTS
389if TEST_dl03
390lib_tests += dl03
391lib_screens += dl03/dl03.scn
392lib_docs += dl03/dl03.doc
393dl03_SOURCES = dl03/init.c dl03/dl-cache.c
394dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes)
395endif
396endif
397
398if DLTESTS
399if HAS_CXX
400if TEST_dl04
401lib_tests += dl04
402lib_screens += dl04/dl04.scn
403lib_docs += dl04/dl04.doc
404dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \
405        dl04-tar.h
406dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes)
407dl04/init.c: dl04-tar.o
408dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
409        @rm -f dl04.pre
410        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
411dl04-o4.o: dl04/dl-o4.cpp Makefile
412        $(AM_V_GEN)$(CXXCOMPILE) -c -o $@ $<
413dl04.tar: dl04-o4.o
414        @rm -f $@
415        $(AM_V_GEN)$(PAX) -w -f $@ $<
416dl04-tar.c: dl04.tar
417        $(AM_V_GEN)$(BIN2C) -C $< $@
418dl04-tar.h: dl04.tar
419        $(AM_V_GEN)$(BIN2C) -H $< $@
420dl04-tar.o: dl04-tar.c dl04-tar.h
421        $(AM_V_CC)$(COMPILE) -c -o $@ $<
422dl04-sym.o: dl04.pre
423        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
424dl04$(EXEEXT):  $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o
425        @rm -f $@
426        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
427CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h
428endif
429endif
430endif
431
432if DLTESTS
433if HAS_CXX
434if TEST_dl05
435lib_tests += dl05
436lib_screens += dl05/dl05.scn
437lib_docs += dl05/dl05.doc
438dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \
439        dl05-tar.h
440dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes)
441dl05/init.c: dl05-tar.o
442dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
443        @rm -f dl05.pre
444        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
445dl05-o5.o: dl05/dl-o5.cpp
446        $(AM_V_CXX)$(CXXCOMPILE) -c -o $@ $<
447dl05.tar: dl05-o5.o
448        @rm -f $@
449        $(AM_V_GEN)$(PAX) -w -f $@ $<
450dl05-tar.c: dl05.tar
451        $(AM_V_GEN)$(BIN2C) -C $< $@
452dl05-tar.h: dl05.tar
453        $(AM_V_GEN)$(BIN2C) -H $< $@
454dl05-tar.o: dl05-tar.c dl05-tar.h
455        $(AM_V_CC)$(COMPILE) -c -o $@ $<
456dl05-sym.o: dl05.pre
457        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
458dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
459        @rm -f $@
460        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
461CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h
462endif
463endif
464endif
465
466if DLTESTS
467if TEST_dl06
468lib_tests += dl06
469lib_screens += dl06/dl06.scn
470lib_docs += dl06/dl06.doc
471dl06_SOURCES = dl06/init.c dl06/dl-load.c dl06-tar.c dl06-tar.h
472dl06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl06) $(support_includes)
473dl06/init.c: dl06-tar.o
474dl06-pre.tar: Makefile
475        $(AM_V_at)echo "Something in a file" > dl06_pre_file
476        $(AM_V_GEN)$(PAX) -w -f $@ dl06_pre_file
477dl06-pre-tar.c: dl06-pre.tar
478        $(AM_V_GEN)$(BIN2C) -N dl06_tar -C $< $@
479dl06-pre-tar.h: dl06-pre.tar
480        $(AM_V_GEN)$(BIN2C) -N dl06_tar -H $< $@
481dl06-pre-tar.o: dl06-pre-tar.c dl06-pre-tar.h
482        $(AM_V_CC)$(COMPILE) -c -o $@ $<
483dl06-pre-init.o: dl06-pre-tar.o
484        $(AM_V_CC)$(COMPILE)  $(dl06_CPPFLAGS) $(CPU_CFLAGS) $(AM_CFLAGS) \
485                -DDL06_PRE -c -o $@ $(srcdir)/dl06/init.c
486dl06.pre: dl06-pre-init.o dl06/dl06-dl-load.o dl06-pre-tar.o
487        @rm -f $@
488        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
489dl06-o1.o: dl06/dl06-o1.c Makefile
490        $(AM_V_CC)$(COMPILE) -c -o $@ $<
491dl06-o2.o: dl06/dl06-o2.c Makefile
492        $(AM_V_CC)$(COMPILE) -c -o $@ $<
493dl06.rap: dl06.pre dl06-o1.o dl06-o2.o
494        $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) \
495          -C $(CC) -c "$(CPU_CFLAGS)" \
496          -O rap -b $< -e rtems_main -s \
497          -o $@ $(filter-out dl06.pre,$+) -lm
498dl06.tar: dl06.rap
499        @rm -f $@
500        $(AM_V_GEN)$(PAX) -w -f $@ $<
501dl06-tar.c: dl06.tar
502        $(AM_V_GEN)$(BIN2C) -C $< $@
503dl06-tar.h: dl06.tar
504        $(AM_V_GEN)$(BIN2C) -H $< $@
505dl06-tar.o: dl06-tar.c dl06-tar.h
506        $(AM_V_CC)$(COMPILE) -c -o $@ $<
507dl06-sym.o: dl06.pre
508        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
509dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o
510        @rm -f $@
511        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
512CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h
513endif
514endif
515
516if DLTESTS
517if TEST_dl07
518lib_tests += dl07
519lib_screens += dl07/dl07.scn
520lib_docs += dl07/dl07.doc
521dl07_SOURCES = dl07/init.c dl07/dl-load.c dl07-tar.c dl07-tar.h
522dl07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl07) $(support_includes)
523dl07/init.c: dl07-tar.o
524dl07.pre: $(dl07_OBJECTS) $(dl07_DEPENDENCIES)
525        @rm -f dl07.pre
526        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
527dl07-o1.o: dl07/dl-o1.c Makefile
528        $(AM_V_CC)$(COMPILE) -c -o $@ $<
529dl07-o2.o: dl07/dl-o2.c Makefile
530        $(AM_V_CC)$(COMPILE) -c -o $@ $<
531dl07-o3.o: dl07/dl-o3.c Makefile
532        $(AM_V_CC)$(COMPILE) -c -o $@ $<
533dl07-o4.o: dl07/dl-o4.c Makefile
534        $(AM_V_CC)$(COMPILE) -c -o $@ $<
535dl07-o5.o: dl07/dl-o5.c Makefile
536        $(AM_V_CC)$(COMPILE) -c -o $@ $<
537dl07.tar: dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o
538        @rm -f $@
539        $(AM_V_GEN)$(PAX) -w -f $@ $+
540dl07-tar.c: dl07.tar
541        $(AM_V_GEN)$(BIN2C) -C $< $@
542dl07-tar.h: dl07.tar
543        $(AM_V_GEN)$(BIN2C) -H $< $@
544dl07-tar.o: dl07-tar.c dl07-tar.h
545        $(AM_V_CC)$(COMPILE) -c -o $@ $<
546dl07-sym.o: dl07.pre
547        $(AM_V_GEN)rtems-syms -e -C $(CC) -c "$(CFLAGS)" -o $@ $<
548dl07$(EXEEXT):  $(dl07_OBJECTS) $(dl07_DEPENDENCIES) dl07-sym.o
549        @rm -f $@
550        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
551CLEANFILES += 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
552endif
553endif
554
555if TEST_dumpbuf01
556lib_tests += dumpbuf01
557lib_screens += dumpbuf01/dumpbuf01.scn
558lib_docs += dumpbuf01/dumpbuf01.doc
559dumpbuf01_SOURCES = dumpbuf01/init.c
560dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \
561        $(support_includes)
562endif
563
564if TEST_dup2
565lib_tests += dup2.norun
566dup2_norun_SOURCES = POSIX/dup2.c
567dup2_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
568endif
569
570if TEST_exit01
571lib_tests += exit01
572lib_screens += exit01/exit01.scn
573lib_docs += exit01/exit01.doc
574exit01_SOURCES = exit01/init.c
575exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \
576        $(support_includes)
577endif
578
579if TEST_exit02
580lib_tests += exit02
581lib_screens += exit02/exit02.scn
582lib_docs += exit02/exit02.doc
583exit02_SOURCES = exit02/init.c
584exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \
585        $(support_includes)
586endif
587
588if TEST_fcntl
589lib_tests += fcntl.norun
590fcntl_norun_SOURCES = POSIX/fcntl.c
591fcntl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
592endif
593
594if TEST_flashdisk01
595lib_tests += flashdisk01
596lib_screens += flashdisk01/flashdisk01.scn
597lib_docs += flashdisk01/flashdisk01.doc
598flashdisk01_SOURCES = flashdisk01/init.c \
599        flashdisk01/test-file-system.c
600flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \
601        $(support_includes)
602endif
603
604if TEST_flockfile
605lib_tests += flockfile.norun
606flockfile_norun_SOURCES = POSIX/flockfile.c
607flockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
608endif
609
610if TEST_fork
611lib_tests += fork.norun
612fork_norun_SOURCES = POSIX/fork.c
613fork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
614endif
615
616if TEST_free
617lib_tests += free.norun
618free_norun_SOURCES = POSIX/free.c
619free_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
620endif
621
622if TEST_fstat
623lib_tests += fstat.norun
624fstat_norun_SOURCES = POSIX/fstat.c
625fstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
626endif
627
628if NETTESTS
629if TEST_ftp01
630lib_tests += ftp01
631lib_screens += ftp01/ftp01.scn
632lib_docs += ftp01/ftp01.doc
633ftp01_SOURCES = ftp01/init.c
634ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \
635        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
636ftp01_LDADD = $(RTEMS_ROOT)cpukit/libftpd.a $(RTEMS_ROOT)cpukit/libftpfs.a $(LDADD)
637endif
638endif
639
640if TEST_ftrylockfile
641lib_tests += ftrylockfile.norun
642ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c
643ftrylockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
644endif
645
646if TEST_funlockfile
647lib_tests += funlockfile.norun
648funlockfile_norun_SOURCES = POSIX/funlockfile.c
649funlockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
650endif
651
652if TEST_getentropy01
653lib_tests += getentropy01
654lib_screens += getentropy01/getentropy01.scn
655lib_docs += getentropy01/getentropy01.doc
656getentropy01_SOURCES = getentropy01/init.c
657getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \
658        $(support_includes)
659endif
660
661if TEST_getlogin
662lib_tests += getlogin.norun
663getlogin_norun_SOURCES = POSIX/getlogin.c
664getlogin_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
665endif
666
667if TEST_getpwnam
668lib_tests += getpwnam.norun
669getpwnam_norun_SOURCES = POSIX/getpwnam.c
670getpwnam_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
671endif
672
673if TEST_getpwuid
674lib_tests += getpwuid.norun
675getpwuid_norun_SOURCES = POSIX/getpwuid.c
676getpwuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
677endif
678
679if TEST_gettimeofday
680lib_tests += gettimeofday.norun
681gettimeofday_norun_SOURCES = POSIX/gettimeofday.c
682gettimeofday_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
683endif
684
685if TEST_getuid
686lib_tests += getuid.norun
687getuid_norun_SOURCES = POSIX/getuid.c
688getuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
689endif
690
691if TEST_gxx01
692lib_tests += gxx01
693lib_screens += gxx01/gxx01.scn
694lib_docs += gxx01/gxx01.doc
695gxx01_SOURCES = gxx01/init.c
696gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \
697        $(support_includes)
698endif
699
700if TEST_heapwalk
701lib_tests += heapwalk
702lib_screens += heapwalk/heapwalk.scn
703heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h
704heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \
705        $(support_includes)
706endif
707
708if TEST_htonl
709lib_tests += htonl.norun
710htonl_norun_SOURCES = POSIX/htonl.c
711htonl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
712endif
713
714if TEST_i2c01
715lib_tests += i2c01
716lib_screens += i2c01/i2c01.scn
717lib_docs += i2c01/i2c01.doc
718i2c01_SOURCES = i2c01/init.c
719i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \
720        $(support_includes)
721endif
722
723if TEST_iconv
724lib_tests += iconv.norun
725iconv_norun_SOURCES = POSIX/iconv.c
726iconv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
727endif
728
729if TEST_iconv_close
730lib_tests += iconv_close.norun
731iconv_close_norun_SOURCES = POSIX/iconv_close.c
732iconv_close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
733endif
734
735if TEST_iconv_open
736lib_tests += iconv_open.norun
737iconv_open_norun_SOURCES = POSIX/iconv_open.c
738iconv_open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
739endif
740
741if TEST_kill
742lib_tests += kill.norun
743kill_norun_SOURCES = POSIX/kill.c
744kill_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
745endif
746
747if TEST_libfdt01
748lib_tests += libfdt01
749lib_screens += libfdt01/libfdt01.scn
750lib_docs += libfdt01/libfdt01.doc
751libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c
752libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \
753        $(support_includes)
754endif
755
756if TEST_longjmp
757lib_tests += longjmp.norun
758longjmp_norun_SOURCES = POSIX/longjmp.c
759longjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
760endif
761
762if TEST_lseek
763lib_tests += lseek.norun
764lseek_norun_SOURCES = POSIX/lseek.c
765lseek_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
766endif
767
768if TEST_lstat
769lib_tests += lstat.norun
770lstat_norun_SOURCES = POSIX/lstat.c
771lstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
772endif
773
774if TEST_malloc
775lib_tests += malloc.norun
776malloc_norun_SOURCES = POSIX/malloc.c
777malloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
778endif
779
780if TEST_malloc02
781lib_tests += malloc02
782lib_screens += malloc02/malloc02.scn
783lib_docs += malloc02/malloc02.doc
784malloc02_SOURCES = malloc02/init.c
785malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \
786        $(support_includes)
787endif
788
789if TEST_malloc03
790lib_tests += malloc03
791lib_screens += malloc03/malloc03.scn
792lib_docs += malloc03/malloc03.doc
793malloc03_SOURCES = malloc03/init.c
794malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \
795        $(support_includes)
796endif
797
798if TEST_malloc04
799lib_tests += malloc04
800lib_screens += malloc04/malloc04.scn
801lib_docs += malloc04/malloc04.doc
802malloc04_SOURCES = malloc04/init.c
803malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \
804        $(support_includes)
805endif
806
807if TEST_malloctest
808lib_tests += malloctest
809lib_screens += malloctest/malloctest.scn
810malloctest_SOURCES = malloctest/init.c malloctest/task1.c \
811        malloctest/system.h
812malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \
813        $(support_includes)
814endif
815
816if TEST_math
817lib_tests += math
818lib_screens += math/math.scn
819math_SOURCES = math/init.c math/domath.c
820math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \
821        -I$(top_srcdir)/math
822math_LDADD = -lm
823endif
824
825if TEST_mathf
826lib_tests += mathf
827lib_screens += mathf/mathf.scn
828mathf_SOURCES = mathf/init.c mathf/domathf.c
829mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \
830        $(support_includes) -I$(top_srcdir)/math
831mathf_LDADD = -lm
832endif
833
834if TEST_mathl
835lib_tests += mathl
836lib_screens += mathl/mathl.scn
837mathl_SOURCES = mathl/init.c mathl/domathl.c
838mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \
839        $(support_includes) -I$(top_srcdir)/math \
840        -DNO_LONG_DOUBLE
841mathl_LDADD = -lm
842endif
843
844if TEST_md501
845lib_tests += md501
846lib_screens += md501/md501.scn
847lib_docs += md501/md501.doc
848md501_SOURCES = md501/init.c
849md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \
850        $(support_includes)
851endif
852
853if NETTESTS
854if HAS_POSIX
855if TEST_mghttpd01
856lib_tests += mghttpd01
857lib_screens += mghttpd01/mghttpd01.scn
858lib_docs += mghttpd01/mghttpd01.doc
859mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \
860        mghttpd01_tar.h mghttpd01/test-http-client.c \
861        mghttpd01/test-http-client.h
862mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \
863        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
864mghttpd01_LDADD = $(RTEMS_ROOT)cpukit/libmghttpd.a $(LDADD)
865mghttpd01_tar.c: mghttpd01/mghttpd01.tar
866        $(AM_V_GEN)$(BIN2C) -C $< $@
867mghttpd01_tar.h: mghttpd01/mghttpd01.tar
868        $(AM_V_GEN)$(BIN2C) -H $< $@
869mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h
870mghttpd01/init.c: mghttpd01_tar.h
871CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h
872endif
873endif
874endif
875
876if TEST_monitor
877lib_tests += monitor
878monitor_SOURCES = monitor/init.c monitor/system.h
879monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \
880        $(support_includes)
881endif
882
883if TEST_monitor02
884lib_tests += monitor02
885lib_screens += monitor02/monitor02.scn
886monitor02_SOURCES = monitor02/init.c monitor02/system.h
887monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \
888        $(support_includes)
889endif
890
891if TEST_mouse01
892lib_tests += mouse01
893lib_screens += mouse01/mouse01.scn
894lib_docs += mouse01/mouse01.doc
895mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \
896        mouse01/msmouse.c termios04/termios_testdriver_intr.c
897mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \
898        $(support_includes) -I$(top_srcdir)/termios04
899endif
900
901if TEST_nanosleep
902lib_tests += nanosleep.norun
903nanosleep_norun_SOURCES = POSIX/nanosleep.c
904nanosleep_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
905endif
906
907if NETTESTS
908if TEST_networking01
909lib_tests += networking01
910lib_screens += networking01/networking01.scn
911lib_docs += networking01/networking01.doc
912networking01_SOURCES = networking01/init.c
913networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \
914        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
915endif
916endif
917
918if TEST_newlib01
919lib_tests += newlib01
920lib_screens += newlib01/newlib01.scn
921lib_docs += newlib01/newlib01.doc
922newlib01_SOURCES = newlib01/init.c
923newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \
924        $(support_includes)
925endif
926
927if TEST_open
928lib_tests += open.norun
929open_norun_SOURCES = POSIX/open.c
930open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
931endif
932
933if TEST_pipe
934lib_tests += pipe.norun
935pipe_norun_SOURCES = POSIX/pipe.c
936pipe_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
937endif
938
939if TEST_posix_memalign
940lib_tests += posix_memalign.norun
941posix_memalign_norun_SOURCES = POSIX/posix_memalign.c
942posix_memalign_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
943endif
944
945if TEST_putenvtest
946lib_tests += putenvtest
947lib_screens += putenvtest/putenvtest.scn
948putenvtest_SOURCES = putenvtest/init.c
949putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \
950        $(support_includes)
951endif
952
953if TEST_pwdgrp01
954lib_tests += pwdgrp01
955lib_screens += pwdgrp01/pwdgrp01.scn
956lib_docs += pwdgrp01/pwdgrp01.doc
957pwdgrp01_SOURCES = pwdgrp01/init.c
958pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \
959        $(support_includes)
960endif
961
962if TEST_pwdgrp02
963lib_tests += pwdgrp02
964lib_screens += pwdgrp02/pwdgrp02.scn
965lib_docs += pwdgrp02/pwdgrp02.doc
966pwdgrp02_SOURCES = pwdgrp02/init.c
967pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \
968        $(support_includes)
969endif
970
971if TEST_rbheap01
972lib_tests += rbheap01
973lib_screens += rbheap01/rbheap01.scn
974lib_docs += rbheap01/rbheap01.doc
975rbheap01_SOURCES = rbheap01/init.c
976rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \
977        $(support_includes)
978endif
979
980if TEST_read
981lib_tests += read.norun
982read_norun_SOURCES = POSIX/read.c
983read_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
984endif
985
986if TEST_readv
987lib_tests += readv.norun
988readv_norun_SOURCES = POSIX/readv.c
989readv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
990endif
991
992if TEST_realloc
993lib_tests += realloc.norun
994realloc_norun_SOURCES = POSIX/realloc.c
995realloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
996endif
997
998if TEST_rtmonuse
999lib_tests += rtmonuse
1000lib_screens += rtmonuse/rtmonuse.scn
1001rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \
1002        rtmonuse/system.h
1003rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \
1004        $(support_includes)
1005endif
1006
1007if TEST_setjmp
1008lib_tests += setjmp.norun
1009setjmp_norun_SOURCES = POSIX/setjmp.c
1010setjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1011endif
1012
1013if TEST_sha
1014lib_tests += sha
1015lib_screens += sha/sha.scn
1016lib_docs += sha/sha.doc
1017sha_SOURCES = sha/init.c
1018sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes)
1019endif
1020
1021if TEST_shell01
1022lib_tests += shell01
1023lib_screens += shell01/shell01.scn
1024lib_docs += shell01/shell01.doc
1025shell01_SOURCES = shell01/init.c
1026shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \
1027        $(support_includes)
1028endif
1029
1030if TEST_sigaddset
1031lib_tests += sigaddset.norun
1032sigaddset_norun_SOURCES = POSIX/sigaddset.c
1033sigaddset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1034endif
1035
1036if TEST_sigdelset
1037lib_tests += sigdelset.norun
1038sigdelset_norun_SOURCES = POSIX/sigdelset.c
1039sigdelset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1040endif
1041
1042if TEST_sigemptyset
1043lib_tests += sigemptyset.norun
1044sigemptyset_norun_SOURCES = POSIX/sigemptyset.c
1045sigemptyset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1046endif
1047
1048if TEST_sigfillset
1049lib_tests += sigfillset.norun
1050sigfillset_norun_SOURCES = POSIX/sigfillset.c
1051sigfillset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1052endif
1053
1054if TEST_sigismember
1055lib_tests += sigismember.norun
1056sigismember_norun_SOURCES = POSIX/sigismember.c
1057sigismember_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1058endif
1059
1060if TEST_sigprocmask
1061lib_tests += sigprocmask.norun
1062sigprocmask_norun_SOURCES = POSIX/sigprocmask.c
1063sigprocmask_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1064endif
1065
1066if TEST_sparsedisk01
1067lib_tests += sparsedisk01
1068lib_screens += sparsedisk01/sparsedisk01.scn
1069lib_docs += sparsedisk01/sparsedisk01.doc
1070sparsedisk01_SOURCES = sparsedisk01/init.c
1071sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \
1072        $(support_includes)
1073endif
1074
1075if TEST_spi01
1076lib_tests += spi01
1077lib_screens += spi01/spi01.scn
1078lib_docs += spi01/spi01.doc
1079spi01_SOURCES = spi01/init.c
1080spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \
1081        $(support_includes)
1082endif
1083
1084if TEST_stackchk
1085lib_tests += stackchk
1086lib_screens += stackchk/stackchk.scn
1087stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \
1088        stackchk/system.h
1089stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \
1090        $(support_includes)
1091endif
1092
1093if TEST_stackchk01
1094lib_tests += stackchk01
1095lib_screens += stackchk01/stackchk01.scn
1096lib_docs += stackchk01/stackchk01.doc
1097stackchk01_SOURCES = stackchk01/init.c
1098stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \
1099        $(support_includes)
1100endif
1101
1102if TEST_stat
1103lib_tests += stat.norun
1104stat_norun_SOURCES = POSIX/stat.c
1105stat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1106endif
1107
1108if TEST_stringto01
1109lib_tests += stringto01
1110lib_screens += stringto01/stringto01.scn
1111lib_docs += stringto01/stringto01.doc
1112stringto01_SOURCES = stringto01/init.c \
1113        stringto01/stringto_test_template.h
1114stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \
1115        $(support_includes)
1116endif
1117
1118if NETTESTS
1119if TEST_syscall01
1120lib_tests += syscall01
1121lib_screens += syscall01/syscall01.scn
1122lib_docs += syscall01/syscall01.doc
1123syscall01_SOURCES = syscall01/init.c
1124syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \
1125        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
1126endif
1127endif
1128
1129if TARTESTS
1130if TEST_tar01
1131lib_tests += tar01
1132lib_screens += tar01/tar01.scn
1133lib_docs += tar01/tar01.doc
1134tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \
1135        tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h
1136if TARTEST_XZ
1137tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h
1138endif
1139tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \
1140        $(support_includes) $(test_includes) -I$(top_srcdir)/include
1141tar01_LDADD = $(RTEMS_ROOT)cpukit/librtemscpu.a $(RTEMS_ROOT)cpukit/libz.a $(LDADD)
1142tar01.tar: Makefile
1143        $(AM_V_GEN)rm -rf tar01_fs
1144        $(AM_V_GEN)$(MKDIR_P) tar01_fs/home
1145        $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an"; \
1146         echo "initial tar image.") > tar01_fs/home/test_file
1147        $(AM_V_GEN)(echo "#! joel"; \
1148         echo "ls -las /dev") > tar01_fs/home/test_script
1149        $(AM_V_GEN)chmod +x tar01_fs/home/test_script
1150        $(AM_V_GEN)(cd tar01_fs; \
1151         $(LN_S) home/test_file symlink; \
1152         $(PAX) -w -f ../tar01.tar home symlink)
1153tar01_tar.c: tar01.tar
1154        $(AM_V_GEN)$(BIN2C) -C $< $@
1155tar01_tar.h: tar01.tar
1156        $(AM_V_GEN)$(BIN2C) -H $< $@
1157tar01-tar.o: tar01-tar.c tar01-tar.h
1158tar01.tar.gz: tar01.tar
1159        $(AM_V_GEN)$(GZIP) < $< > $@
1160tar01_tar_gz.c: tar01.tar.gz
1161        $(AM_V_GEN)$(BIN2C) -C $< $@
1162tar01_tar_gz.h: tar01.tar.gz
1163        $(AM_V_GEN)$(BIN2C) -H $< $@
1164CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \
1165        tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h
1166if TARTEST_XZ
1167tar01.tar.xz: tar01.tar
1168        $(AM_V_GEN)$(XZ) < $< > $@
1169tar01_tar_xz.c: tar01.tar.xz
1170        $(AM_V_GEN)$(BIN2C) -C $< $@
1171tar01_tar_xz.h: tar01.tar.xz
1172        $(AM_V_GEN)$(BIN2C) -H $< $@
1173TAR01_XZ_H = tar01_tar_xz.h
1174CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h
1175endif
1176tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H)
1177endif
1178endif
1179
1180if TARTESTS
1181if TEST_tar02
1182lib_tests += tar02
1183lib_screens += tar02/tar02.scn
1184lib_docs += tar02/tar02.doc
1185tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \
1186        tar02_tar.c tar02_tar.h
1187tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \
1188        $(support_includes) $(test_includes) -I$(top_srcdir)/include
1189tar02.tar: Makefile
1190        $(AM_V_GEN)rm -rf tar02_fs
1191        $(AM_V_GEN)$(MKDIR_P) tar02_fs/home
1192        $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an" ; \
1193         echo "initial tar image.") > tar02_fs/home/test_file
1194        $(AM_V_GEN)(echo "#! joel" ; \
1195         echo "ls -las /dev") > tar02_fs/home/test_script
1196        $(AM_V_GEN)chmod +x tar02_fs/home/test_script
1197        $(AM_V_GEN)(cd tar02_fs; \
1198         $(LN_S) home/test_file symlink; \
1199         $(PAX) -w -f ../tar02.tar home symlink)
1200tar02_tar.c: tar02.tar
1201        $(AM_V_GEN)$(BIN2C) -C $< $@
1202tar02_tar.h: tar02.tar
1203        $(AM_V_GEN)$(BIN2C) -H $< $@
1204tar02-tar.o: tar02-tar.c tar02-tar.h
1205tar02/init.c: tar02_tar.h
1206CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h
1207endif
1208endif
1209
1210if TEST_tar03
1211lib_tests += tar03
1212lib_screens += tar03/tar03.scn
1213lib_docs += tar03/tar03.doc
1214tar03_SOURCES = tar03/init.c
1215tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \
1216        $(support_includes)
1217endif
1218
1219if NETTESTS
1220if TEST_telnetd01
1221lib_tests += telnetd01
1222lib_screens += telnetd01/telnetd01.scn
1223lib_docs += telnetd01/telnetd01.doc
1224telnetd01_SOURCES = telnetd01/init.c
1225telnetd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_telnetd01) \
1226        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
1227telnetd01_LDADD = $(RTEMS_ROOT)cpukit/libtelnetd.a $(LDADD)
1228endif
1229endif
1230
1231if TEST_termios
1232lib_tests += termios
1233termios_SOURCES = termios/init.c
1234termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \
1235        $(support_includes)
1236endif
1237
1238if TEST_termios01
1239lib_tests += termios01
1240lib_screens += termios01/termios01.scn
1241lib_docs += termios01/termios01.doc
1242termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \
1243        termios01/termios_testdriver.h
1244termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \
1245        $(support_includes) -I$(top_srcdir)/include
1246endif
1247
1248if TEST_termios02
1249lib_tests += termios02
1250lib_screens += termios02/termios02.scn
1251lib_docs += termios02/termios02.doc
1252termios02_SOURCES = termios02/init.c
1253termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \
1254        $(support_includes) -I$(top_srcdir)/include
1255endif
1256
1257if TEST_termios03
1258lib_tests += termios03
1259lib_screens += termios03/termios03.scn
1260lib_docs += termios03/termios03.doc
1261termios03_SOURCES = termios03/init.c \
1262        termios03/termios_testdriver_polled.c \
1263        termios03/termios_testdriver_polled.h
1264termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \
1265        $(support_includes)
1266endif
1267
1268if TEST_termios04
1269lib_tests += termios04
1270lib_screens += termios04/termios04.scn
1271lib_docs += termios04/termios04.doc
1272termios04_SOURCES = termios04/init.c \
1273        termios04/termios_testdriver_intr.c \
1274        termios04/termios_testdriver_intr.h
1275termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \
1276        $(support_includes)
1277endif
1278
1279if TEST_termios05
1280lib_tests += termios05
1281lib_screens += termios05/termios05.scn
1282lib_docs += termios05/termios05.doc
1283termios05_SOURCES = termios05/init.c \
1284        termios04/termios_testdriver_intr.c
1285termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \
1286        $(support_includes) -I$(top_srcdir)/termios04 -DTASK_DRIVEN
1287endif
1288
1289if TEST_termios06
1290lib_tests += termios06
1291lib_screens += termios06/termios06.scn
1292lib_docs += termios06/termios06.doc
1293termios06_SOURCES = termios06/init.c \
1294        termios03/termios_testdriver_polled.c termios06/test_pppd.c
1295termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \
1296        $(support_includes) -I$(top_srcdir)/termios03
1297endif
1298
1299if TEST_termios07
1300lib_tests += termios07
1301lib_screens += termios07/termios07.scn
1302lib_docs += termios07/termios07.doc
1303termios07_SOURCES = termios07/init.c \
1304        termios04/termios_testdriver_intr.c
1305termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \
1306        $(support_includes) -I$(top_srcdir)/termios04
1307endif
1308
1309if TEST_termios08
1310lib_tests += termios08
1311lib_screens += termios08/termios08.scn
1312lib_docs += termios08/termios08.doc
1313termios08_SOURCES = termios08/init.c \
1314        termios03/termios_testdriver_polled.c
1315termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \
1316        $(support_includes) -I$(top_srcdir)/termios03
1317endif
1318
1319if TEST_termios09
1320lib_tests += termios09
1321lib_screens += termios09/termios09.scn
1322lib_docs += termios09/termios09.doc
1323termios09_SOURCES = termios09/init.c
1324termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \
1325        $(support_includes)
1326endif
1327
1328if TEST_top
1329lib_tests += top
1330lib_screens += top/top.scn
1331top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \
1332        top/system.h
1333top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes)
1334endif
1335
1336if TEST_tztest
1337lib_tests += tztest
1338lib_screens += tztest/tztest.scn
1339lib_docs += tztest/tztest.doc
1340tztest_SOURCES = tztest/init.c
1341tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \
1342        $(support_includes)
1343endif
1344
1345if TEST_uid01
1346lib_tests += uid01
1347lib_docs += uid01/uid01.doc
1348uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \
1349        uid01/msmouse.c termios04/termios_testdriver_intr.c
1350uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \
1351        $(support_includes) -I$(top_srcdir)/termios04
1352endif
1353
1354if TEST_unlink
1355lib_tests += unlink.norun
1356unlink_norun_SOURCES = POSIX/unlink.c
1357unlink_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1358endif
1359
1360if TEST_utf8proc01
1361lib_tests += utf8proc01
1362lib_screens += utf8proc01/utf8proc01.scn
1363lib_docs += utf8proc01/utf8proc01.doc
1364utf8proc01_SOURCES = utf8proc01/init.c
1365utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \
1366        $(support_includes)
1367endif
1368
1369if TEST_vfork
1370lib_tests += vfork.norun
1371vfork_norun_SOURCES = POSIX/vfork.c
1372vfork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1373endif
1374
1375if TEST_wait
1376lib_tests += wait.norun
1377wait_norun_SOURCES = POSIX/wait.c
1378wait_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1379endif
1380
1381if TEST_waitpid
1382lib_tests += waitpid.norun
1383waitpid_norun_SOURCES = POSIX/waitpid.c
1384waitpid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1385endif
1386
1387if TEST_write
1388lib_tests += write.norun
1389write_norun_SOURCES = POSIX/write.c
1390write_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1391endif
1392
1393if TEST_writev
1394lib_tests += writev.norun
1395writev_norun_SOURCES = POSIX/writev.c
1396writev_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1397endif
1398
1399rtems_tests_PROGRAMS = $(lib_tests)
1400dist_rtems_tests_DATA = $(lib_screens) $(lib_docs)
Note: See TracBrowser for help on using the repository browser.