aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-01-16 17:44:51 +0000
committerUlrich Drepper <drepper@redhat.com>2002-01-16 17:44:51 +0000
commitde13e6e79b95fb939bd6698a7be98910312897d1 (patch)
tree19453123cd12feca75e5e24b527d56b54286ca3a /linuxthreads/Makefile
parentb26e29d8c834410c8d8add0a2ea7768f3a57c6c7 (diff)
downloadglibc-de13e6e79b95fb939bd6698a7be98910312897d1.tar
glibc-de13e6e79b95fb939bd6698a7be98910312897d1.tar.gz
glibc-de13e6e79b95fb939bd6698a7be98910312897d1.tar.bz2
glibc-de13e6e79b95fb939bd6698a7be98910312897d1.zip
Update.
2002-01-12 Andreas Schwab <schwab@suse.de> * Makefile (test-srcs): Add tst-signal. (tests): Run tst-signal. (distribute): Add tst-signal.sh. * tst-signal.c, tst-signal.sh: New files.
Diffstat (limited to 'linuxthreads/Makefile')
-rw-r--r--linuxthreads/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/linuxthreads/Makefile b/linuxthreads/Makefile
index cf01102db0..2237482f3b 100644
--- a/linuxthreads/Makefile
+++ b/linuxthreads/Makefile
@@ -25,7 +25,7 @@ linuxthreads-version := $(shell sed -n 's/^.*$(subdir)-\([0-9.]*\).*$$/\1/p' \
Banner)
headers := pthread.h semaphore.h
-distribute := internals.h queue.h restart.h spinlock.h
+distribute := internals.h queue.h restart.h spinlock.h tst-signal.sh
routines := weaks no-tsd
@@ -61,6 +61,7 @@ librt-tests = ex10 ex11
tests = ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 $(librt-tests) ex12 ex13 joinrace \
tststack $(tests-nodelete-$(have-z-nodelete)) ecmutex ex14 ex15 ex16 \
ex17 ex18 tst-cancel tst-context
+test-srcs = tst-signal
ifeq (yes,$(build-shared))
tests-nodelete-yes = unload
@@ -88,11 +89,11 @@ $(objpfx)libpthread.so: $(common-objpfx)libc.so \
# Make sure we link with the thread library.
ifeq ($(build-shared),yes)
-$(addprefix $(objpfx),$(tests)): $(objpfx)libpthread.so
+$(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.so
$(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so
$(objpfx)unload: $(common-objpfx)dlfcn/libdl.so
else
-$(addprefix $(objpfx),$(tests)): $(objpfx)libpthread.a
+$(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
$(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.a
endif
ifeq ($(build-bounded),yes)
@@ -128,3 +129,11 @@ ifeq (yes,$(build-static-nss))
otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
$(resolvobjdir)/libresolv.a
endif
+
+ifeq (no,$(cross-compiling))
+ifeq (yes,$(build-shared))
+tests: $(objpfx)tst-signal.out
+$(objpfx)tst-signal.out: tst-signal.sh $(objpfx)tst-signal
+ $(SHELL) -e $< $(common-objpfx)
+endif
+endif