From ae3bbeaa102cb1f66fefef808492bca1c447efe2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 9 Aug 2005 22:39:27 +0000 Subject: rework the headers depedency so that it plays nice with parallel building --- ldso/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ldso') diff --git a/ldso/Makefile b/ldso/Makefile index f0d1ca56d..b7ce3625a 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -1,6 +1,6 @@ # Makefile for uClibc # -# Copyright (C) 2000-2004 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # # 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 @@ ldso libdl shared: 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) -- cgit v1.2.3