mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for the timezone library
|
|
|
|
# IDENTIFICATION
|
|
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.15 2004/08/08 05:19:44 momjian Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/timezone
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
|
|
|
# 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 dirmod.o
|
|
|
|
# timezone data files
|
|
TZDATA := africa antarctica asia australasia europe northamerica southamerica \
|
|
pacificnew etcetera factory backward systemv solar87 solar88 solar89
|
|
TZDATAFILES := $(TZDATA:%=$(srcdir)/data/%)
|
|
|
|
all: SUBSYS.o submake-libpgport zic
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
|
|
zic: $(ZICOBJS)
|
|
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
|
|
|
|
dirmod.c: % : $(top_srcdir)/src/port/%
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
install: all installdirs
|
|
./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(DESTDIR)$(datadir)
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS) dirmod.c
|
|
|