From e1e0d634011bc3d7a486c833507cea87c78a9d59 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Jul 1998 04:43:11 +0000 Subject: 1998-07-20 Roland McGrath * config.make.in (build-profiled): New variable, subst @profile@. * Makeconf (no_prof): Set to t if $(build-profiled) is not no. * Makeconf: Inhibit $(target).prof_d include if no_prof=t. --- Makeconf | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Makeconf b/Makeconf index 7f69235b..b7c0a170 100644 --- a/Makeconf +++ b/Makeconf @@ -55,6 +55,12 @@ endif # This sets up variables for build tools and installation directories. include $(..)config.make +# Test build options set by configure. +ifeq (no,$(build-profiled)) +no_prof = t +endif + + # Flags for compilation. # It is important to have this inclusion first; that picks up our # library header files locally rather than from installed copies. @@ -147,7 +153,7 @@ BUGADDR_REF = -uargp_program_bug_address # Installation ifeq ($(doinst),one) all: $(target) -install: $(installationdir) $(installationdir)/$(target) +install: $(installationdir) $(installationdir)/$(target) $(installationdir)/$(target): $(target) $(INSTALL_PROGRAM) $(INSTALL-$<-ops) $< $@ endif @@ -163,9 +169,9 @@ ifeq ($(makemode),library) all: libs install libs: add-to-librecord add-to-librecord: $(targets) -install: $(libdir) $(includedir)/$(installhdrsubdir) $(addprefix $(libdir)/,$(targets)) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) +install: $(libdir) $(includedir)/$(installhdrsubdir) $(addprefix $(libdir)/,$(targets)) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) -install-headers: $(includedir)/$(installhdrsubdir) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) +install-headers: $(includedir)/$(installhdrsubdir) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) $(includedir)/$(installhdrsubdir): $(includedir) @$(MKINSTALLDIRS) $@ @@ -318,7 +324,7 @@ relink: # We record which libraries have been built in this run in the file # $(librecord). That file contains a series of lines like # `../libfoo/libfoo.a ../libfoo/libfoo.so: ; /bin/true' -# that serve to inhibit the pattern rule which follows from doing anything. +# that serve to inhibit the pattern rule which follows from doing anything. # Above, when we make `libs' in library directories, we always append # to $(librecord), so that future make invocations don't bother repeating # the effort. @@ -341,7 +347,7 @@ relink: # Building libraries from other directories. We force both libraries to be # built if either is, because it will use the appropriate one even if the other -# is specified in someone's dependency list. +# is specified in someone's dependency list. #../%.a ../%.so: FORCE # $(MAKE) -C $(dir $@) libs @@ -426,9 +432,11 @@ ifneq ($(no_deps),t) ifneq ($(makemode),library) ifneq ($(prof-depend),t) +ifneq ($(no_prof),t) -include $(addsuffix .prof_d,$(target)) /dev/null endif endif +endif # For each .o file we need a .d file. -include $(subst .o,.d,$(filter %.o,$(OBJS))) /dev/null @@ -488,4 +496,3 @@ endef %: %.sh $(top_srcdir)/sh-version.sed sed -f $(top_srcdir)/sh-version.sed < $< > $@ chmod +x $@ - -- cgit v1.2.3