svn commit: trunk/uClibc: libpthread

psm at uclibc.org psm at uclibc.org
Wed Sep 21 23:12:20 UTC 2005


Author: psm
Date: 2005-09-21 16:12:18 -0700 (Wed, 21 Sep 2005)
New Revision: 11542

Log:
remove unused headers on install and clean up all thread related ones

Modified:
   trunk/uClibc/Makefile
   trunk/uClibc/libpthread/Makefile


Changeset:
Modified: trunk/uClibc/Makefile
===================================================================
--- trunk/uClibc/Makefile	2005-09-21 23:00:49 UTC (rev 11541)
+++ trunk/uClibc/Makefile	2005-09-21 23:12:18 UTC (rev 11542)
@@ -166,6 +166,7 @@
 	fi ; \
 	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
 		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/libc-internal.h
 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
 	# Remove floating point related headers since float support is disabled.
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/complex.h
@@ -173,6 +174,7 @@
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ieee754.h
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/math.h
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/tgmath.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/uClibc_fpmax.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_WCHAR)),y)
 	# Remove wide char headers since wide char support is disabled.
@@ -220,6 +222,16 @@
 	# Remove shadow header since shadow password support is disabled.
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/shadow.h
 endif
+ifneq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+	# Remove thread_db header since thread debug support is disabled.
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/thread_db.h
+endif
+ifneq ($(strip $(UCLIBC_HAS_THREADS)),y)
+	# Remove pthread headers since thread support is disabled.
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/*thread*.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/semaphore.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/*thread*.h
+endif
 	- at for i in `find  $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
 	    chmod 755 $$i; chmod 644 $$i/*.h > /dev/null 2>&1; \
 	done;

Modified: trunk/uClibc/libpthread/Makefile
===================================================================
--- trunk/uClibc/libpthread/Makefile	2005-09-21 23:00:49 UTC (rev 11541)
+++ trunk/uClibc/libpthread/Makefile	2005-09-21 23:12:18 UTC (rev 11542)
@@ -129,6 +129,8 @@
 clean: subdirs_clean
 	$(RM) *.[oa] *~ core $(LIBPTHREAD) $(LIBPTHREAD_SHARED_FULLNAME) \
 		$(LIBTHREAD_DB) $(LIBTHREAD_DB_SHARED_FULLNAME)		 \
-		$(RM) $(TOPDIR)include/pthread.h $(TOPDIR)include/semaphore.h
+		$(RM) $(TOPDIR)include/pthread.h $(TOPDIR)include/semaphore.h \
+		$(RM) $(TOPDIR)include/bits/pthreadtypes.h $(TOPDIR)include/bits/semaphore.h \
+		$(RM) $(TOPDIR)include/bits/libc-lock.h $(TOPDIR)include/bits/stdio-lock
 
 .PHONY: dummy




More information about the uClibc-cvs mailing list