summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier1996-08-13 07:48:33 +0000
committerMarc G. Fournier1996-08-13 07:48:33 +0000
commitca5db6cab1107ab177203b7aef80532ac99fdea6 (patch)
treea027f55eb6cbf3d89a352078a182e2b16251d2cd
parenta721c91adebeb566dc1880630aa1627d4bb4c2aa (diff)
I have attached a minor update for the Postgres make files. This update
does 2 things: 1) Make it hard to not notice the make failed. (As you recall, someone on the mailing list had this problem. I've had it to some extent myself). The 1.02 make files continue with the next subdirectory when a make in a subdirectory fails. The patch makes the make stop in the conventional way when a submake fails. It also adds a reassuring message when the make succeeds and adds a note to the INSTALL file to expect it. 2) Include loader flags on all invocations of the linker. The 1.02 make files omit the $(LDFLAGS) on some of the linker invocations. On my system, I need one of those flags just to make it invoke the proper version of the compiler/linker, so LDFLAGS has to be everywhere. Submitted by: Bryan Henderson <[email protected]>
-rw-r--r--src/Makefile20
-rw-r--r--src/bin/Makefile22
-rw-r--r--src/mk/postgres.lib.mk4
-rw-r--r--src/mk/postgres.prog.mk4
4 files changed, 27 insertions, 23 deletions
diff --git a/src/Makefile b/src/Makefile
index 5f6c4b85c87..00c544d78cc 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile,v 1.3 1996/08/01 19:46:46 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/Makefile,v 1.4 1996/08/13 07:47:43 scrappy Exp $
#
# NOTES
# objdir - location of the objects and generated files (eg. obj)
@@ -17,14 +17,6 @@
MKDIR=./mk
-include $(MKDIR)/../Makefile.global
-SUBDIR= backend libpq
-
-ifeq ($(USE_TCL), true)
-SUBDIR += libpgtcl
-endif
-
-SUBDIR+= bin ../doc
-
FIND = find
# assuming gnu tar and split here
TAR = tar
@@ -33,7 +25,15 @@ SPLIT = split
ETAGS = etags
XARGS = xargs
-include mk/postgres.subdir.mk
+.DEFAULT all:
+ $(MAKE) -C backend $@
+ $(MAKE) -C libpq $@
+ifeq ($(USE_TCL), true)
+ $(MAKE) -C libpgtcl $@
+endif
+ $(MAKE) -C bin $@
+ $(MAKE) -C ../doc $@
+ @echo All of Postgres95 is successfully made. Ready to install.
TAGS:
rm -f TAGS; \
diff --git a/src/bin/Makefile b/src/bin/Makefile
index f3ef4a87e50..1079d5cd2b4 100644
--- a/src/bin/Makefile
+++ b/src/bin/Makefile
@@ -7,29 +7,33 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.3 1996/07/25 06:54:26 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.4 1996/08/13 07:48:15 scrappy Exp $
#
#-------------------------------------------------------------------------
MKDIR=../mk
-include $(MKDIR)/../Makefile.global
+.DEFAULT all:
#
# C programs
#
-SUBDIR= pg_id pg_version psql pg_dump
-
+ $(MAKE) -C pg_id $@
+ $(MAKE) -C pg_version $@
+ $(MAKE) -C psql $@
+ $(MAKE) -C pg_dump $@
#
# Shell scripts
#
-SUBDIR+= cleardbdir createdb createuser destroydb destroyuser initdb
-
+ $(MAKE) -C cleardbdir $@
+ $(MAKE) -C createdb $@
+ $(MAKE) -C createuser $@
+ $(MAKE) -C destroydb $@
+ $(MAKE) -C destroyuser $@
+ $(MAKE) -C initdb $@
#
# TCL/TK programs
#
ifeq ($(USE_TCL), true)
-SUBDIR += pgtclsh
+ $(MAKE) -C pgtclsh $@
endif
-
-include $(MKDIR)/postgres.subdir.mk
-
diff --git a/src/mk/postgres.lib.mk b/src/mk/postgres.lib.mk
index dc42abb8ff4..1818c576196 100644
--- a/src/mk/postgres.lib.mk
+++ b/src/mk/postgres.lib.mk
@@ -11,7 +11,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.lib.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.lib.mk,v 1.2 1996/08/13 07:48:29 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -34,7 +34,7 @@ endif
$(shlib): $(addprefix $(objdir)/,$(LIBOBJS))
@rm -f $(objdir)/$(shlib)
- cd $(objdir); $(CC) -shared $(LIBOBJS) -o $(shlib)
+ cd $(objdir); $(CC) $(LDFLAGS) -shared $(LIBOBJS) -o $(shlib)
CLEANFILES+= $(LIBOBJS) $(lib) $(shlib)
diff --git a/src/mk/postgres.prog.mk b/src/mk/postgres.prog.mk
index b45f4783c3e..52cfbea1b25 100644
--- a/src/mk/postgres.prog.mk
+++ b/src/mk/postgres.prog.mk
@@ -10,14 +10,14 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.2 1996/08/13 07:48:33 scrappy Exp $
#
#-------------------------------------------------------------------------
PROGOBJS:= $(SRCS:%.c=%.o)
$(PROG): $(addprefix $(objdir)/,$(PROGOBJS))
- $(CC) $(CDEBUG) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
+ $(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
CLEANFILES+= $(PROGOBJS) $(PROG)