head	1.2;
access;
symbols
	REL9_0_0:1.2
	REL9_1_ALPHA1:1.2
	REL9_0_RC1:1.2
	REL9_0_BETA4:1.2
	REL9_0_STABLE:1.2.0.6
	REL9_0_BETA3:1.2
	REL9_0_BETA2:1.2
	REL9_0_BETA1:1.2
	REL9_0_ALPHA5_BRANCH:1.2.0.4
	REL9_0_ALPHA5:1.2
	REL9_0_ALPHA4:1.2
	REL9_0_ALPHA4_BRANCH:1.2.0.2;
locks; strict;
comment	@# @;


1.2
date	2010.01.20.20.34.51;	author heikki;	state Exp;
branches;
next	1.1;

1.1
date	2010.01.20.09.16.24;	author heikki;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Fix bogus subdir setting. Again. I must've unfixed it by accident while
moving files around.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for src/backend/replication/libpqwalreceiver
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/Makefile,v 1.1 2010/01/20 09:16:24 heikki Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/replication/libpqwalreceiver
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)

OBJS = libpqwalreceiver.o
SHLIB_LINK = $(libpq)
NAME = libpqwalreceiver

all: submake-libpq all-shared-lib

include $(top_srcdir)/src/Makefile.shlib

install: all installdirs install-lib

installdirs: installdirs-lib

uninstall: uninstall-lib

clean distclean maintainer-clean: clean-lib
	rm -f $(OBJS)
@


1.1
log
@Rethink the way walreceiver is linked into the backend.	Instead than shoving
walreceiver as whole into a dynamically loaded module, split the
libpq-specific parts of it into dynamically loaded module and keep the rest
in the main backend binary.

Although Tom fixed the Windows compilation problems with the old walreceiver
module already, this is a cleaner division of labour and makes the code
more readable. There's also the prospect of adding new transport methods
as pluggable modules in the future, which this patch makes easier, though for
now the API between libpqwalreceiver and walreceiver process should be
considered private.

The libpq-specific module is now in src/backend/replication/libpqwalreceiver,
and the part linked with postgres binary is in
src/backend/replication/walreceiver.c.
@
text
@d7 1
a7 1
#    $PostgreSQL$
d11 1
a11 1
subdir = src/backend/postmaster/libpqwalreceiver
@

