提交 f362dcec 编写于 作者: P Peter Eisentraut

Move

  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.
上级 cf6a73de
...@@ -9102,9 +9102,7 @@ ac_given_srcdir=$srcdir ...@@ -9102,9 +9102,7 @@ ac_given_srcdir=$srcdir
trap 'rm -fr `echo " trap 'rm -fr `echo "
GNUmakefile GNUmakefile
src/GNUmakefile
src/Makefile.global src/Makefile.global
src/backend/port/Makefile
src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF EOF
cat >> $CONFIG_STATUS <<EOF cat >> $CONFIG_STATUS <<EOF
...@@ -9274,9 +9272,7 @@ EOF ...@@ -9274,9 +9272,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
src/GNUmakefile
src/Makefile.global src/Makefile.global
src/backend/port/Makefile
"} "}
EOF EOF
cat >> $CONFIG_STATUS <<\EOF cat >> $CONFIG_STATUS <<\EOF
......
...@@ -1247,9 +1247,7 @@ fi ...@@ -1247,9 +1247,7 @@ fi
AC_OUTPUT( AC_OUTPUT(
[ [
GNUmakefile GNUmakefile
src/GNUmakefile
src/Makefile.global src/Makefile.global
src/backend/port/Makefile
], ],
[ [
# Update timestamp for pg_config.h (see Makefile.global) # Update timestamp for pg_config.h (see Makefile.global)
......
#-------------------------------------------------------------------------
#
# 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
# 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 # Makefile for src
# that, as a service, will look for a GNU make and invoke it, or show #
# an error message if none could be found. # 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 subdir = src
# because GNU make uses a make file named "GNUmakefile" in preference top_builddir = ..
# to "Makefile" if it exists. PostgreSQL is shipped with a include Makefile.global
# "GNUmakefile". If the user hasn't run the configure script yet, the
# GNUmakefile won't exist yet, so we catch that case as well.
all check install installdirs install-all-headers installcheck uninstall dep depend clean distclean maintainer-clean: all install installdirs uninstall dep depend distprep:
@if [ ! -f GNUmakefile ] ; then \ $(MAKE) -C backend $@
echo "You need to run the 'configure' program first. See the file"; \ $(MAKE) -C include $@
echo "'INSTALL' for installation instructions." ; \ $(MAKE) -C interfaces $@
false ; \ $(MAKE) -C bin $@
fi $(MAKE) -C pl $@
@IFS=':' ; \
for dir in $$PATH; do \ install-all-headers:
for prog in gmake gnumake make; do \ $(MAKE) -C include $@
if [ -f $$dir/$$prog ] && ( $$dir/$$prog -f /dev/null --version 2>/dev/null | grep GNU >/dev/null 2>&1 ) ; then \
GMAKE=$$dir/$$prog; \ clean:
break 2; \ $(MAKE) -C backend $@
fi; \ $(MAKE) -C include $@
done; \ $(MAKE) -C interfaces $@
done; \ $(MAKE) -C bin $@
\ $(MAKE) -C pl $@
if [ x"$${GMAKE+set}" = xset ]; then \ $(MAKE) -C utils $@
echo "Using GNU make found at $${GMAKE}"; \ $(MAKE) -C test $@
$${GMAKE} $@ ; \
else \ distclean maintainer-clean:
echo "You must use GNU make to build PostgreSQL." ; \ -$(MAKE) -C utils $@
false; \ -$(MAKE) -C backend $@
fi -$(MAKE) -C include $@
-$(MAKE) -C interfaces $@
-$(MAKE) -C bin $@
-$(MAKE) -C pl $@
-$(MAKE) -C test $@
rm -f Makefile.port Makefile.global
# -*-makefile-*- # -*-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, # All PostgreSQL makefiles include this file and use the variables it sets,
...@@ -325,12 +325,21 @@ endif ...@@ -325,12 +325,21 @@ endif
# #
# substitute implementations of the C library # substitute implementations of the C library
INET_ATON = @INET_ATON@ GETHOSTNAME = @GETHOSTNAME@
STRERROR = @STRERROR@ GETRUSAGE = @GETRUSAGE@
SNPRINTF = @SNPRINTF@ INET_ATON = @INET_ATON@
STRDUP = @STRDUP@ ISINF = @ISINF@
MEMCMP = @MEMCMP@ MEMCMP = @MEMCMP@
STRTOUL = @STRTOUL@ MISSING_RANDOM = @MISSING_RANDOM@
SNPRINTF = @SNPRINTF@
SRANDOM = @SRANDOM@
STRCASECMP = @STRCASECMP@
STRDUP = @STRDUP@
STRERROR = @STRERROR@
STRTOL = @STRTOL@
STRTOUL = @STRTOUL@
TAS = @TAS@
########################################################################## ##########################################################################
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Copyright (c) 1994, Regents of the University of California # 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) ...@@ -194,7 +194,7 @@ ifeq ($(enable_nls), yes)
endif endif
distclean: clean distclean: clean
rm -f port/Makefile port/tas.s port/dynloader.c rm -f port/tas.s port/dynloader.c
maintainer-clean: distclean maintainer-clean: distclean
rm -f $(srcdir)/bootstrap/bootparse.c \ rm -f $(srcdir)/bootstrap/bootparse.c \
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# be converted to Method 2. # be converted to Method 2.
# #
# IDENTIFICATION # 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 ...@@ -21,12 +21,14 @@ subdir = src/backend/port
top_builddir = ../../.. top_builddir = ../../..
include $(top_builddir)/src/Makefile.global include $(top_builddir)/src/Makefile.global
# Note: invoking a macro from Makefile.global is better than substituting OBJS = dynloader.o
# here; ideally this file should not need to be generated by configure
# at all. OBJS += $(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
OBJS = dynloader.o $(INET_ATON) $(STRERROR) @MISSING_RANDOM@ @SRANDOM@ $(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRERROR) \
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ $(MEMCMP) @STRCASECMP@ @TAS@ @ISINF@ $(STRTOL) $(STRTOUL) $(SNPRINTF)
OBJS+= @STRTOL@ $(STRTOUL) $(SNPRINTF)
OBJS += $(TAS)
ifdef STRDUP ifdef STRDUP
OBJS += $(top_builddir)/src/utils/strdup.o OBJS += $(top_builddir)/src/utils/strdup.o
endif endif
...@@ -43,7 +45,7 @@ endif ...@@ -43,7 +45,7 @@ endif
all: SUBSYS.o all: SUBSYS.o
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) $(LD) $(LDREL) $(LDOUT) $@ $^
$(top_builddir)/src/utils/strdup.o: $(top_builddir)/src/utils/strdup.o:
$(MAKE) -C $(top_builddir)/src/utils strdup.o $(MAKE) -C $(top_builddir)/src/utils strdup.o
...@@ -71,10 +73,3 @@ distclean clean: ...@@ -71,10 +73,3 @@ distclean clean:
$(MAKE) -C beos clean $(MAKE) -C beos clean
$(MAKE) -C darwin clean $(MAKE) -C darwin clean
$(MAKE) -C qnx4 clean $(MAKE) -C qnx4 clean
depend dep:
$(CC) -MM $(CFLAGS) *.c >depend
ifeq (depend,$(wildcard depend))
include depend
endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册