diff options
author | Roland McGrath <roland@gnu.org> | 1998-07-20 04:43:11 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-07-20 04:43:11 +0000 |
commit | e1e0d634011bc3d7a486c833507cea87c78a9d59 (patch) | |
tree | f4a3ec0b85c1390a933b223d844dfb8ed37324c2 /Makeconf | |
parent | 9783fbf0a93e32c51eb6905c9a668d3d4cc339db (diff) |
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* 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.
Diffstat (limited to 'Makeconf')
-rw-r--r-- | Makeconf | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -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 $@ - |