This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Rules
- To: libc-hacker@gnu.org
- Subject: Rules
- From: Philip Blundell <pb@nexus.co.uk>
- Date: Fri, 27 Nov 1998 09:37:25 +0100
Does anybody see a problem with this patch? The intention is to allow
Makerules to call extra-lib.mk before mentioning $(others), so that if a
program in $(others) depends on a library in the same directory's
$(extra-libs-others) the library will get built first. The particular case in
point is nss/getent when compiling with static NSS.
p.
1998-11-26 Philip Blundell <pb@nexus.co.uk>
* Rules: Include Makerules before defining `others' goal, so that
libraries are built before the programs that depend on them.
Index: Rules
===================================================================
RCS file: /home/cvs/repository/gnu/libc/Rules,v
retrieving revision 1.15
diff -u -r1.15 Rules
--- Rules 1998/10/19 12:06:55 1.15
+++ Rules 1998/11/26 17:50:07
@@ -39,15 +39,6 @@
.PHONY: all
all: objs lib others
-ifeq ($(build-programs),yes)
-others: $(addprefix $(objpfx),$(extra-objs) \
- $(install-lib) $(install-bin) \
- $(install-rootsbin) $(install-sbin))
-else
-others: $(addprefix $(objpfx),$(extra-objs) \
- $(install-lib))
-endif
-
ifneq "$(findstring env,$(origin headers))" ""
headers :=
endif
@@ -61,6 +52,15 @@
endif
include ../Makerules
+
+ifeq ($(build-programs),yes)
+others: $(addprefix $(objpfx),$(extra-objs) \
+ $(install-lib) $(install-bin) \
+ $(install-rootsbin) $(install-sbin))
+else
+others: $(addprefix $(objpfx),$(extra-objs) \
+ $(install-lib))
+endif
.PHONY: subdir_lib
subdir_lib: lib-noranlib
- Follow-Ups:
- Re: Rules
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>