diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-02-22 15:16:18 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-02-22 15:16:18 -0800 |
commit | 507c5013f8548fa873af1c60ac659b23103e447e (patch) | |
tree | 77a44e5621a00ae3e8deeecb58de1c59ba9d07ae /libpthread/nptl/sysdeps/mips | |
parent | 39548d72297a8c3d8d55e04b8240e4ce09913a82 (diff) | |
download | uClibc-alpine-507c5013f8548fa873af1c60ac659b23103e447e.tar.bz2 uClibc-alpine-507c5013f8548fa873af1c60ac659b23103e447e.tar.xz |
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/sysdeps/mips')
-rw-r--r-- | libpthread/nptl/sysdeps/mips/Makefile.arch | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/mips/Makefile.arch b/libpthread/nptl/sysdeps/mips/Makefile.arch index 5d77b0074..07234aae1 100644 --- a/libpthread/nptl/sysdeps/mips/Makefile.arch +++ b/libpthread/nptl/sysdeps/mips/Makefile.arch @@ -53,9 +53,11 @@ $(PTHREAD_ARCH_OUT)/tcb-offsets.c: $(PTHREAD_ARCH_DIR)/tcb-offsets.sym $(PTHREAD_ARCH_OUT)/tcb-offsets.s: $(PTHREAD_ARCH_OUT)/tcb-offsets.c $(compile.c) -nptl_arch_headers: $(PTHREAD_ARCH_OUT)/tcb-offsets.s +$(PTHREAD_ARCH_OUT)/tcb-offsets.h: $(PTHREAD_ARCH_OUT)/tcb-offsets.s $(do_sed) -n "s/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$\/#define \1 \2/p" $< > $(PTHREAD_ARCH_OUT)/tcb-offsets.h +nptl_arch_headers := $(PTHREAD_ARCH_OUT)/tcb-offsets.h + nptl_arch_headers_clean: $(RM) $(PTHREAD_ARCH_OUT)/tcb-offsets.c \ $(PTHREAD_ARCH_OUT)/tcb-offsets.s \ |