# Some Portions Copyright (c) 2006 IBM and others. All Rights Reserved. srcdir = @srcdir@ top_srcdir = @top_srcdir@ subdir = tools/tzcode top_builddir = ../.. include ../../icudefs.mk TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o 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) YEARISTYPE= ./yearistype ZIC = ./zic TZDIR=zoneinfo CFLAGS+=-D_POSIX_C_SOURCE CPPFLAGS+= -DTZDIR=\"$(TZDIR)\" # more data XDATA=zone.tab yearistype.sh leapseconds iso3166.tab ICUDATA=ZoneMetaData.java icu_zone.txt tz2icu zoneinfo.txt all: @echo This code is intended to be run by the icu/source/data makefile only. false zic: $(TZCOBJS) yearistype tz2icu.h $(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) $(LDLIBS) -o $@ tz2icu: tz2icu.cpp tz2icu.h $(CXX) -W -Wall -pedantic tz2icu.cpp -o $@ 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 ./tz2icu $(TZDIR) zone.tab `ls tzdata*.tar.gz | sed -e "s/^tzdata//;s/\.tar\.gz$$//"` clean: -rm -f core *.o *.out zdump zic yearistype date @echo ICU specific cleanup: -rm -f $(ICUDATA) -rm -rf $(TZDIR) dataclean: clean -rm -f $(TDATA) $(XDATA) distclean: dataclean clean -rm -f Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status