head	1.29;
access;
symbols
	REL9_0_0:1.28
	REL9_1_ALPHA1:1.28
	REL9_0_RC1:1.28
	REL9_0_BETA4:1.28
	REL9_0_STABLE:1.28.0.2
	REL9_0_BETA3:1.28
	REL9_0_BETA2:1.27
	REL7_4_29:1.19
	REL8_0_25:1.20
	REL8_1_21:1.20
	REL8_2_17:1.23
	REL8_3_11:1.24
	REL8_4_4:1.27
	REL9_0_BETA1:1.27
	REL9_0_ALPHA5_BRANCH:1.27.0.12
	REL9_0_ALPHA5:1.27
	REL7_4_28:1.19
	REL8_0_24:1.20
	REL8_1_20:1.20
	REL8_2_16:1.23
	REL8_3_10:1.24
	REL8_4_3:1.27
	REL9_0_ALPHA4:1.27
	REL9_0_ALPHA4_BRANCH:1.27.0.10
	REL8_5_ALPHA3:1.27
	REL8_5_ALPHA3_BRANCH:1.27.0.8
	REL7_4_27:1.19
	REL8_0_23:1.20
	REL8_1_19:1.20
	REL8_2_15:1.23
	REL8_3_9:1.24
	REL8_4_2:1.27
	REL8_5_ALPHA2:1.27
	REL8_5_ALPHA2_BRANCH:1.27.0.6
	REL7_4_26:1.19
	REL8_0_22:1.20
	REL8_1_18:1.20
	REL8_2_14:1.23
	REL8_3_8:1.24
	REL8_4_1:1.27
	REL8_5_ALPHA1:1.27
	REL8_5_ALPHA1_BRANCH:1.27.0.4
	REL8_4_STABLE:1.27.0.2
	REL8_4_0:1.27
	REL8_4_RC2:1.27
	REL8_4_RC1:1.27
	REL8_4_BETA2:1.27
	REL8_4_BETA1:1.27
	REL7_4_25:1.19
	REL8_0_21:1.20
	REL8_1_17:1.20
	REL8_2_13:1.23
	REL8_3_7:1.24
	REL7_4_24:1.19
	REL8_0_20:1.20
	REL8_1_16:1.20
	REL8_2_12:1.23
	REL8_3_6:1.24
	REL7_4_23:1.19
	REL8_0_19:1.20
	REL8_1_15:1.20
	REL8_2_11:1.23
	REL8_3_5:1.24
	REL7_4_22:1.19
	REL8_0_18:1.20
	REL8_1_14:1.20
	REL8_2_10:1.23
	REL8_3_4:1.24
	REL7_4_21:1.19
	REL8_0_17:1.20
	REL8_1_13:1.20
	REL8_2_9:1.23
	REL8_3_3:1.24
	REL7_4_20:1.19
	REL8_0_16:1.20
	REL8_1_12:1.20
	REL8_2_8:1.23
	REL8_3_2:1.24
	REL8_2_7:1.23
	REL8_3_1:1.24
	REL8_3_STABLE:1.24.0.2
	REL8_3_0:1.24
	REL8_3_RC2:1.24
	REL7_3_21:1.18
	REL7_4_19:1.19
	REL8_0_15:1.20
	REL8_1_11:1.20
	REL8_2_6:1.23
	REL8_3_RC1:1.24
	REL8_3_BETA4:1.24
	REL8_3_BETA3:1.24
	REL8_3_BETA2:1.24
	REL8_3_BETA1:1.24
	REL7_3_20:1.18
	REL7_4_18:1.19
	REL8_0_14:1.20
	REL8_1_10:1.20
	REL8_2_5:1.23
	REL7_3_19:1.18
	REL7_4_17:1.19
	REL8_0_13:1.20
	REL8_1_9:1.20
	REL8_2_4:1.23
	REL8_0_12:1.20
	REL8_1_8:1.20
	REL8_2_3:1.23
	REL7_3_18:1.18
	REL7_4_16:1.19
	REL8_0_11:1.20
	REL8_1_7:1.20
	REL8_2_2:1.23
	REL8_0_10:1.20
	REL8_1_6:1.20
	REL8_2_1:1.23
	REL7_4_15:1.19
	REL7_3_17:1.18
	REL8_2_STABLE:1.23.0.2
	REL8_2_0:1.23
	REL8_2_RC1:1.23
	REL8_2_BETA3:1.23
	REL8_2_BETA2:1.23
	REL8_1_5:1.20
	REL8_0_9:1.20
	REL7_4_14:1.19
	REL7_3_16:1.18
	REL8_2_BETA1:1.23
	REL7_3_15:1.18
	REL7_4_13:1.19
	REL8_0_8:1.20
	REL8_1_4:1.20
	REL7_3_14:1.18
	REL7_4_12:1.19
	REL8_0_7:1.20
	REL8_1_3:1.20
	REL7_3_13:1.18
	REL7_4_11:1.19
	REL8_0_6:1.20
	REL8_1_2:1.20
	REL7_3_12:1.18
	REL7_4_10:1.19
	REL8_0_5:1.20
	REL8_1_1:1.20
	REL8_1_STABLE:1.20.0.6
	REL8_1_0:1.20
	REL8_1_0RC1:1.20
	REL8_1_0BETA4:1.20
	REL8_1_0BETA3:1.20
	REL7_3_11:1.18
	REL7_4_9:1.19
	REL8_0_4:1.20
	REL8_1_0BETA2:1.20
	REL8_1_0BETA1:1.20
	REL7_3_10:1.18
	REL7_4_8:1.19
	REL8_0_3:1.20
	REL8_0_2:1.20
	REL7_3_9:1.18
	REL7_4_7:1.19
	REL8_0_1:1.20
	REL8_0_STABLE:1.20.0.4
	REL8_0_0:1.20.0.2
	REL8_0_0RC5:1.20
	REL8_0_0RC4:1.20
	REL8_0_0RC3:1.20
	REL8_0_0RC2:1.20
	REL8_0_0RC1:1.20
	REL8_0_0BETA5:1.20
	REL8_0_0BETA4:1.20
	REL7_4_6:1.19
	REL7_3_8:1.18
	REL8_0_0BETA3:1.20
	REL8_0_0BETA2:1.20
	REL7_4_5:1.19
	REL7_3_7:1.18
	REL7_4_4:1.19
	REL8_0_0BETA1:1.20
	REL7_4_3:1.19
	REL7_4_2:1.19
	REL7_3_6:1.18
	REL7_4_1:1.19
	REL7_3_5:1.18
	REL7_4:1.19
	REL7_4_RC2:1.19
	REL7_4_STABLE:1.19.0.4
	REL7_4_RC1:1.19
	REL7_4_BETA5:1.19
	REL7_4_BETA4:1.19
	REL7_4_BETA3:1.19
	REL7_4_BETA2:1.19
	WIN32_DEV:1.19.0.2
	REL7_4_BETA1:1.19
	REL7_3_4:1.18
	REL7_3_2:1.18
	REL7_3_STABLE:1.18.0.2
	REL2_0B:1.5.0.2
	REL2_0:1.5;
locks; strict;
comment	@# @;


1.29
date	2010.09.11.15.48.04;	author heikki;	state Exp;
branches;
next	1.28;

1.28
date	2010.07.05.18.54.37;	author tgl;	state Exp;
branches;
next	1.27;

1.27
date	2008.10.29.16.06.46;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2008.02.19.15.29.58;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2008.02.19.10.30.07;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2007.01.07.08.49.31;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2006.04.28.17.09.16;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2006.01.05.03.01.35;	author momjian;	state Exp;
branches;
next	1.21;

1.21
date	2006.01.05.01.56.29;	author momjian;	state Exp;
branches;
next	1.20;

1.20
date	2003.11.29.19.51.54;	author pgsql;	state Exp;
branches;
next	1.19;

1.19
date	2003.05.15.16.35.29;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	2002.07.27.20.10.05;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2002.07.19.17.35.11;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2002.07.18.04.13.59;	author momjian;	state Exp;
branches;
next	1.15;

1.15
date	2002.07.16.05.49.38;	author momjian;	state Exp;
branches;
next	1.14;

1.14
date	2002.07.15.21.34.04;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2002.05.05.16.02.37;	author tgl;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.05.00.03.28;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	2002.03.13.00.05.06;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	97.02.04.22.36.30;	author scrappy;	state dead;
branches;
next	1.9;

1.9
date	97.01.23.15.58.34;	author scrappy;	state Exp;
branches;
next	1.8;

1.8
date	97.01.22.04.15.53;	author scrappy;	state Exp;
branches;
next	1.7;

1.7
date	97.01.13.16.47.52;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	97.01.13.03.54.20;	author bryanh;	state Exp;
branches;
next	1.5;

1.5
date	96.11.26.03.18.38;	author bryanh;	state Exp;
branches;
next	1.4;

1.4
date	96.11.10.03.13.27;	author bryanh;	state Exp;
branches;
next	1.3;

1.3
date	96.10.31.17.27.58;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	96.10.28.09.00.52;	author bryanh;	state Exp;
branches;
next	1.1;

1.1
date	96.10.27.09.49.14;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.29
log
@Introduce latches. A latch is a boolean variable, with the capability to
wait until it is set. Latches can be used to reliably wait until a signal
arrives, which is hard otherwise because signals don't interrupt select()
on some platforms, and even when they do, there's race conditions.

On Unix, latches use the so called self-pipe trick under the covers to
implement the sleep until the latch is set, without race conditions. On
Windows, Windows events are used.

Use the new latch abstraction to sleep in walsender, so that as soon as
a transaction finishes, walsender is woken up to immediately send the WAL
to the standby. This reduces the latency between master and standby, which
is good.

Preliminary work by Fujii Masao. The latch implementation is by me, with
helpful comments from many people.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for the port-specific subsystem of the backend
#
# We have two different modes of operation: 1) put stuff specific to Port X
# in subdirectory X and have that subdirectory's make file make it all, and 
# 2) use conditional statements in the present make file to include what's
# necessary for a specific port in our own output.  (1) came first, but (2)
# is superior for many things, like when the same thing needs to be done for
# multiple ports and you don't want to duplicate files in multiple 
# subdirectories.  Much of the stuff done via Method 1 today should probably
# be converted to Method 2.  
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.28 2010/07/05 18:54:37 tgl Exp $
#
#-------------------------------------------------------------------------

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

OBJS = dynloader.o pg_sema.o pg_shmem.o pg_latch.o $(TAS)

ifeq ($(PORTNAME), darwin)
SUBDIRS += darwin
endif
ifeq ($(PORTNAME), win32)
SUBDIRS += win32
endif

include $(top_srcdir)/src/backend/common.mk

tas.o: tas.s
ifeq ($(SUN_STUDIO_CC), yes)
# preprocess assembler file with cpp
	$(CC) $(CFLAGS) -c -P $<
	mv $*.i $*_cpp.s
	$(CC) $(CFLAGS) -c $*_cpp.s -o $@@
else
	$(CC) $(CFLAGS) -c $<
endif

# IPC test program
ipc_test: ipc_test.o pg_sema.o pg_shmem.o
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $^ $(LIBS) -o $@@

distclean clean:
	rm -f ipc_test ipc_test.o tas_cpp.s
	$(MAKE) -C darwin clean
	$(MAKE) -C win32 clean
@


1.28
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
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.27 2008/10/29 16:06:46 petere Exp $
d24 1
a24 1
OBJS = dynloader.o pg_sema.o pg_shmem.o $(TAS)
@


1.27
log
@Support for Sun Studio compiler on Linux

This basically takes some build system code that was previously labeled
"Solaris" and ties it to the compiler rather than the operating system.

Author: Julius Stroffek <Julius.Stroffek@@Sun.COM>
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.26 2008/02/19 15:29:58 petere Exp $
d47 1
a47 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@@
@


1.26
log
@More refactoring, so that the SUBSYS.o rules are now all in one place.
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.25 2008/02/19 10:30:07 petere Exp $
d36 2
a37 2
ifeq ($(PORTNAME), solaris)
# preprocess assembler file with cpp, used by x86
@


1.25
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.24 2007/01/07 08:49:31 petere Exp $
d24 1
a24 3
OBJS+=dynloader.o pg_sema.o pg_shmem.o

OBJS+=$(TAS)
d27 1
a27 1
OBJS+=darwin/SUBSYS.o
d30 1
a30 1
OBJS+=win32/SUBSYS.o
a34 10
darwin/SUBSYS.o: darwin.dir

darwin.dir:
	$(MAKE) -C darwin all

win32/SUBSYS.o: win32.dir

win32.dir:
	$(MAKE) -C win32 all

@


1.24
log
@Indent comments in makefiles better so they don't appear in the output.
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.23 2006/04/28 17:09:16 momjian Exp $
d35 1
a35 4
all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) $@@ $^
d62 1
a62 1
	rm -f SUBSYS.o $(OBJS) ipc_test ipc_test.o tas_cpp.s
@


1.23
log
@Modify Solaris compiler build rules to use the cpp preprocessor, the the
x86 file.
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.22 2006/01/05 03:01:35 momjian Exp $
d52 1
a52 1
	# preprocess assembler file with cpp, used by x86
@


1.22
log
@Remove BEOS port.
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.21 2006/01/05 01:56:29 momjian Exp $
d51 6
d58 1
d65 1
a65 1
	rm -f SUBSYS.o $(OBJS) ipc_test ipc_test.o
a67 1

@


1.21
log
@Remove QNX port.
@
text
@d16 1
a16 1
#    $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.20 2003/11/29 19:51:54 pgsql Exp $
a27 3
ifeq ($(PORTNAME), beos)
OBJS+=beos/SUBSYS.o
endif
a39 5
beos/SUBSYS.o: beos.dir

beos.dir:
	$(MAKE) -C beos all

a58 1
	$(MAKE) -C beos clean
@


1.20
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d16 1
a16 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/backend/port/Makefile,v 1.19 2003/05/15 16:35:29 momjian Exp $
a27 3
ifeq ($(PORTNAME), qnx4)
OBJS+=qnx4/SUBSYS.o
endif
a42 5
qnx4/SUBSYS.o: qnx4.dir

qnx4.dir:
	$(MAKE) -C qnx4 all

a68 1
	$(MAKE) -C qnx4 clean
@


1.19
log
@Allow Win32 to compile under MinGW.  Major changes are:

        Win32 port is now called 'win32' rather than 'win'
        add -lwsock32 on Win32
        make gethostname() be only used when kerberos4 is enabled
        use /port/getopt.c
        new /port/opendir.c routines
        disable GUC unix_socket_group on Win32
        convert some keywords.c symbols to KEYWORD_P to prevent conflict
        create new FCNTL_NONBLOCK macro to turn off socket blocking
        create new /include/port.h file that has /port prototypes, move
          out of c.h
        new /include/port/win32_include dir to hold missing include files
        work around ERROR being defined in Win32 includes
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql-server/src/backend/port/Makefile,v 1.18 2002/07/27 20:10:05 petere Exp $
@


1.18
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.17 2002/07/19 17:35:11 momjian Exp $
d29 1
a29 1
OBJS+=getrusage.o qnx4/SUBSYS.o
d37 3
d61 5
d78 2
@


1.17
log
@Complete TODO item:

* -Add BSD-licensed qsort() for Solaris
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.16 2002/07/18 04:13:59 momjian Exp $
a23 4
OBJS=$(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
        $(MISSING_RANDOM) $(QSORT) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) \
	$(STRDUP) $(STRERROR) $(STRTOL) $(STRTOUL)

a25 2
OBJS+=$(DLLINIT)

d62 1
a62 1
ipc_test: ipc_test.o pg_sema.o pg_shmem.o $(MEMCMP) $(SNPRINTF) $(STRERROR)
@


1.16
log
@Move libc replacement files from src/backend/port to src/port.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.15 2002/07/16 05:49:38 momjian Exp $
d24 5
a28 1
OBJS=dynloader.o pg_sema.o pg_shmem.o
@


1.15
log
@Add DLLINIT mention in port/Makefile.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.14 2002/07/15 21:34:04 momjian Exp $
d26 1
a26 3
OBJS+=$(DLLINIT) $(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
        $(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRDUP) \
	$(STRERROR) $(STRTOL) $(STRTOUL)
@


1.14
log
@Remove certain Makefile dependencies by using full pathnames in
configure.in.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.13 2002/05/05 16:02:37 tgl Exp $
d26 1
a26 1
OBJS+=$(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
@


1.13
log
@Add a trivial testbed for pg_sema and pg_shmem code.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.12 2002/05/05 00:03:28 tgl Exp $
d24 1
a24 1
OBJS = dynloader.o pg_sema.o pg_shmem.o
d26 3
a28 3
OBJS += $(GETHOSTNAME) $(GETRUSAGE) $(INET_ATON) $(ISINF) $(MEMCMP) \
        $(MISSING_RANDOM) $(SNPRINTF) $(SRANDOM) $(STRCASECMP) $(STRERROR) \
        $(STRTOL) $(STRTOUL)
d30 1
a30 1
OBJS += $(TAS)
a31 3
ifdef STRDUP
OBJS += $(top_builddir)/src/utils/strdup.o
endif
d33 1
a33 1
OBJS += getrusage.o qnx4/SUBSYS.o
d36 1
a36 1
OBJS += beos/SUBSYS.o
d39 1
a39 1
OBJS += darwin/SUBSYS.o
a45 3

$(top_builddir)/src/utils/strdup.o:
	$(MAKE) -C $(top_builddir)/src/utils strdup.o
@


1.12
log
@Create an internal semaphore API that is not tied to SysV semaphores.
As proof of concept, provide an alternate implementation based on POSIX
semaphores.  Also push the SysV shared-memory implementation into a
separate file so that it can be replaced conveniently.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.11 2002/03/13 00:05:06 petere Exp $
d28 1
a28 1
        $(STRTOL) $(STRTOUL) $(SNPRINTF)
d71 4
d76 1
a76 1
	rm -f SUBSYS.o $(OBJS)
@


1.11
log
@Move
  src/GNUmakefile.in to src/Makefile
and
  src/backend/port/Makefile.in to src/backend/port/Makefile

All configure substitutions are now done in Makefile.global.
@
text
@d16 1
a16 1
#    $Header: /cvsroot/pgsql/src/backend/port/Makefile.in,v 1.32 2002/03/04 17:43:32 tgl Exp $
d24 1
a24 1
OBJS = dynloader.o
@


1.10
log
@Test for existence of inet_aton on the system, and only include inet_aton.c if
required

Pointed out by Brian E. Gallew
@
text
@a5 6
# You must invoke this make file with the PORTNAME variable set to the
# name of a port, i.e. the name of a subdirectory of the current directory.
# Example: 
#
#    make SUBSYS.o PORTNAME=linux
#
d16 1
a16 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.9 1997/01/23 15:58:34 scrappy Exp scrappy $
d20 23
a42 11
ifndef PORTNAME
.DEFAULT all: 
	@@echo "Error:  Must invoke make with PORTNAME= argument."
	@@false
else

OBJS = $(PORTNAME)/SUBSYS.o

ifneq (,$(findstring /$(PORTNAME)/, /i386_solaris/sparc_solaris/ultrix4/nextstep/svr4))
# Other ports get the inet_aton() function from their standard C libraries.
OBJS += inet_aton.o
d45 1
a45 1
all: submake SUBSYS.o
d48 4
a51 1
	$(LD) -r -o SUBSYS.o $(OBJS)
d53 1
a53 1
.PHONY: submake clean dep
d55 2
a56 2
submake:
	$(MAKE) -C $(PORTNAME) SUBSYS.o
d58 1
a58 3
clean:
	rm -f $(OBJS)
	$(MAKE) -C $(PORTNAME) clean
d60 2
a61 3
depend dep:
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
	$(MAKE) -C $(PORTNAME) $@@
d63 4
a66 3
ifeq (depend,$(wildcard depend))
include depend
endif
d68 2
a69 1
endif
d71 5
@


1.9
log
@Small fixes for SVR4 port by Frank Ridderbusch
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.8 1997/01/22 04:15:53 scrappy Exp $
@


1.8
log
@the i386_solaris port requires inet_aton.o

Pointed out by Mark Wahl
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.7 1997/01/13 16:47:52 momjian Exp $
d34 1
a34 1
ifneq (,$(findstring /$(PORTNAME)/, /i386_solaris/sparc_solaris/ultrix4/nextstep/))
@


1.7
log
@Fix typo in findstring use.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.6 1997/01/13 03:54:20 bryanh Exp $
d34 1
a34 1
ifneq (,$(findstring /$(PORTNAME)/, /sparc_solaris/ultrix4/nextstep/))
@


1.6
log
@Part of patch to make a working nextstep port.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.5 1996/11/26 03:18:38 bryanh Exp $
d34 1
a34 1
ifneq ($(findstring /$(PORTNAME)/, /sparc_solaris/ultrix4/nextstep/))
@


1.5
log
@Make it compile on Ultrix.  Thanks Erik Bertelson.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.4 1996/11/10 03:13:27 bryanh Exp $
d34 1
a34 6
ifeq ($(PORTNAME), sparc_solaris)
# Other ports get the inet_aton() function from their standard C libraries.
OBJS += inet_aton.o
endif

ifeq ($(PORTNAME), ultrix4)
@


1.4
log
@Recognize dependencies more reliably.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
d35 5
@


1.3
log
@Fix for gmake clean.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/port/Makefile,v 1.2 1996/10/28 09:00:52 bryanh Exp $
d32 1
a32 1
OBJS = 
d39 1
a39 1
all: SUBSYS.o
d41 2
a42 2
SUBSYS.o: $(PORTNAME)/SUBSYS.o $(OBJS)
	$(LD) -r -o SUBSYS.o $(PORTNAME)/SUBSYS.o $(OBJS)
d44 3
a46 1
$(PORTNAME)/SUBSYS.o:
d50 1
a50 1
	rm -f SUBSYS.o $(OBJS) 
@


1.2
log
@Add our own copy of inet_aton() for sparc_solaris, which doesn't have it in
the standard C library.
@
text
@d22 1
a22 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
d48 1
a48 1
	rm -f $(OBJS)
@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d12 9
d32 7
d41 4
a44 1
SUBSYS.o: 
a45 1
	cp $(PORTNAME)/SUBSYS.o .
d48 1
a48 1
	rm -f SUBSYS.o
d51 2
a52 1
.DEFAULT: 
d55 3
d60 1
@
