Commit b9104e3a authored by Bruce Momjian's avatar Bruce Momjian

Remove certain Makefile dependencies by using full pathnames in

configure.in.
parent 7bd631bf
...@@ -10637,7 +10637,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then ...@@ -10637,7 +10637,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF _ACEOF
else else
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
fi fi
done done
...@@ -10715,7 +10715,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then ...@@ -10715,7 +10715,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF _ACEOF
else else
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
fi fi
done done
...@@ -11465,7 +11465,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then ...@@ -11465,7 +11465,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF _ACEOF
else else
STRERROR='strerror.o' STRERROR='$(top_builddir)/src/backend/port/strerror.o'
fi fi
done done
...@@ -11544,7 +11544,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then ...@@ -11544,7 +11544,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF _ACEOF
else else
STRDUP='../../utils/strdup.o' STRDUP='$(top_builddir)/src/utils/strdup.o'
fi fi
done done
...@@ -12657,7 +12657,7 @@ echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO ...@@ -12657,7 +12657,7 @@ echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO
echo "$as_me:$LINENO: result: assuming not on target machine" >&5 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
echo "${ECHO_T}assuming not on target machine" >&6 echo "${ECHO_T}assuming not on target machine" >&6
# Force usage of our own snprintf, since we cannot test foreign snprintf # Force usage of our own snprintf, since we cannot test foreign snprintf
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
else else
...@@ -12717,7 +12717,7 @@ echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_ ...@@ -12717,7 +12717,7 @@ echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_
echo "$as_me:$LINENO: result: assuming not on target machine" >&5 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
echo "${ECHO_T}assuming not on target machine" >&6 echo "${ECHO_T}assuming not on target machine" >&6
# Force usage of our own snprintf, since we cannot test foreign snprintf # Force usage of our own snprintf, since we cannot test foreign snprintf
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
else else
...@@ -12772,7 +12772,7 @@ cat conftest.$ac_ext >&5 ...@@ -12772,7 +12772,7 @@ cat conftest.$ac_ext >&5
echo "$as_me:$LINENO: result: no" >&5 echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
# Force usage of our own snprintf, since system snprintf is broken # Force usage of our own snprintf, since system snprintf is broken
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
fi fi
......
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.187 2002/07/07 20:28:24 momjian Exp $ dnl $Header: /cvsroot/pgsql/configure.in,v 1.188 2002/07/15 21:34:04 momjian Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
...@@ -870,8 +870,8 @@ fi ...@@ -870,8 +870,8 @@ fi
# have working "long long int" support -- see below. # have working "long long int" support -- see below.
SNPRINTF='' SNPRINTF=''
AC_CHECK_FUNCS(snprintf, [], SNPRINTF='snprintf.o') AC_CHECK_FUNCS(snprintf, [], SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o')
AC_CHECK_FUNCS(vsnprintf, [], SNPRINTF='snprintf.o') AC_CHECK_FUNCS(vsnprintf, [], SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o')
AC_SUBST(SNPRINTF) AC_SUBST(SNPRINTF)
...@@ -913,9 +913,9 @@ AC_CHECK_FUNCS(random, [], MISSING_RANDOM='random.o') ...@@ -913,9 +913,9 @@ AC_CHECK_FUNCS(random, [], MISSING_RANDOM='random.o')
AC_SUBST(MISSING_RANDOM) AC_SUBST(MISSING_RANDOM)
AC_CHECK_FUNCS(inet_aton, [], INET_ATON='inet_aton.o') AC_CHECK_FUNCS(inet_aton, [], INET_ATON='inet_aton.o')
AC_SUBST(INET_ATON) AC_SUBST(INET_ATON)
AC_CHECK_FUNCS(strerror, [], STRERROR='strerror.o') AC_CHECK_FUNCS(strerror, [], STRERROR='$(top_builddir)/src/backend/port/strerror.o')
AC_SUBST(STRERROR) AC_SUBST(STRERROR)
AC_CHECK_FUNCS(strdup, [], STRDUP='../../utils/strdup.o') AC_CHECK_FUNCS(strdup, [], STRDUP='$(top_builddir)/src/utils/strdup.o')
AC_SUBST(STRDUP) AC_SUBST(STRDUP)
AC_CHECK_FUNCS(strtol, [], STRTOL='strtol.o') AC_CHECK_FUNCS(strtol, [], STRTOL='strtol.o')
AC_SUBST(STRTOL) AC_SUBST(STRTOL)
...@@ -1093,17 +1093,17 @@ main() { ...@@ -1093,17 +1093,17 @@ main() {
], ],
[ AC_MSG_RESULT(no) [ AC_MSG_RESULT(no)
# Force usage of our own snprintf, since system snprintf is broken # Force usage of our own snprintf, since system snprintf is broken
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
], ],
[ AC_MSG_RESULT(assuming not on target machine) [ AC_MSG_RESULT(assuming not on target machine)
# Force usage of our own snprintf, since we cannot test foreign snprintf # Force usage of our own snprintf, since we cannot test foreign snprintf
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
]) ], ]) ],
[ AC_MSG_RESULT(assuming not on target machine) [ AC_MSG_RESULT(assuming not on target machine)
# Force usage of our own snprintf, since we cannot test foreign snprintf # Force usage of our own snprintf, since we cannot test foreign snprintf
SNPRINTF='snprintf.o' SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
INT64_FORMAT='"%lld"' INT64_FORMAT='"%lld"'
]) ])
else else
......
...@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL 7.2 ...@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL 7.2
Sun Solaris specific Sun Solaris specific
to be read in conjunction with the installation instructions to be read in conjunction with the installation instructions
============================================================ ============================================================
last updated: $Date: 2002/03/04 17:47:11 $ last updated: $Date: 2002/07/15 21:34:04 $
current maintainer: Peter Eisentraut <peter_e@gmx.net> current maintainer: Peter Eisentraut <peter_e@gmx.net>
...@@ -94,7 +94,7 @@ produced by configure: ...@@ -94,7 +94,7 @@ produced by configure:
(1) In src/Makefile.global, change the line (1) In src/Makefile.global, change the line
SNPRINTF = SNPRINTF =
to read to read
SNPRINTF = snprintf.o SNPRINTF = $(top_builddir)/src/backend/port/snprint.o
(2) In src/backend/port/Makefile, add "snprintf.o" to OBJS. (Skip this (2) In src/backend/port/Makefile, add "snprintf.o" to OBJS. (Skip this
step if you see "$(SNPRINTF)" already listed in OBJS.) step if you see "$(SNPRINTF)" already listed in OBJS.)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.10 2002/06/20 20:29:28 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.11 2002/07/15 21:34:04 momjian Exp $
* *
* Since the server static private key ($DataDir/server.key) * Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database * will normally be stored unencrypted so that the database
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
#ifndef HAVE_STRDUP #ifndef HAVE_STRDUP
#include "strdup.h" #include "strdup.h"
#endif #endif
......
...@@ -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/Makefile,v 1.13 2002/05/05 16:02:37 tgl Exp $ # $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.14 2002/07/15 21:34:04 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -21,25 +21,22 @@ subdir = src/backend/port ...@@ -21,25 +21,22 @@ subdir = src/backend/port
top_builddir = ../../.. top_builddir = ../../..
include $(top_builddir)/src/Makefile.global include $(top_builddir)/src/Makefile.global
OBJS = dynloader.o pg_sema.o pg_shmem.o OBJS=dynloader.o pg_sema.o pg_shmem.o
OBJS += $(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \ OBJS+=$(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
$(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRERROR) \ $(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRDUP) \
$(STRTOL) $(STRTOUL) $(STRERROR) $(STRTOL) $(STRTOUL)
OBJS += $(TAS) OBJS+=$(TAS)
ifdef STRDUP
OBJS += $(top_builddir)/src/utils/strdup.o
endif
ifeq ($(PORTNAME), qnx4) ifeq ($(PORTNAME), qnx4)
OBJS += getrusage.o qnx4/SUBSYS.o OBJS+=getrusage.o qnx4/SUBSYS.o
endif endif
ifeq ($(PORTNAME), beos) ifeq ($(PORTNAME), beos)
OBJS += beos/SUBSYS.o OBJS+=beos/SUBSYS.o
endif endif
ifeq ($(PORTNAME), darwin) ifeq ($(PORTNAME), darwin)
OBJS += darwin/SUBSYS.o OBJS+=darwin/SUBSYS.o
endif endif
all: SUBSYS.o all: SUBSYS.o
...@@ -47,9 +44,6 @@ all: SUBSYS.o ...@@ -47,9 +44,6 @@ all: SUBSYS.o
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) $@ $^ $(LD) $(LDREL) $(LDOUT) $@ $^
$(top_builddir)/src/utils/strdup.o:
$(MAKE) -C $(top_builddir)/src/utils strdup.o
qnx4/SUBSYS.o: qnx4.dir qnx4/SUBSYS.o: qnx4.dir
qnx4.dir: qnx4.dir:
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California # Portions Copyright (c) 1994, Regents of the University of California
# #
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.34 2002/07/06 20:12:30 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.35 2002/07/15 21:34:05 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -14,21 +14,8 @@ top_builddir = ../../.. ...@@ -14,21 +14,8 @@ top_builddir = ../../..
include $(top_builddir)/src/Makefile.global include $(top_builddir)/src/Makefile.global
OBJS= pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o \ OBJS= pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o \
pg_backup_files.o pg_backup_null.o pg_backup_tar.o sprompt.o pg_backup_files.o pg_backup_null.o pg_backup_tar.o sprompt.o \
$(STRDUP) $(STRTOUL)
ifdef STRDUP
OBJS+=$(top_builddir)/src/utils/strdup.o
$(top_builddir)/src/utils/strdup.o:
$(MAKE) -C $(top_builddir)/src/utils strdup.o
endif
ifdef STRTOUL
OBJS+=$(top_builddir)/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o:
$(MAKE) -C $(top_builddir)/src/backend/port strtoul.o
endif
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California # Portions Copyright (c) 1994, Regents of the University of California
# #
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.33 2002/07/06 20:12:30 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.34 2002/07/15 21:34:05 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -17,42 +17,13 @@ REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref ...@@ -17,42 +17,13 @@ REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
OBJS=command.o common.o help.o input.o stringutils.o mainloop.o \ OBJS=command.o common.o help.o input.o stringutils.o mainloop.o copy.o \
copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \ startup.o prompt.o variables.o large_obj.o print.o describe.o \
sprompt.o tab-complete.o mbprint.o sprompt.o tab-complete.o mbprint.o $(SNPRINTF) $(STRDUP) \
$(STRERROR) $(STRTOUL)
all: submake psql all: submake psql
ifdef STRDUP
OBJS+=$(top_builddir)/src/utils/strdup.o
$(top_builddir)/src/utils/strdup.o:
$(MAKE) -C $(top_builddir)/src/utils strdup.o
endif
# Move these to the utils directory?
ifdef STRERROR
OBJS+=$(top_builddir)/src/backend/port/strerror.o
$(top_builddir)/src/backend/port/strerror.o:
$(MAKE) -C $(top_builddir)/src/backend/port strerror.o
endif
ifdef SNPRINTF
OBJS+=$(top_builddir)/src/backend/port/snprintf.o
$(top_builddir)/src/backend/port/snprintf.o:
$(MAKE) -C $(top_builddir)/src/backend/port snprintf.o
endif
ifdef STRTOUL
OBJS+=$(top_builddir)/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o:
$(MAKE) -C $(top_builddir)/src/backend/port strtoul.o
endif
# End of hacks for picking up backend 'port' modules # End of hacks for picking up backend 'port' modules
psql: $(OBJS) $(libpq_builddir)/libpq.a psql: $(OBJS) $(libpq_builddir)/libpq.a
......
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.83 2002/03/11 12:56:02 meskes Exp $ # $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.84 2002/07/15 21:34:05 momjian Exp $
subdir = src/interfaces/ecpg/preproc subdir = src/interfaces/ecpg/preproc
top_builddir = ../../../.. top_builddir = ../../../..
...@@ -18,24 +18,11 @@ override CFLAGS += -Wno-error ...@@ -18,24 +18,11 @@ override CFLAGS += -Wno-error
endif endif
OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\ OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o \
$(SNPRINTF) $(STRDUP)
all: ecpg all: ecpg
ifdef SNPRINTF
OBJS+=$(top_builddir)/src/backend/port/snprintf.o
$(top_builddir)/src/backend/port/snprintf.o:
$(MAKE) -C $(top_builddir)/src/backend/port snprintf.o
endif
ifdef STRDUP
OBJS+=$(top_builddir)/src/utils/strdup.o
$(top_builddir)/src/utils/strdup.o:
$(MAKE) -C $(top_builddir)/src/utils strdup.o
endif
ecpg: $(OBJS) ecpg: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# Makefile for utils # Makefile for utils
# #
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.9 2000/08/31 16:12:35 petere Exp $ # $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.10 2002/07/15 21:34:05 momjian Exp $
# #
# About strdup: Some systems have strdup in their standard library, others # About strdup: Some systems have strdup in their standard library, others
# don't. Ones that don't will use this make file to compile the strdup.c # don't. Ones that don't will use this make file to compile the strdup.c
...@@ -22,6 +22,8 @@ top_builddir = ../.. ...@@ -22,6 +22,8 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global include $(top_builddir)/src/Makefile.global
all: all:
# Nothing required here. These C files are compiled in
# directories as needed.
clean distclean maintainer-clean: clean distclean maintainer-clean:
rm -f dllinit.o getopt.o strdup.o rm -f dllinit.o getopt.o strdup.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment