]> granicus.if.org Git - postgresql/blob - src/timezone/Makefile
d0e7490d655b5a74e806ef93c5e6b1598f4e4bd7
[postgresql] / src / timezone / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for the timezone library
5
6 # IDENTIFICATION
7 #    $PostgreSQL: pgsql/src/timezone/Makefile,v 1.6 2004/04/30 20:01:39 momjian Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/timezone
12 top_builddir = ../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\"
16
17 OBJS= asctime.o difftime.o localtime.o pgtz.o
18 ZICOBJS= zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
19
20 TZDATA := africa antarctica asia australasia europe northamerica southamerica pacificnew etcetera factory backward systemv solar87 solar88 solar89
21 TZDATAFILES := $(TZDATA:%=data/%)
22
23 ifeq ($(USE_PGTZ), yes)
24 all: SUBSYS.o zic
25
26 SUBSYS.o: $(OBJS)
27         $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
28
29 zic: $(ZICOBJS)
30         $(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
31
32 install: zic
33         ./zic -d $(pkglibdir)/../timezone $(TZDATAFILES)
34
35 clean distclean maintainer-clean:
36         rm -f SUBSYS.o $(OBJS) $(ZICOBJS)
37 endif
38