]> granicus.if.org Git - postgresql/blob - src/timezone/Makefile
Allow timezone to compile under Unix by blocking 'timezone' conflict with
[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.3 2004/04/30 14:24:14 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 ($(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 $(datadir)/timezone $(TZDATAFILES)
34
35 clean distclean maintainer-clean:
36         rm -f SUBSYS.o $(OBJS) $(ZICOBJS)
37 endif
38