2006-08-03 23:40:18 +00:00
|
|
|
# Some Portions Copyright (c) 2006 IBM and others. All Rights Reserved.
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
2006-08-03 23:58:44 +00:00
|
|
|
subdir = tools/tzcode
|
2006-08-03 23:40:18 +00:00
|
|
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
|
|
|
include ../../icudefs.mk
|
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
|
|
|
|
|
2006-08-03 23:58:44 +00:00
|
|
|
TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
|
2006-08-03 23:40:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
PRIMARY_YDATA= africa antarctica asia australasia \
|
|
|
|
europe northamerica southamerica
|
|
|
|
YDATA= $(PRIMARY_YDATA) pacificnew etcetera factory backward
|
|
|
|
NDATA= systemv
|
|
|
|
SDATA= solar87 solar88 solar89
|
|
|
|
TDATA= $(YDATA) $(NDATA) $(SDATA)
|
2006-08-04 01:18:19 +00:00
|
|
|
YEARISTYPE= ./yearistype
|
|
|
|
|
|
|
|
ZIC = ./zic
|
|
|
|
TZDIR=zoneinfo
|
|
|
|
|
|
|
|
CFLAGS+=-D_POSIX_C_SOURCE
|
|
|
|
CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
|
2006-08-03 23:40:18 +00:00
|
|
|
|
2006-08-03 23:58:44 +00:00
|
|
|
# more data
|
|
|
|
XDATA=zone.tab yearistype.sh leapseconds iso3166.tab
|
|
|
|
ICUDATA=ZoneMetaData.java icu_zone.txt tz2icu zoneinfo.txt
|
2006-08-03 23:40:18 +00:00
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
all:
|
|
|
|
@echo This code is intended to be run by the icu/source/data makefile only.
|
|
|
|
false
|
2006-08-03 23:40:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
zic: $(TZCOBJS) yearistype tz2icu.h
|
|
|
|
$(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) $(LDLIBS) -o $@
|
|
|
|
|
|
|
|
tz2icu: tz2icu.cpp tz2icu.h
|
2006-08-04 01:18:19 +00:00
|
|
|
$(CXX) -W -Wall -pedantic tz2icu.cpp -o $@
|
2006-08-03 23:40:18 +00:00
|
|
|
|
|
|
|
yearistype: yearistype.sh
|
|
|
|
cp yearistype.sh yearistype
|
|
|
|
chmod +x yearistype
|
|
|
|
|
|
|
|
posix_only: zic $(TDATA)
|
|
|
|
$(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L /dev/null $(TDATA)
|
|
|
|
|
|
|
|
|
|
|
|
icu_data: tz2icu posix_only
|
2006-08-04 01:18:19 +00:00
|
|
|
./tz2icu $(TZDIR) zone.tab `ls tzdata*.tar.gz | sed -e "s/^tzdata//;s/\.tar\.gz$$//"`
|
2006-08-03 23:40:18 +00:00
|
|
|
|
|
|
|
clean:
|
2006-08-04 01:18:19 +00:00
|
|
|
-rm -f core *.o *.out zdump zic yearistype date
|
2006-08-03 23:40:18 +00:00
|
|
|
@echo ICU specific cleanup:
|
2006-08-03 23:58:44 +00:00
|
|
|
-rm -f $(ICUDATA)
|
2006-08-04 01:18:19 +00:00
|
|
|
-rm -rf $(TZDIR)
|
2006-08-03 23:40:18 +00:00
|
|
|
|
2006-08-03 23:58:44 +00:00
|
|
|
dataclean: clean
|
|
|
|
-rm -f $(TDATA) $(XDATA)
|
|
|
|
|
|
|
|
distclean: dataclean clean
|
|
|
|
-rm -f Makefile
|
|
|
|
|
2006-08-03 23:40:18 +00:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
2006-08-03 23:58:44 +00:00
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|