diff options
Diffstat (limited to 'threadlib/Makefile.am')
| -rw-r--r-- | threadlib/Makefile.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/threadlib/Makefile.am b/threadlib/Makefile.am new file mode 100644 index 0000000..1ff4301 --- /dev/null +++ b/threadlib/Makefile.am @@ -0,0 +1,33 @@ +# +# Copyright 2000-2002 Double Precision, Inc. +# See COPYING for distribution information. +# + + +noinst_LIBRARIES=libthreadlib.a +noinst_DATA=libthread.dep +noinst_PROGRAMS=threadtest + +CLEANFILES=libthread.dep + +if HAVE_PTHREADS +threadc=pthread.c +else +threadc=nopthread.c +endif + +libthreadlib_a_SOURCES=$(threadc) threadlib.h havepthread.h nopthread.h +EXTRA_DIST=pthread.c nopthread.c testsuite testsuite.txt + +libthread.dep: config.status + echo @THREADLIB@ >libthread.dep + +threadtest_SOURCES=test.c +threadtest_DEPENDENCIES=libthreadlib.a libthread.dep +threadtest_LDADD=libthreadlib.a `cat libthread.dep` + +check-am: threadtest + @echo '------------- Testing threadlib ---------------' + @sh $(srcdir)/testsuite | tee t + @cmp -s t $(srcdir)/testsuite.txt + @rm -f t |
