Remove certain Makefile dependencies by using full pathnames in
configure.in.
This commit is contained in:
parent
7bd631bfa4
commit
b9104e3a97
|
@ -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
|
||||||
_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
|
||||||
_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
|
||||||
_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
|
||||||
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_
|
||||||
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
|
||||||
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
|
||||||
|
|
16
configure.in
16
configure.in
|
@ -1,5 +1,5 @@
|
||||||
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
|
||||||
# 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')
|
||||||
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() {
|
||||||
],
|
],
|
||||||
[ 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
|
||||||
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:
|
||||||
(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 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* Because the risk of cryptanalysis increases as large
|
* Because the risk of cryptanalysis increases as large
|
||||||
* amounts of data are sent with the same session key, the
|
* amounts of data are sent with the same session key, the
|
||||||
* session keys are periodically renegotiated.
|
* session keys are periodically renegotiated.
|
||||||
*
|
*
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
* [*] existing SSL code pulled out of existing files.
|
* [*] existing SSL code pulled out of existing files.
|
||||||
* [*] SSL_get_error() after SSL_read() and SSL_write(),
|
* [*] SSL_get_error() after SSL_read() and SSL_write(),
|
||||||
* SSL_shutdown(), default to TLSv1.
|
* SSL_shutdown(), default to TLSv1.
|
||||||
*
|
*
|
||||||
* milestone 2: provide endpoint authentication (server)
|
* milestone 2: provide endpoint authentication (server)
|
||||||
* [*] client verifies server cert
|
* [*] client verifies server cert
|
||||||
* [*] client verifies server hostname
|
* [*] client verifies server hostname
|
||||||
|
@ -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
|
||||||
|
@ -153,20 +152,20 @@ static SSL_CTX *SSL_context = NULL;
|
||||||
* As discussed above, EDH protects the confidentiality of
|
* As discussed above, EDH protects the confidentiality of
|
||||||
* sessions even if the static private key is compromised,
|
* sessions even if the static private key is compromised,
|
||||||
* so we are *highly* motivated to ensure that we can use
|
* so we are *highly* motivated to ensure that we can use
|
||||||
* EDH even if the DBA... or an attacker... deletes the
|
* EDH even if the DBA... or an attacker... deletes the
|
||||||
* $DataDir/dh*.pem files.
|
* $DataDir/dh*.pem files.
|
||||||
*
|
*
|
||||||
* We could refuse SSL connections unless a good DH parameter
|
* We could refuse SSL connections unless a good DH parameter
|
||||||
* file exists, but some clients may quietly renegotiate an
|
* file exists, but some clients may quietly renegotiate an
|
||||||
* unsecured connection without fully informing the user.
|
* unsecured connection without fully informing the user.
|
||||||
* Very uncool.
|
* Very uncool.
|
||||||
*
|
*
|
||||||
* Alternately, the backend could attempt to load these files
|
* Alternately, the backend could attempt to load these files
|
||||||
* on startup if SSL is enabled - and refuse to start if any
|
* on startup if SSL is enabled - and refuse to start if any
|
||||||
* do not exist - but this would tend to piss off DBAs.
|
* do not exist - but this would tend to piss off DBAs.
|
||||||
*
|
*
|
||||||
* If you want to create your own hardcoded DH parameters
|
* If you want to create your own hardcoded DH parameters
|
||||||
* for fun and profit, review "Assigned Number for SKIP
|
* for fun and profit, review "Assigned Number for SKIP
|
||||||
* Protocols" (http://www.skip-vpn.org/spec/numbers.html)
|
* Protocols" (http://www.skip-vpn.org/spec/numbers.html)
|
||||||
* for suggestions.
|
* for suggestions.
|
||||||
*/
|
*/
|
||||||
|
@ -241,7 +240,7 @@ secure_destroy (void)
|
||||||
/*
|
/*
|
||||||
* Attempt to negotiate secure session.
|
* Attempt to negotiate secure session.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
secure_open_server (Port *port)
|
secure_open_server (Port *port)
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
@ -373,7 +372,7 @@ secure_write (Port *port, const void *ptr, size_t len)
|
||||||
* Load precomputed DH parameters.
|
* Load precomputed DH parameters.
|
||||||
*
|
*
|
||||||
* To prevent "downgrade" attacks, we perform a number of checks
|
* To prevent "downgrade" attacks, we perform a number of checks
|
||||||
* to verify that the DBA-generated DH parameters file contains
|
* to verify that the DBA-generated DH parameters file contains
|
||||||
* what we expect it to contain.
|
* what we expect it to contain.
|
||||||
*/
|
*/
|
||||||
static DH *
|
static DH *
|
||||||
|
@ -415,7 +414,7 @@ load_dh_file (int keylength)
|
||||||
elog(LOG, "DH error (%s): p is not prime", fnbuf);
|
elog(LOG, "DH error (%s): p is not prime", fnbuf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if ((codes & DH_NOT_SUITABLE_GENERATOR) &&
|
if ((codes & DH_NOT_SUITABLE_GENERATOR) &&
|
||||||
(codes & DH_CHECK_P_NOT_SAFE_PRIME))
|
(codes & DH_CHECK_P_NOT_SAFE_PRIME))
|
||||||
{
|
{
|
||||||
elog(LOG,
|
elog(LOG,
|
||||||
|
@ -520,7 +519,7 @@ tmp_dh_cb (SSL *s, int is_export, int keylength)
|
||||||
elog(DEBUG1, "DH: generating parameters (%d bits)....", keylength);
|
elog(DEBUG1, "DH: generating parameters (%d bits)....", keylength);
|
||||||
r = DH_generate_parameters(keylength, DH_GENERATOR_2, NULL, NULL);
|
r = DH_generate_parameters(keylength, DH_GENERATOR_2, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -585,7 +584,7 @@ initialize_SSL (void)
|
||||||
{
|
{
|
||||||
char fnbuf[2048];
|
char fnbuf[2048];
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
|
|
||||||
if (!SSL_context)
|
if (!SSL_context)
|
||||||
{
|
{
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
|
@ -648,7 +647,7 @@ initialize_SSL (void)
|
||||||
fnbuf, SSLerrmessage());
|
fnbuf, SSLerrmessage());
|
||||||
ExitPostmaster(1);
|
ExitPostmaster(1);
|
||||||
}
|
}
|
||||||
SSL_CTX_set_verify(SSL_context,
|
SSL_CTX_set_verify(SSL_context,
|
||||||
SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, verify_cb);
|
SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, verify_cb);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -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
|
||||||
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
|
||||||
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 @@
|
||||||
# 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 = ../../..
|
||||||
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 @@
|
||||||
# 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
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $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
|
||||||
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 @@
|
||||||
#
|
#
|
||||||
# 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 = ../..
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue