From 507c5013f8548fa873af1c60ac659b23103e447e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 22 Feb 2010 15:16:18 -0800 Subject: 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 --- libpthread/nptl/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/nptl/Makefile.in') 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) \ -- cgit v1.2.3