[uClibc-cvs] svn commit: trunk/uClibc/ldso

vapier at uclibc.org vapier at uclibc.org
Tue Aug 9 22:39:27 UTC 2005


Author: vapier
Date: 2005-08-09 16:39:27 -0600 (Tue, 09 Aug 2005)
New Revision: 11089

Log:
rework the headers depedency so that it plays nice with parallel building

Modified:
   trunk/uClibc/ldso/Makefile


Changeset:
Modified: trunk/uClibc/ldso/Makefile
===================================================================
--- trunk/uClibc/ldso/Makefile	2005-08-09 22:20:33 UTC (rev 11088)
+++ trunk/uClibc/ldso/Makefile	2005-08-09 22:39:27 UTC (rev 11089)
@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2004 Erik Andersen <andersen at uclibc.org>
+# Copyright (C) 2000-2005 Erik Andersen <andersen at uclibc.org>
 #
 # This program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU Library General Public License as published by the Free
@@ -35,21 +35,21 @@
 	echo "Skipping $@ target"
 endif
 
-HEADERS = $(patsubst %, include/%, elf.h dl-startup.h dl-syscalls.h dl-sysdep.h dl-debug.h)
-headers: $(HEADERS) include/dl-progname.h
+LN_HEADERS      := $(patsubst %, include/%, elf.h)
+LN_ARCH_HEADERS := $(patsubst %, include/%, dl-startup.h dl-syscalls.h dl-sysdep.h dl-debug.h)
+HEADERS         := $(LN_HEADERS) $(LN_ARCH_HEADERS) include/dl-progname.h
+headers: $(HEADERS)
+$(LN_HEADERS):
+	$(LN) -fs $(TOPDIR)../$@ $@
+$(LN_ARCH_HEADERS):
+	$(LN) -fs ../ldso/$(TARGET_ARCH)/$(patsubst include/%,%,$@) $@
 include/dl-progname.h:
-	echo "const char *_dl_progname=\""$(UCLIBC_LDSO)"\";" \
+	echo 'const char *_dl_progname="$(UCLIBC_LDSO)";' \
 		> include/dl-progname.h
-	echo "#include \"$(TARGET_ARCH)/elfinterp.c\"" \
+	echo '#include "$(TARGET_ARCH)/elfinterp.c"' \
 		>> include/dl-progname.h
-$(HEADERS):
-	$(LN) -fs $(TOPDIR)../include/elf.h include/
-	$(LN) -fs ../ldso/$(TARGET_ARCH)/dl-startup.h include/
-	$(LN) -fs ../ldso/$(TARGET_ARCH)/dl-syscalls.h include/
-	$(LN) -fs ../ldso/$(TARGET_ARCH)/dl-sysdep.h include/
-	$(LN) -fs ../ldso/$(TARGET_ARCH)/dl-debug.h include/
 
 clean:
 	set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d $@ ; done
 	-find . -name '*~' | xargs $(RM)
-	$(RM) $(HEADERS) include/dl-progname.h
+	$(RM) $(HEADERS)




More information about the uClibc-cvs mailing list