head	1.9;
access;
symbols
	REL9_0_0:1.9
	REL9_1_ALPHA1:1.9
	REL9_0_RC1:1.9
	REL9_0_BETA4:1.9
	REL9_0_STABLE:1.9.0.2
	REL9_0_BETA3:1.9
	REL9_0_BETA2:1.8
	REL8_0_25:1.2
	REL8_1_21:1.2
	REL8_2_17:1.3
	REL8_3_11:1.6
	REL8_4_4:1.7
	REL9_0_BETA1:1.8
	REL9_0_ALPHA5_BRANCH:1.8.0.4
	REL9_0_ALPHA5:1.8
	REL8_0_24:1.2
	REL8_1_20:1.2
	REL8_2_16:1.3
	REL8_3_10:1.6
	REL8_4_3:1.7
	REL9_0_ALPHA4:1.8
	REL9_0_ALPHA4_BRANCH:1.8.0.2
	REL8_5_ALPHA3:1.7
	REL8_5_ALPHA3_BRANCH:1.7.0.8
	REL8_0_23:1.2
	REL8_1_19:1.2
	REL8_2_15:1.3
	REL8_3_9:1.6
	REL8_4_2:1.7
	REL8_5_ALPHA2:1.7
	REL8_5_ALPHA2_BRANCH:1.7.0.6
	REL8_0_22:1.2
	REL8_1_18:1.2
	REL8_2_14:1.3
	REL8_3_8:1.6
	REL8_4_1:1.7
	REL8_5_ALPHA1:1.7
	REL8_5_ALPHA1_BRANCH:1.7.0.4
	REL8_4_STABLE:1.7.0.2
	REL8_4_0:1.7
	REL8_4_RC2:1.7
	REL8_4_RC1:1.7
	REL8_4_BETA2:1.7
	REL8_4_BETA1:1.7
	REL8_0_21:1.2
	REL8_1_17:1.2
	REL8_2_13:1.3
	REL8_3_7:1.6
	REL8_0_20:1.2
	REL8_1_16:1.2
	REL8_2_12:1.3
	REL8_3_6:1.6
	REL8_0_19:1.2
	REL8_1_15:1.2
	REL8_2_11:1.3
	REL8_3_5:1.6
	REL8_0_18:1.2
	REL8_1_14:1.2
	REL8_2_10:1.3
	REL8_3_4:1.6
	REL8_0_17:1.2
	REL8_1_13:1.2
	REL8_2_9:1.3
	REL8_3_3:1.6
	REL8_0_16:1.2
	REL8_1_12:1.2
	REL8_2_8:1.3
	REL8_3_2:1.6
	REL8_2_7:1.3
	REL8_3_1:1.6
	REL8_3_STABLE:1.6.0.2
	REL8_3_0:1.6
	REL8_3_RC2:1.6
	REL8_0_15:1.2
	REL8_1_11:1.2
	REL8_2_6:1.3
	REL8_3_RC1:1.6
	REL8_3_BETA4:1.5
	REL8_3_BETA3:1.5
	REL8_3_BETA2:1.5
	REL8_3_BETA1:1.5
	REL8_0_14:1.2
	REL8_1_10:1.2
	REL8_2_5:1.3
	REL8_0_13:1.2
	REL8_1_9:1.2
	REL8_2_4:1.3
	REL8_0_12:1.2
	REL8_1_8:1.2
	REL8_2_3:1.3
	REL8_0_11:1.2
	REL8_1_7:1.2
	REL8_2_2:1.3
	REL8_0_10:1.2
	REL8_1_6:1.2
	REL8_2_1:1.3
	REL8_2_STABLE:1.3.0.2
	REL8_2_0:1.3
	REL8_2_RC1:1.3
	REL8_2_BETA3:1.3
	REL8_2_BETA2:1.3
	REL8_1_5:1.2
	REL8_0_9:1.2
	REL8_2_BETA1:1.2
	REL8_0_8:1.2
	REL8_1_4:1.2
	REL8_0_7:1.2
	REL8_1_3:1.2
	REL8_0_6:1.2
	REL8_1_2:1.2
	REL8_0_5:1.2
	REL8_1_1:1.2
	REL8_1_STABLE:1.2.0.6
	REL8_1_0:1.2
	REL8_1_0RC1:1.2
	REL8_1_0BETA4:1.2
	REL8_1_0BETA3:1.2
	REL8_0_4:1.2
	REL8_1_0BETA2:1.2
	REL8_1_0BETA1:1.2
	REL8_0_3:1.2
	REL8_0_2:1.2
	REL8_0_1:1.2
	REL8_0_STABLE:1.2.0.4
	REL8_0_0:1.2.0.2
	REL8_0_0RC5:1.2
	REL8_0_0RC4:1.2
	REL8_0_0RC3:1.2
	REL8_0_0RC2:1.2
	REL8_0_0RC1:1.2
	REL8_0_0BETA5:1.2
	REL8_0_0BETA4:1.2
	REL8_0_0BETA3:1.2
	REL8_0_0BETA2:1.2
	REL8_0_0BETA1:1.2;
locks; strict;
comment	@# @;


1.9
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.8;

1.8
date	2010.01.02.16.58.16;	author momjian;	state Exp;
branches;
next	1.7;

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

1.6
date	2008.01.01.19.46.01;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	2007.09.27.19.53.44;	author tgl;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.05.22.20.05;	author momjian;	state Exp;
branches;
next	1.3;

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

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

1.1
date	2004.03.18.03.56.59;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.9
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/fsync
#
# Copyright (c) 2003-2010, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.8 2010/01/02 16:58:16 momjian Exp $
#
#-------------------------------------------------------------------------

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

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

OBJS= test_fsync.o

all: submake-libpq submake-libpgport test_fsync

test_fsync: test_fsync.o $(libpq_builddir)/libpq.a
	$(CC) $(CFLAGS) test_fsync.o $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

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


1.8
log
@Update copyright for the year 2010.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.7 2009/01/01 17:24:05 momjian Exp $
d22 1
a22 1
	$(CC) $(CFLAGS) test_fsync.o $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.7
log
@Update copyright for 2009.
@
text
@d5 1
a5 1
# Copyright (c) 2003-2009, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.6 2008/01/01 19:46:01 momjian Exp $
@


1.6
log
@Update copyrights in source tree to 2008.
@
text
@d5 1
a5 1
# Copyright (c) 2003-2008, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.5 2007/09/27 19:53:44 tgl Exp $
@


1.5
log
@Define the FRONTEND symbol in postgres_fe.h, which allows us to eliminate
duplicative -DFRONTEND flags from many Makefiles.  We still need Makefile
control of the symbol in a few places that compile frontend-or-backend
src/port/ files, but it's a lot cleaner than before.

Hiroshi Saito
@
text
@d5 1
a5 1
# Copyright (c) 2003-2007, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.4 2007/01/05 22:20:05 momjian Exp $
@


1.4
log
@Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.3 2006/10/13 14:19:29 momjian Exp $
d15 1
a15 1
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
@


1.3
log
@Fix test_fsync compile on MinGW(win32)

Hiroshi Saito
@
text
@d5 1
a5 1
# Copyright (c) 2003-2006, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.1 2006/10/12 20:13:41 h-saito Exp $
@


1.2
log
@Make test_fsync use optimizer flag.
@
text
@d1 1
d3 1
a3 1
# Makefile
d5 1
d7 19
a25 18
TARGET = test_fsync
XFLAGS = 
CFLAGS = -O
LIBS = 

$(TARGET) : test_fsync.o
	$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) test_fsync.o $(LIBS)

test_fsync.o	: test_fsync.c 
	$(CC) -c $(XFLAGS) $(CFLAGS) test_fsync.c

clean:
	rm -f *.o $(TARGET) log core

install:
	make clean
	make CFLAGS=-O
	install -s -o bin -g bin $(TARGET) /usr/local/bin
@


1.1
log
@Add fsync test program.  It tests fsync to see if times for fsync are the
same when done on the write() ile descriptor and a new descriptor.

it also times various fsync methods.
@
text
@d7 1
a7 1
CFLAGS = -g -Wall
@

