summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-09-04 18:02:56 +0000
committerRoland McGrath <roland@gnu.org>1998-09-04 18:02:56 +0000
commit3f42726cae7f7b867d29dfe2f0639709c7c4fc61 (patch)
tree754d0096e27e241028ecbd46ad45ee50770249b6
parente1f9b7fa12ec4ab01cefb6f28b01e593c9619720 (diff)
1998-09-04 Roland McGrath <roland@baalperazim.frob.com>
* Makeconf (objs): New target, just compile w/o ar or ld. (OBJS): Remove bogus `%.o' default defn. * Makefile (objs, %-objs): New subdir target.
-rw-r--r--Makeconf15
-rw-r--r--Makefile7
2 files changed, 16 insertions, 6 deletions
diff --git a/Makeconf b/Makeconf
index b7c0a170..c09a31e9 100644
--- a/Makeconf
+++ b/Makeconf
@@ -148,7 +148,16 @@ BUGADDR_REF = -uargp_program_bug_address
# Standard targets
-.PHONY: all install libs relink clean
+.PHONY: all install libs relink clean objs
+
+# Just build all the object files.
+objs: $(OBJS)
+ifneq ($(no_prof),t)
+objs: $(OBJS:%.o=%_p.o)
+endif
+ifneq ($(no_pic),t)
+objs: $(OBJS:%.o=%_pic.o)
+endif
# Installation
ifeq ($(doinst),one)
@@ -213,10 +222,6 @@ $(installationdirlist): %:
@$(MKINSTALLDIRS) $@
# Building the target
-ifeq ($(OBJS),)
-OBJS=%.o
-endif
-
ifeq ($(doinst),many)
target = $(filter-out $(special-targets),$(targets))
endif
diff --git a/Makefile b/Makefile
index 99968f29..40decb7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation
+# Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -77,6 +77,8 @@ clean: $(addsuffix -clean,$(lib-subdirs)) $(addsuffix -clean,$(working-prog-subd
relink: $(addsuffix -relink,$(lib-subdirs) $(prog-subdirs))
+objs: $(addsuffix -objs,$(lib-subdirs) $(prog-subdirs))
+
install: $(addsuffix -install,$(lib-subdirs) $(working-prog-subdirs) \
$(other-subdirs))
@@ -101,6 +103,9 @@ FORCE:
%-relink:
$(MAKE) -C $* relink no_deps=t
+%-objs:
+ $(MAKE) -C $* objs
+
%-install:
$(MAKE) -C $* install