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


1.24
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.23;

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

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

1.21
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2009.01.01.17.23.54;	author momjian;	state Exp;
branches;
next	1.19;

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

1.18
date	2007.09.27.19.53.43;	author tgl;	state Exp;
branches;
next	1.17;

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

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

1.15
date	2005.12.09.21.19.35;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2005.01.01.20.44.24;	author tgl;	state Exp;
branches;
next	1.13;

1.13
date	2004.10.05.19.30.23;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2004.10.04.13.43.57;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.01.06.22.38;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	2004.05.25.01.00.25;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	2004.05.24.01.01.37;	author momjian;	state Exp;
branches;
next	1.8;

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

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

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

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

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

1.3
date	2003.11.29.19.52.06;	author pgsql;	state Exp;
branches;
next	1.2;

1.2
date	2002.08.17.04.03.36;	author tgl;	state Exp;
branches;
next	1.1;

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


desc
@@


1.24
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/bin/pg_resetxlog
#
# Copyright (c) 1998-2010, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.23 2010/05/12 11:33:10 momjian Exp $
#
#-------------------------------------------------------------------------

PGFILEDESC = "pg_resetxlog - reset PostgreSQL WAL log"
PGAPPICON=win32

subdir = src/bin/pg_resetxlog
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS= pg_resetxlog.o pg_crc.o $(WIN32RES)

all: submake-libpgport pg_resetxlog

pg_resetxlog: $(OBJS)
	$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
	rm -f $@@ && $(LN_S) $< .

install: all installdirs
	$(INSTALL_PROGRAM) pg_resetxlog$(X) '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(bindir)'

uninstall:
	rm -f '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'

clean distclean maintainer-clean:
	rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c
@


1.23
log
@Add PGFILEDESC description to Makefiles for all /contrib executables.

Add PGAPPICON to all executable makefiles.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.22 2010/01/02 16:57:59 momjian Exp $
d23 1
a23 1
	$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.22
log
@Update copyright for the year 2010.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.21 2009/08/26 22:24:43 petere Exp $
d12 2
@


1.21
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d5 1
a5 1
# Copyright (c) 1998-2009, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.20 2009/01/01 17:23:54 momjian Exp $
@


1.20
log
@Update copyright for 2009.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.19 2008/01/01 19:45:55 momjian Exp $
d30 1
a30 1
	$(mkinstalldirs) '$(DESTDIR)$(bindir)'
@


1.19
log
@Update copyrights in source tree to 2008.
@
text
@d5 1
a5 1
# Copyright (c) 1998-2008, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.18 2007/09/27 19:53:43 tgl Exp $
@


1.18
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) 1998-2007, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.17 2007/01/05 22:19:48 momjian Exp $
@


1.17
log
@Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.16 2006/03/05 15:58:51 momjian Exp $
a15 2
override CPPFLAGS += -DFRONTEND

@


1.16
log
@Update copyright for 2006.  Update scripts.
@
text
@d5 1
a5 1
# Copyright (c) 1998-2006, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.15 2005/12/09 21:19:35 petere Exp $
@


1.15
log
@Allow installation into directories containing spaces in the name.
@
text
@d5 1
a5 1
# Copyright (c) 1998-2005, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.14 2005/01/01 20:44:24 tgl Exp $
@


1.14
log
@Some more missed copyright notices.  Many of these look like they
should have been caught by the src/tools/copyright script ... why
weren't they?
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.13 2004/10/05 19:30:23 momjian Exp $
d29 1
a29 1
	$(INSTALL_PROGRAM) pg_resetxlog$(X) $(DESTDIR)$(bindir)/pg_resetxlog$(X)
d32 1
a32 1
	$(mkinstalldirs) $(DESTDIR)$(bindir)
d35 1
a35 1
	rm -f $(DESTDIR)$(bindir)/pg_resetxlog$(X)
@


1.13
log
@Add Win32 version info to client binaries.

Magnus Hagander
@
text
@d5 1
a5 1
# Copyright (c) 1998-2002, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.12 2004/10/04 13:43:57 momjian Exp $
@


1.12
log
@Make libpgport be front-end only and make libpgport_srv be a backend
library that uses palloc, ereport, etc.  This simplifies the makefiles
for client applications.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.11 2004/08/01 06:22:38 momjian Exp $
d11 1
d18 1
a18 1
OBJS= pg_resetxlog.o pg_crc.o
@


1.11
log
@Minor adjustments for dirmod.c.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.10 2004/05/25 01:00:25 momjian Exp $
d17 1
a17 1
OBJS= pg_resetxlog.o pg_crc.o dirmod.o exec.o
a23 3
dirmod.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

a26 3
exec.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

d37 1
a37 1
	rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c dirmod.c exec.c
@


1.10
log
@Make the locale location relocatable.

Adjust get_*_path functions to be limited to MAXPGPATH.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.9 2004/05/24 01:01:37 momjian Exp $
d43 1
a43 1
	rm -f pg_resetxlog$(X) pg_crc.c dirmod.c exec.c $(OBJS)
@


1.9
log
@Remove a few $filter() calls that were not needed.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.8 2004/04/30 20:01:39 momjian Exp $
d17 1
a17 1
OBJS= pg_resetxlog.o pg_crc.o dirmod.o
d30 3
d43 1
a43 1
	rm -f pg_resetxlog$(X) pg_crc.c dirmod.c $(OBJS)
@


1.8
log
@Allow build of timezone database on unix.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.7 2004/04/26 17:40:48 momjian Exp $
d17 1
a17 2
OBJS= pg_resetxlog.o pg_crc.o \
      $(filter dirmod.o, $(LIBOBJS))
@


1.7
log
@Add $(X) for cross-compiling.  Seems the mingw compiler running on
FreeBSD doesn't add .EXE to links.

Michiel Ephraim
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.6 2004/03/05 01:11:04 momjian Exp $
d15 1
a15 1
override CPPFLAGS := $(CPPFLAGS) -DFRONTEND
@


1.6
log
@Win32:

* Mostly, casting etc to remove compilation warnings in win32 only code.

* main.c: set _IONBF to stdout/stderr under win32 (under win32, _IOLBF
defaults to full buffering)

* pg_resetxlog/Makefile: ensures dirmod.o gets cleaned (got bitten by
this when, after "make clean"ing, switching compilation between Ming +
Cygwin)

Claudio Natoli
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.5 2004/02/10 23:24:13 tgl Exp $
d23 1
a23 1
	$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@@
@


1.5
log
@No need to link libpq into these programs ...
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.4 2004/02/02 17:21:08 momjian Exp $
d41 1
a41 1
	rm -f pg_resetxlog$(X) pg_resetxlog.o pg_crc.o pg_crc.c dirmod.c
@


1.4
log
@> src/backend/commands/user.c file has some parse error at repalloc(),
palloc()$

Fixed.  Thanks.

> src/backend/postmaster/pgstat.c miss
> #include "tcop/tcopprot.h" line.

Fixed.

> src/utils/dllinit.c wrong include header line at MinGW.
> #include <cygwin/version.h> must be not included

Fixed.

> by the way,
> I can't compile eccp because I used lower version bison.

> and bin/pg_resetxlog too. in this case I can't find what's wrong.

Fixed.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.3 2003/11/29 19:52:06 pgsql Exp $
d23 1
a23 1
	$(CC) $(CFLAGS) $^ $(libpq) $(LDFLAGS) $(LIBS) -o $@@
@


1.3
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.2 2002/08/17 04:03:36 tgl Exp $
d15 4
a18 1
OBJS= pg_resetxlog.o pg_crc.o
d25 3
d41 1
a41 1
	rm -f pg_resetxlog$(X) pg_resetxlog.o pg_crc.o pg_crc.c
@


1.2
log
@Fix broken Makefiles.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.1 2002/08/17 02:44:24 momjian Exp $
@


1.1
log
@Add files for pg_resetxlog.
@
text
@d5 1
a5 1
# Copyright (c) 1998, PostgreSQL Global Development Group
d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/bin/pg_resetxlog/Makefile,v 1.1 2002/08/16 20:34:06 momjian Exp $
a16 3
pg_crc.c: $(top_builddir)/src/backend/utils/hash/pg_crc.c
	rm -f $@@ && $(LN_S) $< .

d21 3
@
