]> granicus.if.org Git - postgresql/commitdiff
Move
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 13 Mar 2002 00:05:06 +0000 (00:05 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 13 Mar 2002 00:05:06 +0000 (00:05 +0000)
  src/GNUmakefile.in to src/Makefile
and
  src/backend/port/Makefile.in to src/backend/port/Makefile

All configure substitutions are now done in Makefile.global.

configure
configure.in
src/GNUmakefile.in [deleted file]
src/Makefile
src/Makefile.global.in
src/backend/Makefile
src/backend/port/Makefile [moved from src/backend/port/Makefile.in with 73% similarity]

index 8623f98b4f7106a9c8c93d326c6bc13c758f62f6..88dc5cca67dd726014c3573e693c10a0d63d1e21 100755 (executable)
--- a/configure
+++ b/configure
@@ -9102,9 +9102,7 @@ ac_given_srcdir=$srcdir
 
 trap 'rm -fr `echo "
   GNUmakefile
-  src/GNUmakefile
   src/Makefile.global
-  src/backend/port/Makefile
  src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
@@ -9274,9 +9272,7 @@ EOF
 cat >> $CONFIG_STATUS <<EOF
 
 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
-  src/GNUmakefile
   src/Makefile.global
-  src/backend/port/Makefile
 "}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
index f69658acfc1363f50cf75b73e29e982755ff8c73..b9f41bb88502942282b035725a40c71fcdee5bc5 100644 (file)
@@ -1247,9 +1247,7 @@ fi
 AC_OUTPUT(
 [
   GNUmakefile
-  src/GNUmakefile
   src/Makefile.global
-  src/backend/port/Makefile
 ],
 [
 # Update timestamp for pg_config.h (see Makefile.global)
diff --git a/src/GNUmakefile.in b/src/GNUmakefile.in
deleted file mode 100644 (file)
index 8909a62..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#-------------------------------------------------------------------------
-#
-# Makefile for src
-#
-# Copyright (c) 1994, Regents of the University of California
-#
-# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.61 2001/02/10 02:31:26 tgl Exp $
-#
-#-------------------------------------------------------------------------
-
-subdir = src
-top_builddir = ..
-include Makefile.global
-
-
-all install installdirs uninstall dep depend distprep:
-       $(MAKE) -C backend $@
-       $(MAKE) -C include $@
-       $(MAKE) -C interfaces $@
-       $(MAKE) -C bin $@
-       $(MAKE) -C pl $@
-
-install-all-headers:
-       $(MAKE) -C include $@
-
-clean:
-       $(MAKE) -C backend $@
-       $(MAKE) -C include $@
-       $(MAKE) -C interfaces $@
-       $(MAKE) -C bin $@
-       $(MAKE) -C pl $@
-       $(MAKE) -C utils $@
-       $(MAKE) -C test $@
-
-distclean maintainer-clean:
-       -$(MAKE) -C utils $@
-       -$(MAKE) -C backend $@
-       -$(MAKE) -C include $@
-       -$(MAKE) -C interfaces $@
-       -$(MAKE) -C bin $@
-       -$(MAKE) -C pl $@
-       -$(MAKE) -C test $@
-       rm -f Makefile.port Makefile.global GNUmakefile
index 9de7cce18092554aa7590c290111d3a8327479d3..f9312cd4b0492fda61220c2ad8246c6f3ee1f182 100644 (file)
@@ -1,36 +1,43 @@
-# The PostgreSQL make files exploit features of GNU make that other
-# makes do not have. Because it is a common mistake for users to try
-# to build Postgres with a different make, we have this make file
-# that, as a service, will look for a GNU make and invoke it, or show
-# an error message if none could be found.
+#-------------------------------------------------------------------------
+#
+# Makefile for src
+#
+# Copyright (c) 1994, Regents of the University of California
+#
+# $Header: /cvsroot/pgsql/src/Makefile,v 1.24 2002/03/13 00:05:02 petere Exp $
+#
+#-------------------------------------------------------------------------
 
-# If the user were using GNU make now, this file would not get used
-# because GNU make uses a make file named "GNUmakefile" in preference
-# to "Makefile" if it exists. PostgreSQL is shipped with a
-# "GNUmakefile". If the user hasn't run the configure script yet, the
-# GNUmakefile won't exist yet, so we catch that case as well.
+subdir = src
+top_builddir = ..
+include Makefile.global
 
 
-all check install installdirs install-all-headers installcheck uninstall dep depend clean distclean maintainer-clean:
-       @if [ ! -f GNUmakefile ] ; then \
-          echo "You need to run the 'configure' program first. See the file"; \
-          echo "'INSTALL' for installation instructions." ; \
-          false ; \
-        fi
-       @IFS=':' ; \
-        for dir in $$PATH; do \
-          for prog in gmake gnumake make; do \
-            if [ -f $$dir/$$prog ] && ( $$dir/$$prog -f /dev/null --version 2>/dev/null | grep GNU >/dev/null 2>&1 ) ; then \
-              GMAKE=$$dir/$$prog; \
-              break 2; \
-            fi; \
-          done; \
-        done; \
-       \
-        if [ x"$${GMAKE+set}" = xset ]; then \
-          echo "Using GNU make found at $${GMAKE}"; \
-          $${GMAKE} $@ ; \
-        else \
-          echo "You must use GNU make to build PostgreSQL." ; \
-          false; \
-        fi
+all install installdirs uninstall dep depend distprep:
+       $(MAKE) -C backend $@
+       $(MAKE) -C include $@
+       $(MAKE) -C interfaces $@
+       $(MAKE) -C bin $@
+       $(MAKE) -C pl $@
+
+install-all-headers:
+       $(MAKE) -C include $@
+
+clean:
+       $(MAKE) -C backend $@
+       $(MAKE) -C include $@
+       $(MAKE) -C interfaces $@
+       $(MAKE) -C bin $@
+       $(MAKE) -C pl $@
+       $(MAKE) -C utils $@
+       $(MAKE) -C test $@
+
+distclean maintainer-clean:
+       -$(MAKE) -C utils $@
+       -$(MAKE) -C backend $@
+       -$(MAKE) -C include $@
+       -$(MAKE) -C interfaces $@
+       -$(MAKE) -C bin $@
+       -$(MAKE) -C pl $@
+       -$(MAKE) -C test $@
+       rm -f Makefile.port Makefile.global
index aad4c400d182010ff7012fba870803874cea28c5..d2b89abe6d9929e7c1c090e48c2cb614e1244478 100644 (file)
@@ -1,5 +1,5 @@
 # -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.142 2002/03/05 17:55:22 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.143 2002/03/13 00:05:02 petere Exp $
 
 #------------------------------------------------------------------------------
 # All PostgreSQL makefiles include this file and use the variables it sets,
@@ -325,12 +325,21 @@ endif
 #
 # substitute implementations of the C library
 
-INET_ATON = @INET_ATON@
-STRERROR = @STRERROR@
-SNPRINTF = @SNPRINTF@
-STRDUP = @STRDUP@
-MEMCMP = @MEMCMP@
-STRTOUL = @STRTOUL@
+GETHOSTNAME = @GETHOSTNAME@
+GETRUSAGE   = @GETRUSAGE@
+INET_ATON   = @INET_ATON@
+ISINF       = @ISINF@
+MEMCMP      = @MEMCMP@
+MISSING_RANDOM = @MISSING_RANDOM@
+SNPRINTF    = @SNPRINTF@
+SRANDOM     = @SRANDOM@
+STRCASECMP  = @STRCASECMP@
+STRDUP      = @STRDUP@
+STRERROR    = @STRERROR@
+STRTOL      = @STRTOL@
+STRTOUL     = @STRTOUL@
+
+TAS         = @TAS@
 
 
 ##########################################################################
index 876d14a2dc48800d5f2100391d4bcfd7ce28fe68..b12d828c7fa23f76fb003b29a7ec8dc4a2b34ab5 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.76 2002/02/18 06:03:22 momjian Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.77 2002/03/13 00:05:05 petere Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -194,7 +194,7 @@ ifeq ($(enable_nls), yes)
 endif
 
 distclean: clean
-       rm -f port/Makefile port/tas.s port/dynloader.c
+       rm -f port/tas.s port/dynloader.c
 
 maintainer-clean: distclean
        rm -f $(srcdir)/bootstrap/bootparse.c \
similarity index 73%
rename from src/backend/port/Makefile.in
rename to src/backend/port/Makefile
index 248dcd1fd39b527b0ce9cda1e31ab4a79998c1ad..93823b44cd7b3ff52783a824ccf9d721c8668592 100644 (file)
@@ -13,7 +13,7 @@
 # be converted to Method 2.  
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.32 2002/03/04 17:43:32 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.11 2002/03/13 00:05:06 petere Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -21,12 +21,14 @@ subdir = src/backend/port
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-# Note: invoking a macro from Makefile.global is better than substituting
-# here; ideally this file should not need to be generated by configure
-# at all.
-OBJS = dynloader.o $(INET_ATON) $(STRERROR) @MISSING_RANDOM@ @SRANDOM@
-OBJS+= @GETHOSTNAME@ @GETRUSAGE@ $(MEMCMP) @STRCASECMP@ @TAS@ @ISINF@
-OBJS+= @STRTOL@ $(STRTOUL) $(SNPRINTF)
+OBJS = dynloader.o
+
+OBJS += $(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
+        $(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRERROR) \
+        $(STRTOL) $(STRTOUL) $(SNPRINTF)
+
+OBJS += $(TAS)
+
 ifdef STRDUP
 OBJS += $(top_builddir)/src/utils/strdup.o
 endif
@@ -43,7 +45,7 @@ endif
 all: SUBSYS.o
 
 SUBSYS.o: $(OBJS)
-       $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
+       $(LD) $(LDREL) $(LDOUT) $@ $^
 
 $(top_builddir)/src/utils/strdup.o:
        $(MAKE) -C $(top_builddir)/src/utils strdup.o
@@ -71,10 +73,3 @@ distclean clean:
        $(MAKE) -C beos clean
        $(MAKE) -C darwin clean
        $(MAKE) -C qnx4 clean
-
-depend dep:
-       $(CC) -MM $(CFLAGS) *.c >depend
-
-ifeq (depend,$(wildcard depend))
-include depend
-endif