head	1.33;
access;
symbols
	REL9_0_0:1.33
	REL9_1_ALPHA1:1.33
	REL9_0_RC1:1.33
	REL9_0_BETA4:1.33
	REL9_0_STABLE:1.33.0.2
	REL9_0_BETA3:1.33
	REL9_0_BETA2:1.32
	REL8_0_25:1.17.4.1
	REL8_1_21:1.22.2.1
	REL8_2_17:1.24.2.1
	REL8_3_11:1.28
	REL8_4_4:1.31
	REL9_0_BETA1:1.32
	REL9_0_ALPHA5_BRANCH:1.32.0.8
	REL9_0_ALPHA5:1.32
	REL8_0_24:1.17.4.1
	REL8_1_20:1.22.2.1
	REL8_2_16:1.24.2.1
	REL8_3_10:1.28
	REL8_4_3:1.31
	REL9_0_ALPHA4:1.32
	REL9_0_ALPHA4_BRANCH:1.32.0.6
	REL8_5_ALPHA3:1.32
	REL8_5_ALPHA3_BRANCH:1.32.0.4
	REL8_0_23:1.17.4.1
	REL8_1_19:1.22.2.1
	REL8_2_15:1.24.2.1
	REL8_3_9:1.28
	REL8_4_2:1.31
	REL8_5_ALPHA2:1.32
	REL8_5_ALPHA2_BRANCH:1.32.0.2
	REL8_0_22:1.17.4.1
	REL8_1_18:1.22.2.1
	REL8_2_14:1.24.2.1
	REL8_3_8:1.28
	REL8_4_1:1.31
	REL8_5_ALPHA1:1.31
	REL8_5_ALPHA1_BRANCH:1.31.0.4
	REL8_4_STABLE:1.31.0.2
	REL8_4_0:1.31
	REL8_4_RC2:1.31
	REL8_4_RC1:1.31
	REL8_4_BETA2:1.31
	REL8_4_BETA1:1.31
	REL8_0_21:1.17.4.1
	REL8_1_17:1.22.2.1
	REL8_2_13:1.24.2.1
	REL8_3_7:1.28
	REL8_0_20:1.17.4.1
	REL8_1_16:1.22.2.1
	REL8_2_12:1.24.2.1
	REL8_3_6:1.28
	REL8_0_19:1.17.4.1
	REL8_1_15:1.22.2.1
	REL8_2_11:1.24.2.1
	REL8_3_5:1.28
	REL8_0_18:1.17.4.1
	REL8_1_14:1.22.2.1
	REL8_2_10:1.24.2.1
	REL8_3_4:1.28
	REL8_0_17:1.17.4.1
	REL8_1_13:1.22.2.1
	REL8_2_9:1.24.2.1
	REL8_3_3:1.28
	REL8_0_16:1.17.4.1
	REL8_1_12:1.22.2.1
	REL8_2_8:1.24.2.1
	REL8_3_2:1.28
	REL8_2_7:1.24.2.1
	REL8_3_1:1.28
	REL8_3_STABLE:1.28.0.2
	REL8_3_0:1.28
	REL8_3_RC2:1.28
	REL8_0_15:1.17.4.1
	REL8_1_11:1.22.2.1
	REL8_2_6:1.24.2.1
	REL8_3_RC1:1.28
	REL8_3_BETA4:1.28
	REL8_3_BETA3:1.28
	REL8_3_BETA2:1.28
	REL8_3_BETA1:1.28
	REL8_0_14:1.17.4.1
	REL8_1_10:1.22.2.1
	REL8_2_5:1.24.2.1
	REL8_0_13:1.17.4.1
	REL8_1_9:1.22.2.1
	REL8_2_4:1.24.2.1
	REL8_0_12:1.17
	REL8_1_8:1.22
	REL8_2_3:1.24
	REL8_0_11:1.17
	REL8_1_7:1.22
	REL8_2_2:1.24
	REL8_0_10:1.17
	REL8_1_6:1.22
	REL8_2_1:1.24
	REL8_2_STABLE:1.24.0.2
	REL8_2_0:1.24
	REL8_2_RC1:1.24
	REL8_2_BETA3:1.24
	REL8_2_BETA2:1.24
	REL8_1_5:1.22
	REL8_0_9:1.17
	REL8_2_BETA1:1.24
	REL8_0_8:1.17
	REL8_1_4:1.22
	REL8_0_7:1.17
	REL8_1_3:1.22
	REL8_0_6:1.17
	REL8_1_2:1.22
	REL8_0_5:1.17
	REL8_1_1:1.22
	REL8_1_STABLE:1.22.0.2
	REL8_1_0:1.22
	REL8_1_0RC1:1.22
	REL8_1_0BETA4:1.22
	REL8_1_0BETA3:1.22
	REL8_0_4:1.17
	REL8_1_0BETA2:1.22
	REL8_1_0BETA1:1.22
	REL8_0_3:1.17
	REL8_0_2:1.17
	REL8_0_1:1.17
	REL8_0_STABLE:1.17.0.4
	REL8_0_0:1.17.0.2
	REL8_0_0RC5:1.17
	REL8_0_0RC4:1.17
	REL8_0_0RC3:1.17
	REL8_0_0RC2:1.16
	REL8_0_0RC1:1.16
	REL8_0_0BETA5:1.16
	REL8_0_0BETA4:1.16
	REL8_0_0BETA3:1.15
	REL8_0_0BETA2:1.15
	REL8_0_0BETA1:1.15;
locks; strict;
comment	@# @;


1.33
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.32;

1.32
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.31;

1.31
date	2009.01.06.02.25.29;	author momjian;	state Exp;
branches;
next	1.30;

1.30
date	2009.01.05.10.25.59;	author petere;	state Exp;
branches;
next	1.29;

1.29
date	2008.02.19.15.29.58;	author petere;	state Exp;
branches;
next	1.28;

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

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

1.26
date	2007.03.14.17.38.06;	author tgl;	state Exp;
branches;
next	1.25;

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

1.24
date	2006.07.25.03.51.22;	author tgl;	state Exp;
branches
	1.24.2.1;
next	1.23;

1.23
date	2005.12.09.21.19.36;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2005.07.06.21.40.09;	author momjian;	state Exp;
branches
	1.22.2.1;
next	1.21;

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

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

1.19
date	2005.07.04.02.55.59;	author neilc;	state Exp;
branches;
next	1.18;

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

1.17
date	2004.12.31.19.01.54;	author tgl;	state Exp;
branches
	1.17.4.1;
next	1.16;

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

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

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

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

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

1.11
date	2004.05.22.21.02.32;	author tgl;	state Exp;
branches;
next	1.10;

1.10
date	2004.05.21.05.08.06;	author tgl;	state Exp;
branches;
next	1.9;

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

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

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

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

1.5
date	2004.04.30.17.52.07;	author momjian;	state Exp;
branches;
next	1.4;

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

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

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

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

1.17.4.1
date	2007.03.14.17.38.29;	author tgl;	state Exp;
branches;
next	;

1.22.2.1
date	2007.03.14.17.38.22;	author tgl;	state Exp;
branches;
next	;

1.24.2.1
date	2007.03.14.17.38.15;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.33
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
#    Makefile for the timezone library

# IDENTIFICATION
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.32 2009/08/26 22:24:43 petere Exp $
#
#-------------------------------------------------------------------------

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

# files to build into backend
OBJS= localtime.o strftime.o pgtz.o

# files needed to build zic utility program
ZICOBJS= zic.o ialloc.o scheck.o localtime.o

# timezone data files
TZDATA = africa antarctica asia australasia europe northamerica southamerica \
	pacificnew etcetera factory backward systemv solar87 solar88 solar89
TZDATAFILES = $(TZDATA:%=$(srcdir)/data/%)

# which zone should determine the DST rules (not the specific UTC offset!)
# for POSIX-style timezone specs
POSIXRULES = US/Eastern

# use system timezone data?
ifneq (,$(with_system_tzdata))
override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
endif

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

ifeq (,$(with_system_tzdata))
all: submake-libpgport zic
endif

# We could do this test in the action section:
#	$(if $(ZIC),$(ZIC),./zic)
# but gmake versions <= 3.78.1 or perhaps later have a bug
# that causes a segfault;  gmake 3.81 or later fixes this.
ifeq (,$(ZIC))
ZIC= ./zic
endif

zic: $(ZICOBJS)
	$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

install: all installdirs
ifeq (,$(with_system_tzdata))
	$(ZIC) -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
endif
	$(MAKE) -C tznames $@@

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

uninstall:
ifeq (,$(with_system_tzdata))
	rm -rf '$(DESTDIR)$(datadir)/timezone'
endif
	$(MAKE) -C tznames $@@

clean distclean maintainer-clean:
	rm -f zic$(X) $(ZICOBJS)
@


1.32
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
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.31 2009/01/06 02:25:29 momjian Exp $
d50 1
a50 1
	$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.31
log
@Fix new timezone cross-compile rule to avoid a bug in gmake 3.78.1;
document change.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.30 2009/01/05 10:25:59 petere Exp $
d59 1
a59 1
	$(mkinstalldirs) '$(DESTDIR)$(datadir)'
@


1.30
log
@When cross-compiling, allow and require an external zic program to be used
when --with-system-tzdata is not used.

initial patch by Richard Evans
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.29 2008/02/19 15:29:58 petere Exp $
d41 8
d54 1
a54 1
	$(if $(ZIC),$(ZIC),./zic) -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
@


1.29
log
@More refactoring, so that the SUBSYS.o rules are now all in one place.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.28 2007/08/25 20:29:25 tgl Exp $
d46 1
a46 1
	./zic -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
@


1.28
log
@Adjust with-system-tzdata patch to not attempt to install a symlink,
but just hardwire the specified timezone database path into the executable.
Per discussion, this avoids some packaging disadvantages of using a
symlink.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.27 2007/08/20 08:53:12 petere Exp $
d35 1
a35 1
all: SUBSYS.o
a40 3
SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)

d60 1
a60 1
	rm -f SUBSYS.o zic$(X) $(OBJS) $(ZICOBJS)
@


1.27
log
@Add configure option --with-system-tzdata to use operating system time zone
database.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.26 2007/03/14 17:38:06 tgl Exp $
d30 10
a39 1
all: SUBSYS.o submake-libpgport zic
a43 1
ifeq (,$(with_system_tzdata))
a45 1
endif
a49 2
else
	ln -s '$(with_system_tzdata)' '$(DESTDIR)$(datadir)/timezone'
d57 1
d59 1
@


1.26
log
@Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.25 2007/02/09 15:56:00 petere Exp $
d35 1
d38 1
d41 1
d43 3
@


1.25
log
@Replace useless uses of := by = in makefiles.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.24 2006/07/25 03:51:22 tgl Exp $
d26 4
d39 1
a39 1
	./zic -d '$(DESTDIR)$(datadir)/timezone' $(TZDATAFILES)
@


1.24
log
@Remove hard-wired lists of timezone abbreviations in favor of providing
configuration files that can be altered by a DBA.  The australian_timezones
GUC setting disappears, replaced by a timezone_abbreviations setting (set this
to 'Australia' to get the effect of australian_timezones).  The list of zone
names defined by default has undergone a bit of cleanup, too.  Documentation
still needs some work --- in particular, should we fix Table B-4, or just get
rid of it?  Joachim Wieland, with some editorializing by moi.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.23 2005/12/09 21:19:36 petere Exp $
a14 2
override CPPFLAGS := $(CPPFLAGS)

d22 1
a22 1
TZDATA := africa antarctica asia australasia europe northamerica southamerica \
d24 1
a24 1
TZDATAFILES := $(TZDATA:%=$(srcdir)/data/%)
@


1.24.2.1
log
@Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.24 2006/07/25 03:51:22 tgl Exp $
a27 4
# which zone should determine the DST rules (not the specific UTC offset!)
# for POSIX-style timezone specs
POSIXRULES = US/Eastern

d37 1
a37 1
	./zic -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
@


1.23
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.22 2005/07/06 21:40:09 momjian Exp $
d38 1
d45 1
@


1.22
log
@Complete zic patch backout by removing NO_PGPORT workaround.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.21 2005/07/06 21:04:14 momjian Exp $
d37 1
a37 1
	./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
d40 4
a43 1
	$(mkinstalldirs) $(DESTDIR)$(datadir)
@


1.22.2.1
log
@Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.22 2005/07/06 21:40:09 momjian Exp $
a27 4
# which zone should determine the DST rules (not the specific UTC offset!)
# for POSIX-style timezone specs
POSIXRULES = US/Eastern

d37 1
a37 1
	./zic -d $(DESTDIR)$(datadir)/timezone -p $(POSIXRULES) $(TZDATAFILES)
@


1.21
log
@Reverse out because the lack of using pgport in timezone/ is causing
problems:

---------------------------------------------------------------------------

Support cross compilation by compiling "zic" with a native compiler.
This relies on the output of zic being platform independent, but that is
currently the case.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.20 2005/07/04 19:54:51 momjian Exp $
d15 1
a15 1
override CPPFLAGS := $(CPPFLAGS) -I$(srcdir) -DNO_PGPORT
@


1.20
log
@Restructure zic #define fprintf checks to use a NO_PGPORT macro instead.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.19 2005/07/04 02:55:59 neilc Exp $
d21 1
a21 1
ZICOBJS= zic.o ialloc.o scheck.o localtime-zic.o
a32 9
# In case of cross-compilation, zic needs to be built with a native
# compiler because it is run during the build, not on the final
# system.

localtime-zic.c: localtime.c
	$(LN_S) $< $@@

$(ZICOBJS): CC=$(CC_FOR_BUILD)

d34 1
a34 1
	$(CC_FOR_BUILD) $(CFLAGS) $(ZICOBJS) -o $@@$(X)
d43 1
a43 1
	rm -f SUBSYS.o zic zic$(X) $(OBJS) $(ZICOBJS) localtime-zic.c
@


1.19
log
@Fix build break for out of tree (vpath) builds, induced by recent zic
changes.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.18 2005/07/03 18:54:28 petere Exp $
d15 1
a15 1
override CPPFLAGS := $(CPPFLAGS) -I$(srcdir)
@


1.18
log
@Support cross compilation by compiling "zic" with a native compiler.  This
relies on the output of zic being platform independent, but that is
currently the case.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.17 2004/12/31 19:01:54 tgl Exp $
d15 1
a15 1
override CPPFLAGS := $(CPPFLAGS)
@


1.17
log
@make clean must remove zic$(X) for Windows, per Magnus.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.16 2004/10/04 13:43:59 momjian Exp $
d21 1
a21 1
ZICOBJS= zic.o ialloc.o scheck.o localtime.o
d33 9
d43 1
a43 1
	$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@@$(X)
d52 1
a52 1
	rm -f SUBSYS.o zic$(X) $(OBJS) $(ZICOBJS)
@


1.17.4.1
log
@Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.17 2004/12/31 19:01:54 tgl Exp $
a27 4
# which zone should determine the DST rules (not the specific UTC offset!)
# for POSIX-style timezone specs
POSIXRULES = US/Eastern

d37 1
a37 1
	./zic -d $(DESTDIR)$(datadir)/timezone -p $(POSIXRULES) $(TZDATAFILES)
@


1.16
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/timezone/Makefile,v 1.15 2004/08/08 05:19:44 momjian Exp $
d43 1
a43 1
	rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS)
@


1.15
log
@More Win32 zic build cleanups now that we have symlinks, it needs help.
@
text
@d3 1
a3 1
# Makefile--
d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.14 2004/08/08 04:53:41 momjian Exp $
d15 1
a15 1
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
d21 1
a21 1
ZICOBJS= zic.o ialloc.o scheck.o localtime.o dirmod.o
a35 3
dirmod.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

d43 1
a43 1
	rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS) dirmod.c
@


1.14
log
@Another zic cleanup .
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.13 2004/08/08 03:57:35 momjian Exp $
d18 1
a18 1
OBJS= localtime.o strftime.o pgtz.o dirmod.o
d21 1
a21 1
ZICOBJS= zic.o ialloc.o scheck.o localtime.o
@


1.13
log
@Link in dirmod specially for zic so it works on Win32.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.12 2004/05/28 03:53:33 tgl Exp $
d15 2
@


1.12
log
@Seems we forgot the installdirs target in this makefile.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.11 2004/05/22 21:02:32 tgl Exp $
d16 1
a16 1
OBJS= localtime.o strftime.o pgtz.o
d34 3
d44 1
a44 1
	rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS)
@


1.11
log
@Fix to install correctly in vpath build case.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.10 2004/05/21 05:08:06 tgl Exp $
d36 3
@


1.10
log
@Integrate src/timezone library for all platforms.  There is more we can
and should do now that we control our own destiny for timezone handling,
but this commit gets the bulk of the picayune diffs in place.
Magnus Hagander and Tom Lane.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.9 2004/05/18 04:10:33 momjian Exp $
d24 1
a24 1
TZDATAFILES := $(TZDATA:%=data/%)
@


1.9
log
@Update Makefile dependencies for Win32 timezones, per Claudio.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.8 2004/05/17 14:35:34 momjian Exp $
d15 2
a16 2
OBJS= asctime.o difftime.o localtime.o pgtz.o
ZICOBJS= zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
d18 6
a23 1
TZDATA := africa antarctica asia australasia europe northamerica southamerica pacificnew etcetera factory backward systemv solar87 solar88 solar89
a25 1
ifeq ($(USE_PGTZ), yes)
d38 1
a38 3
	rm -f SUBSYS.o $(OBJS) $(ZICOBJS)
endif

@


1.8
log
@Reorganize code to allow path-relative installs.

Create new get_* functions to access compiled-in paths and adjust if
relative installs are to be used.

Clean up substitute_libpath_macro() code.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.7 2004/04/30 20:23:28 momjian Exp $
d22 1
a22 1
all: SUBSYS.o zic
d30 1
a30 1
install: zic
@


1.7
log
@Fix zic compiler to use pg version.

Move timezone database to share/timezone.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.6 2004/04/30 20:01:39 momjian Exp $
a13 2

override CPPFLAGS += -DPGDATADIR=\"$(datadir)\"
@


1.6
log
@Allow build of timezone database on unix.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.5 2004/04/30 17:52:07 momjian Exp $
d15 1
a15 1
override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\"
d33 1
a33 1
	./zic -d $(pkglibdir)/../timezone $(TZDATAFILES)
@


1.5
log
@More timezone build adjustments.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.4 2004/04/30 16:08:01 momjian Exp $
d33 1
a33 1
	zic -d $(pkglibdir)/../timezone $(TZDATAFILES)
@


1.4
log
@More cleanups for USE_PGTZ.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.3 2004/04/30 14:24:14 momjian Exp $
d33 1
a33 1
	zic -d $(datadir)/timezone $(TZDATAFILES)
@


1.3
log
@Allow timezone to compile under Unix by blocking 'timezone' conflict with
system headers.

Allow system to find timezone database by pasing pkglibdir into the
binary via a define.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.2 2004/04/30 04:31:52 momjian Exp $
d23 1
a23 1
ifeq ($(PGTZ), yes)
@


1.2
log
@Integrate timezone library to be called only from Win32.

Timezone code backend integration done by Magnus Hagander.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/timezone/Makefile,v 1.1 2004/04/30 04:09:23 momjian Exp $
d11 1
a11 1
subdir = src/tz
d15 2
d30 1
@


1.1
log
@Add Olson's public domain timezone library to src/timezone.
@
text
@d7 1
a7 1
#    $PostgreSQL$
d11 2
a12 2
subdir = src/port/tz
top_builddir = ../../..
d16 1
a16 1
ZICOBJS= zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o ../path.o
d21 1
a26 1

d34 2
@

