head	1.3;
access;
symbols
	REL9_0_0:1.3
	REL9_1_ALPHA1:1.3
	REL9_0_RC1:1.3
	REL9_0_BETA4:1.3
	REL9_0_STABLE:1.3.0.2
	REL9_0_BETA3:1.3
	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
	REL8_5_ALPHA3:1.1
	REL8_5_ALPHA3_BRANCH:1.1.0.4
	REL8_5_ALPHA2:1.1
	REL8_5_ALPHA2_BRANCH:1.1.0.2;
locks; strict;
comment	@# @;


1.3
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.2;

1.2
date	2010.01.02.16.58.16;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	2009.10.01.01.58.58;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
linking both executables and shared libraries, and we add on LDFLAGS_EX when
linking executables or LDFLAGS_SL when linking shared libraries.  This
provides a significantly cleaner way of dealing with link-time switches than
the former behavior.  Also, make sure that the various platform-specific
%.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
before.  (I did not add these variables for the platforms that invoke $(LD)
directly, however.  It's not clear if we can do that safely, since for the
most part we assume these variables use CC command-line syntax.)

Per gripe from Aaron Swenson and subsequent investigation.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/tools/ifaddrs
#
# Copyright (c) 2003-2010, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/tools/ifaddrs/Makefile,v 1.2 2010/01/02 16:58:16 momjian Exp $
#
#-------------------------------------------------------------------------

subdir = src/tools/ifaddrs
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

libpq_backend_dir = $(top_builddir)/src/backend/libpq

override CPPFLAGS := -I$(libpq_backend_dir) $(CPPFLAGS)

OBJS = test_ifaddrs.o

all: test_ifaddrs

test_ifaddrs: test_ifaddrs.o $(libpq_backend_dir)/ip.o
	$(CC) $(CFLAGS) test_ifaddrs.o $(libpq_backend_dir)/ip.o $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

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


1.2
log
@Update copyright for the year 2010.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/ifaddrs/Makefile,v 1.1 2009/10/01 01:58:58 tgl Exp $
d24 1
a24 1
	$(CC) $(CFLAGS) test_ifaddrs.o $(libpq_backend_dir)/ip.o $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.1
log
@Support "samehost" and "samenet" specifications in pg_hba.conf,
by enumerating the machine's IP interfaces to look for a match.

Stef Walter
@
text
@d5 1
a5 1
# Copyright (c) 2003-2009, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL$
@

