summaryrefslogtreecommitdiff
path: root/libpthread/nptl/Makefile.in
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-02-22 15:16:18 -0800
committerKhem Raj <raj.khem@gmail.com>2010-02-22 15:16:18 -0800
commit507c5013f8548fa873af1c60ac659b23103e447e (patch)
tree77a44e5621a00ae3e8deeecb58de1c59ba9d07ae /libpthread/nptl/Makefile.in
parent39548d72297a8c3d8d55e04b8240e4ce09913a82 (diff)
nptl/headers: Convert the makefile targets into variables.
* Introduce pregen-headers-y which is list of generated headers during the build and add this to pregen target in top level makefile. Also add nptl_headers, nptl_arch_headers, nptl_linux_headers to this if compiling with nptl. * Replace pthread_pregen var with pregen-headers-y. * Make nptl_headers, nptl_arch_headers, nptl_linux_headers variables instead of sub targets. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libpthread/nptl/Makefile.in')
-rw-r--r--libpthread/nptl/Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/nptl/Makefile.in b/libpthread/nptl/Makefile.in
index a1c7ac130..253d36f08 100644
--- a/libpthread/nptl/Makefile.in
+++ b/libpthread/nptl/Makefile.in
@@ -270,7 +270,7 @@ headers_clean-y += nptl_headers_clean
-include $(PTHREAD_DIR)/sysdeps/unix/sysv/linux/Makefile.in
-include $(PTHREAD_DIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/Makefile.arch
-pthread_pregen := nptl_headers nptl_arch_headers nptl_linux_headers
+pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(nptl_headers) $(nptl_arch_headers) $(nptl_linux_headers)
lib-a-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.a
lib-so-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.so
@@ -326,14 +326,14 @@ $(top_builddir)include/bits/libc-lock.h: | include/bits
$(top_builddir)include/bits/stdio-lock.h: | include/bits
$(do_ln) ../../$(PTDIR)/sysdeps/pthread/bits/$(@F) $(top_builddir)$@
-nptl_headers_bootstrap:= $(top_builddir)include/pthread.h \
+nptl_headers_bootstrap := $(top_builddir)include/pthread.h \
$(top_builddir)include/semaphore.h \
$(top_builddir)include/bits/semaphore.h \
$(top_builddir)include/bits/pthreadtypes.h \
$(top_builddir)include/bits/libc-lock.h \
$(top_builddir)include/bits/stdio-lock.h
-nptl_headers: $(PTHREAD_OUT)/pthread-errnos.h
+nptl_headers := $(PTHREAD_OUT)/pthread-errnos.h
nptl_headers_clean:
$(do_rm) $(nptl_headers_bootstrap) \