mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 14:21:49 +03:00
Make src/backend/port/*.c file location dependent only on configure.in.
This commit is contained in:
parent
eb335a034b
commit
7f43165dd2
@ -1,18 +1,19 @@
|
|||||||
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.5 2001/09/06 10:49:29 petere Exp $
|
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.6 2002/07/18 03:59:49 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/pg_controldata
|
subdir = contrib/pg_controldata
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
PROGRAM = pg_controldata
|
PROGRAM = pg_controldata
|
||||||
OBJS = pg_controldata.o pg_crc.o $(SNPRINTF)
|
OBJS = pg_controldata.o pg_crc.o $(notdir $(SNPRINTF))
|
||||||
|
|
||||||
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
# this only gets done if configure finds system doesn't have snprintf()
|
ifdef SNPRINTF
|
||||||
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
|
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_CLEAN = pg_crc.c snprintf.c
|
EXTRA_CLEAN = pg_crc.c snprintf.c
|
||||||
|
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.3 2001/09/06 10:49:30 petere Exp $
|
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.4 2002/07/18 03:59:49 momjian Exp $
|
||||||
|
|
||||||
subdir = contrib/pg_resetxlog
|
subdir = contrib/pg_resetxlog
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
PROGRAM = pg_resetxlog
|
PROGRAM = pg_resetxlog
|
||||||
OBJS = pg_resetxlog.o pg_crc.o $(SNPRINTF)
|
OBJS = pg_resetxlog.o pg_crc.o $(notdir $(SNPRINTF))
|
||||||
|
|
||||||
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
# this only gets done if configure finds system doesn't have snprintf()
|
ifdef SNPRINTF
|
||||||
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
|
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_CLEAN = pg_crc.c snprintf.c
|
EXTRA_CLEAN = pg_crc.c snprintf.c
|
||||||
|
|
||||||
|
@ -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/interfaces/libpq/Makefile,v 1.62 2002/06/14 04:23:17 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.63 2002/07/18 03:59:49 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -12,6 +12,7 @@ subdir = src/interfaces/libpq
|
|||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
|
|
||||||
# shared library parameters
|
# shared library parameters
|
||||||
NAME= pq
|
NAME= pq
|
||||||
SO_MAJOR_VERSION= 2
|
SO_MAJOR_VERSION= 2
|
||||||
@ -21,12 +22,13 @@ override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconf
|
|||||||
|
|
||||||
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
|
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
|
||||||
pqexpbuffer.o dllist.o md5.o pqsignal.o fe-secure.o \
|
pqexpbuffer.o dllist.o md5.o pqsignal.o fe-secure.o \
|
||||||
$(INET_ATON) $(SNPRINTF) $(STRERROR)
|
$(notdir $(INET_ATON)) $(notdir $(SNPRINTF)) $(notdir $(STRERROR))
|
||||||
|
|
||||||
ifdef MULTIBYTE
|
ifdef MULTIBYTE
|
||||||
OBJS+= wchar.o encnames.o
|
OBJS+= wchar.o encnames.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Add libraries that libpq depends (or might depend) on into the
|
# Add libraries that libpq depends (or might depend) on into the
|
||||||
# shared library link. (The order in which you list them here doesn't
|
# shared library link. (The order in which you list them here doesn't
|
||||||
# matter.)
|
# matter.)
|
||||||
@ -37,32 +39,35 @@ all: all-lib
|
|||||||
|
|
||||||
# Shared library stuff
|
# Shared library stuff
|
||||||
include $(top_srcdir)/src/Makefile.shlib
|
include $(top_srcdir)/src/Makefile.shlib
|
||||||
|
|
||||||
|
|
||||||
# We use several backend modules verbatim, but since we need to
|
|
||||||
# compile with appropriate options to build a shared lib, we can't
|
|
||||||
# necessarily use the same object files as the backend uses. Instead,
|
|
||||||
# symlink the source files in here and build our own object file.
|
|
||||||
|
|
||||||
backend_src = $(top_srcdir)/src/backend
|
backend_src = $(top_srcdir)/src/backend
|
||||||
|
|
||||||
|
|
||||||
dllist.c: $(backend_src)/lib/dllist.c
|
dllist.c: $(backend_src)/lib/dllist.c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
md5.c: $(backend_src)/libpq/md5.c
|
md5.c: $(backend_src)/libpq/md5.c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
|
# We use several backend modules verbatim, but since we need to
|
||||||
|
# compile with appropriate options to build a shared lib, we can't
|
||||||
|
# necessarily use the same object files as the backend uses. Instead,
|
||||||
|
# symlink the source files in here and build our own object file.
|
||||||
# this only gets done if configure finds system doesn't have inet_aton()
|
# this only gets done if configure finds system doesn't have inet_aton()
|
||||||
inet_aton.c: $(backend_src)/port/inet_aton.c
|
|
||||||
rm -f $@ && $(LN_S) $< .
|
|
||||||
|
|
||||||
# this only gets done if configure finds system doesn't have snprintf()
|
ifdef INET_ATON
|
||||||
snprintf.c: $(backend_src)/port/snprintf.c
|
$(basename $(notdir $(INET_ATON))).c: $(basename $(INET_ATON)).c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
endif
|
||||||
|
|
||||||
# this only gets done if configure finds system doesn't have strerror()
|
ifdef SNPRINTF
|
||||||
strerror.c: $(backend_src)/port/strerror.c
|
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef STRERROR
|
||||||
|
$(basename $(notdir $(STRERROR))).c: $(basename $(STRERROR)).c
|
||||||
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef MULTIBYTE
|
ifdef MULTIBYTE
|
||||||
wchar.c : % : $(backend_src)/utils/mb/%
|
wchar.c : % : $(backend_src)/utils/mb/%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user