Bläddra i källkod

nptl: Harmonize objects and headers makefile clean targets

Update all the nptl clean targets (both objects and headers) to
use the new syntax using CLEAN_<full_path> and HEADER_<full_path>.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso 14 år sedan
förälder
incheckning
a63e523a5e

+ 4 - 4
libpthread/nptl/Makefile.in

@@ -261,8 +261,8 @@ endif
 libpthread-so-y := $(patsubst $(PTHREAD_DIR)/%.c,$(PTHREAD_OUT)/%.oS,$(libpthread_so_SRC))
 libpthread-static-y += $(patsubst $(PTHREAD_DIR)/%.c,$(PTHREAD_OUT)/%.o,$(libpthread_a_SRC) $(libpthread_static_SRC))
 
-objclean-y += libpthread_clean
-headers_clean-y += nptl_headers_clean
+objclean-y += CLEAN_libpthread/nptl
+headers_clean-y += HEADERCLEAN_libpthread/nptl
 
 -include $(PTHREAD_DIR)/sysdeps/generic/Makefile.in
 -include $(PTHREAD_DIR)/sysdeps/pthread/Makefile.in
@@ -333,9 +333,9 @@ nptl_headers_bootstrap := $(top_builddir)include/pthread.h \
 		$(top_builddir)include/bits/stdio-lock.h
 
 
-nptl_headers_clean:
+CLEAN_libpthread/nptl:
 	$(do_rm) $(nptl_headers_bootstrap) \
 	      $(addprefix $(PTHREAD_OUT)/pthread-errnos., c h s)
 
-libpthread_clean:
+HEADERCLEAN_libpthread/nptl:
 	$(do_rm) $(addprefix $(PTHREAD_OUT)/*., o os oS a)

+ 2 - 2
libpthread/nptl/sysdeps/generic/Makefile.in

@@ -24,7 +24,7 @@ libc-static-y+=$(LIBC_GENERIC_OBJ)
 
 libc-nomulti-y+=$(LIBC_GENERIC_OBJ)
 
-objclean-y+=nptl_pthread_generic_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/generic
 
-nptl_pthread_generic_clean:
+CLEAN_libpthread/nptl/sysdeps/generic:
 	$(do_rm) $(addprefix $(PTHREAD_GENERIC_OUT)/*., o os oS)

+ 4 - 4
libpthread/nptl/sysdeps/i386/Makefile.arch

@@ -27,8 +27,8 @@ libpthread-so-y += $(PTHREAD_ARCH_OBJ:.o=.oS)
 
 libpthread-nomulti-y += $(PTHREAD_ARCH_OBJ)
 
-objclean-y += nptl_arch_clean
-headers_clean-y += nptl_arch_headers_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/i386
+headers_clean-y += HEADERCLEAN_libpthread/nptl/sysdeps/i386
 
 #
 # Create 'tcb-offsets.h' header file.
@@ -46,8 +46,8 @@ $(PTHREAD_ARCH_OUT)/tcb-offsets.h: $(PTHREAD_ARCH_OUT)/tcb-offsets.s
 
 pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(PTHREAD_ARCH_OUT)/tcb-offsets.h
 
-nptl_arch_headers_clean:
+HEADERCLEAN_libpthread/nptl/sysdeps/i386:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/tcb-offsets., c s h)
 
-nptl_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/i386:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/pthread/Makefile.in

@@ -155,9 +155,9 @@ $(pthread_DIR)/pt-sigfillset.c:
 $(pthread_DIR)/pt-sigprocmask.c:
 	$(LN) -s sigprocmask.c $@
 
-objclean-y += nptl_pthread_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/pthread
 
-nptl_pthread_clean:
+CLEAN_libpthread/nptl/sysdeps/pthread:
 	$(do_rm) $(addprefix $(pthread_OUT)/*., o os oS s S) $(pthread_OUT)/defs.h \
 	      $(pthread_DIR)/pt-sigaction.c $(pthread_DIR)/pt-sigfillset.c \
 	      $(pthread_DIR)/pt-sigprocmask.c

+ 4 - 4
libpthread/nptl/sysdeps/sh/Makefile.arch

@@ -30,8 +30,8 @@ libpthread-so-y += $(PTHREAD_ARCH_OBJ:.o=.oS)
 
 libpthread-nomulti-y += $(PTHREAD_ARCH_OBJ)
 
-objclean-y += nptl_arch_clean
-headers_clean-y += nptl_arch_headers_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/sh
+headers_clean-y += HEADERCLEAN_libpthread/nptl/sysdeps/sh
 
 #
 # Create 'tcb-offsets.h' header file.
@@ -49,8 +49,8 @@ $(PTHREAD_ARCH_OUT)/tcb-offsets.h: $(PTHREAD_ARCH_OUT)/tcb-offsets.s
 
 pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(PTHREAD_ARCH_OUT)/tcb-offsets.h
 
-nptl_arch_headers_clean:
+HEADERCLEAN_libpthread/nptl/sysdeps/sh:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/tcb-offsets., c s h)
 
-nptl_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/sh:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/sparc/Makefile.arch

@@ -27,8 +27,8 @@ libpthread-so-y += $(PTHREAD_ARCH_OBJ:.o=.oS)
 
 libpthread-nomulti-y += $(PTHREAD_ARCH_OBJ)
 
-objclean-y += nptl_arch_clean
-headers_clean-y += nptl_arch_headers_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/sparc
+headers_clean-y += HEADERCLEAN_libpthread/nptl/sysdeps/sparc
 
 #
 # Create 'tcb-offsets.h' header file.

+ 4 - 4
libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.in

@@ -141,8 +141,8 @@ LIBRT_LINUX_OBJ := $(patsubst %.c,$(PTHREAD_LINUX_OUT)/%.o,$(librt_CSRC))
 librt-a-y += $(LIBRT_LINUX_OBJ)
 librt-so-y += $(LIBRT_LINUX_OBJ:.o=.oS)
 
-objclean-y += nptl_linux_clean
-headers_clean-y += nptl_linux_headers_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux
+headers_clean-y += HEADERCLEAN_libpthread/nptl/sysdeps/unix/sysv/linux
 
 #
 # Create header files.
@@ -235,7 +235,7 @@ ALL_HEADERS_BITS_PTHREAD := $(addprefix include/bits/,$(HEADERS_BITS_PTHREAD))
 $(ALL_HEADERS_BITS_PTHREAD):
 	$(do_ln) ../../$(PTHREAD_LINUX_DIR)/bits/$(@F) $(top_builddir)$@
 
-nptl_linux_headers_clean:
+HEADERCLEAN_libpthread/nptl/sysdeps/unix/sysv/linux:
 	$(do_rm) $(addprefix $(PTHREAD_LINUX_OUT)/gen_lowlevelbarrier., c s) \
 	$(addprefix $(PTHREAD_LINUX_OUT)/gen_lowlevelcond., c s) \
 	$(addprefix $(PTHREAD_LINUX_OUT)/gen_lowlevelrwlock., c s) \
@@ -252,5 +252,5 @@ nptl_linux_headers_clean:
 	$(PTHREAD_LINUX_OUT)/pthread-pi-defines.h
 
 
-nptl_linux_clean:
+CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux:
 	$(do_rm) $(addprefix $(PTHREAD_LINUX_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch

@@ -65,7 +65,7 @@ libc-shared-y+=$(LIBC_LINUX_ARCH_OBJ:.o=.oS)
 
 libc-nomulti-y+=$(LIBC_LINUX_ARCH_OBJ)
 
-objclean-y+=nptl_linux_arch_clean
+objclean-y+=CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/i386
 
-nptl_linux_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/i386:
 	$(do_rm) $(addprefix $(LINUX_ARCH_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch

@@ -79,7 +79,7 @@ libc-shared-y+=$(LIBC_LINUX_ARCH_OBJ:.o=.oS)
 
 libc-nomulti-y+=$(LIBC_LINUX_ARCH_OBJ)
 
-objclean-y+=nptl_linux_arch_clean
+objclean-y+=CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/sh
 
-nptl_linux_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/sh:
 	$(do_rm) $(addprefix $(LINUX_ARCH_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch

@@ -61,7 +61,7 @@ libc-shared-y+=$(LIBC_LINUX_ARCH_OBJ:.o=.oS)
 
 libc-nomulti-y+=$(LIBC_LINUX_ARCH_OBJ)
 
-objclean-y+=nptl_linux_arch_clean
+objclean-y+=CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/sparc
 
-nptl_linux_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/sparc:
 	$(do_rm) $(addprefix $(LINUX_ARCH_OUT)/*., o os oS)

+ 2 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch

@@ -72,7 +72,7 @@ libc-shared-y+=$(LIBC_LINUX_ARCH_OBJ:.o=.oS)
 
 libc-nomulti-y+=$(LIBC_LINUX_ARCH_OBJ)
 
-objclean-y+=nptl_linux_arch_clean
+objclean-y+=CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/x86_64
 
-nptl_linux_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/unix/sysv/linux/x86_64:
 	$(do_rm) $(addprefix $(LINUX_ARCH_OUT)/*., o os oS)

+ 4 - 4
libpthread/nptl/sysdeps/x86_64/Makefile.arch

@@ -27,8 +27,8 @@ libpthread-so-y += $(PTHREAD_ARCH_OBJ:.o=.oS)
 
 libpthread-nomulti-y += $(PTHREAD_ARCH_OBJ)
 
-objclean-y += nptl_arch_clean
-headers_clean-y += nptl_arch_headers_clean
+objclean-y += CLEAN_libpthread/nptl/sysdeps/x86_64
+headers_clean-y += HEADERCLEAN_libpthread/nptl/sysdeps/x86_64
 
 #
 # Create 'tcb-offsets.h' header file.
@@ -46,8 +46,8 @@ $(PTHREAD_ARCH_OUT)/tcb-offsets.h: $(PTHREAD_ARCH_OUT)/tcb-offsets.s
 
 pregen-headers-$(UCLIBC_HAS_THREADS_NATIVE) += $(PTHREAD_ARCH_OUT)/tcb-offsets.h
 
-nptl_arch_headers_clean:
+HEADERCLEAN_libpthread/nptl/sysdeps/x86_64:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/tcb-offsets., c s h)
 
-nptl_arch_clean:
+CLEAN_libpthread/nptl/sysdeps/x86_84:
 	$(do_rm) $(addprefix $(PTHREAD_ARCH_OUT)/*., o os oS)

+ 4 - 4
libpthread/nptl_db/Makefile.in

@@ -37,9 +37,9 @@ libthread_db-multi-y := $(libthread_db_SRC)
 
 lib-a-$(PTHREADS_DEBUG_SUPPORT) += $(top_builddir)lib/libthread_db.a
 lib-so-$(PTHREADS_DEBUG_SUPPORT) += $(top_builddir)lib/libthread_db.so
-objclean-y += libthread_db_clean
+objclean-y += CLEAN_libpthread/nptl_db
 headers-$(PTHREADS_DEBUG_SUPPORT) += $(nptl_db_headers)
-headers_clean-y += nptl_db_headers_clean
+headers_clean-y += HEADERCLEAN_libpthread/nptl_db
 
 ifeq ($(DOPIC),y)
 $(top_builddir)lib/libthread_db.so: $(top_builddir)lib/libthread_db.a $(libc)
@@ -64,8 +64,8 @@ $(top_builddir)include/thread_db.h:
 
 nptl_db_headers:= $(top_builddir)include/thread_db.h
 
-nptl_db_headers_clean:
+HEADERCLEAN_libpthread/nptl_db:
 	$(do_rm) $(nptl_db_headers)
 
-libthread_db_clean:
+CLEAN_libpthread/nptl_db:
 	$(do_rm) $(addprefix $(libthread_db_OUT)/*., o oS a)