1999-08-16 21:50:52 +00:00
|
|
|
## Makefile.in for ICU tools
|
2000-01-17 19:48:20 +00:00
|
|
|
## Copyright (c) 1999-2000, International Business Machines Corporation and
|
|
|
|
## others. All Rights Reserved.
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Shell to use
|
|
|
|
SHELL = @SHELL@
|
1999-11-23 04:49:35 +00:00
|
|
|
VERSION = @VERSION@
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Install directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
1999-11-23 05:34:05 +00:00
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
|
|
|
|
2000-02-12 05:54:43 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/common -I$(top_builddir)/common
|
1999-11-23 05:34:05 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
1999-11-23 04:49:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
@host_frag@
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
datadir = @datadir@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
top_builddir = ..
|
|
|
|
subdir = tools
|
|
|
|
|
2000-02-16 22:38:38 +00:00
|
|
|
# OBJDATADIR must be a short path (with ..'s) to the data.
|
|
|
|
# @RELATIVEDATADIR@ exists soley for this line.
|
|
|
|
|
|
|
|
ICUDATADIR=$(pkgdatadir)/$(VERSION)
|
|
|
|
SRCDATADIR=$(top_srcdir)/../data
|
|
|
|
OBJDATADIR=$(top_builddir)/@RELATIVEDATADIR@
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
## Install program information
|
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
## for cleaning up libraries
|
|
|
|
STRIP = @STRIP@
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
## Package information
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
|
|
|
|
|
1999-12-09 01:25:46 +00:00
|
|
|
SUBDIRS = ctestfw toolutil makeconv genrb gencol rbdump \
|
2000-03-03 01:09:33 +00:00
|
|
|
genccode gennames gencmn gencnval gentz gentest
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
1999-11-23 04:49:35 +00:00
|
|
|
.PHONY : all all-local all-recursive install install-local install-everything install-files install-dlls build-data build-cmnfile build-dll \
|
1999-08-16 21:50:52 +00:00
|
|
|
install-recursive clean clean-local clean-recursive distclean \
|
|
|
|
distclean-local distclean-recursive dist dist-local dist-recursive \
|
2000-03-04 00:02:50 +00:00
|
|
|
check check-local check-recursive build-testdlls build-basetestdata
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-recursive all-local
|
|
|
|
install: install-recursive install-local
|
|
|
|
clean: clean-recursive clean-local
|
|
|
|
distclean : distclean-recursive distclean-local
|
|
|
|
dist: dist-recursive dist-local
|
|
|
|
check: check-recursive check-local
|
|
|
|
|
|
|
|
## Recursive targets
|
|
|
|
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
|
|
|
|
@dot_seen=no; \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
|
|
echo "Making $$target in $$subdir"; \
|
|
|
|
if test "$$subdir" = "."; then \
|
|
|
|
dot_seen=yes; \
|
|
|
|
local_target="$$target-local"; \
|
|
|
|
else \
|
|
|
|
local_target="$$target"; \
|
|
|
|
fi; \
|
2000-02-04 22:34:43 +00:00
|
|
|
(cd $$subdir && $(MAKE) $$local_target) || exit; \
|
1999-08-16 21:50:52 +00:00
|
|
|
done; \
|
|
|
|
if test "$$dot_seen" = "no"; then \
|
|
|
|
$(MAKE) "$$target-local" || exit 1; \
|
|
|
|
fi
|
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
all-local: build-local
|
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
DAT_FILES=unames.dat cnvalias.dat tz.dat
|
2000-01-08 02:17:39 +00:00
|
|
|
BRK_FILES=char.brk line.brk line_th.brk sent.brk word.brk word_th.brk
|
1999-12-04 02:31:40 +00:00
|
|
|
|
2000-02-07 21:00:53 +00:00
|
|
|
DATAFILESD=$(DAT_FILES:%=$(OBJDATADIR)/%)
|
|
|
|
DATAFILESB=$(BRK_FILES:%=$(OBJDATADIR)/%)
|
2000-01-08 02:17:39 +00:00
|
|
|
|
|
|
|
# copy the right endianness
|
|
|
|
|
|
|
|
ifeq (@U_IS_BIG_ENDIAN@,1)
|
2000-02-16 22:38:38 +00:00
|
|
|
$(OBJDATADIR)/%.brk: $(SRCDATADIR)/%BE.brk
|
2000-01-08 02:17:39 +00:00
|
|
|
cp $< $@
|
|
|
|
else
|
2000-02-16 22:38:38 +00:00
|
|
|
$(OBJDATADIR)/%.brk: $(SRCDATADIR)/%LE.brk
|
2000-01-08 02:17:39 +00:00
|
|
|
cp $< $@
|
|
|
|
endif
|
1999-12-04 02:31:40 +00:00
|
|
|
|
2000-02-07 21:00:53 +00:00
|
|
|
include $(srcdir)/makeconv/ucmfiles.mk
|
|
|
|
-include $(srcdir)/makeconv/ucmlocal.mk
|
1999-12-04 02:31:40 +00:00
|
|
|
ALL_UCM_SOURCE= $(UCM_SOURCE) $(UCM_SOURCE_LOCAL)
|
|
|
|
|
|
|
|
|
|
|
|
UCM_FILES = $(ALL_UCM_SOURCE:%=$(top_srcdir)/../data/%)
|
2000-02-16 22:38:38 +00:00
|
|
|
CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(OBJDATADIR)/%.cnv)
|
1999-12-04 02:31:40 +00:00
|
|
|
DATAFILESC=$(CNV_FILES)
|
|
|
|
|
|
|
|
|
2000-01-08 02:17:39 +00:00
|
|
|
DATAFILES=$(DATAFILESD) $(DATAFILESC) $(DATAFILESB)
|
1999-12-04 02:31:40 +00:00
|
|
|
|
2000-02-16 22:38:38 +00:00
|
|
|
SRCDATAFILESD=$(DATAFILESD:%.dat=%_dat.c)
|
1999-12-04 02:31:40 +00:00
|
|
|
SRCDATAFILESC=$(DATAFILESC:%.cnv=%_cnv.c)
|
2000-01-08 02:17:39 +00:00
|
|
|
SRCDATAFILESB=$(DATAFILESB:%.brk=%_brk.c)
|
|
|
|
|
|
|
|
SRCDATAFILES=$(SRCDATAFILESD) $(SRCDATAFILESC) $(SRCDATAFILESB)
|
1999-12-04 02:31:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
OBJDATAFILES=$(SRCDATAFILES:%.c=%.o)
|
2000-02-07 21:00:53 +00:00
|
|
|
COMMONFILE=$(OBJDATADIR)/icudata.dat
|
|
|
|
COMMONDLL=$(OBJDATADIR)/libicudata.$(SO)
|
1999-11-23 04:49:35 +00:00
|
|
|
|
2000-03-03 01:09:33 +00:00
|
|
|
#the files for creating the test data
|
|
|
|
TESTDATAFILE=test.dat
|
2000-03-09 06:08:35 +00:00
|
|
|
TESTDATAD=$(TESTDATAFILE:%=$(OBJDATADIR)/%)
|
2000-03-03 01:09:33 +00:00
|
|
|
TESTDATAFILEC=$(TESTDATAD:.dat=_dat.c)
|
|
|
|
OBJTESTFILE=$(TESTDATAFILEC:%.c=%.o)
|
2000-03-09 06:21:21 +00:00
|
|
|
TESTDATADLL=$(OBJDATADIR)/libtest_dat.$(SO)
|
|
|
|
BASEDATADLL=$(OBJDATADIR)/libbase_dat.$(SO)
|
|
|
|
BASETESTDATADLL=$(OBJDATADIR)/libbase_test_dat.$(SO)
|
2000-03-04 00:02:50 +00:00
|
|
|
|
|
|
|
BASETESTDATA=base_test.dat
|
|
|
|
build-basetestdata:
|
|
|
|
@echo Generating the base test data file (base_test.dat) from (test.dat)
|
|
|
|
@cp $(TESTDATAD) $(SRCDATADIR)/$(BASETESTDATA)
|
|
|
|
@ls -l $(SRCDATADIR)/$(BASETESTDATA)
|
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
# the files to be installed -- the COMMON ones + any stragglers
|
|
|
|
UDATA_FILES=icudata.dat
|
|
|
|
UDATA_DLLS=libicudata.$(SO)
|
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
### use the "--enable-mapped=" option to configure, to get mapped file behavior.
|
|
|
|
# the case where '--enable-mapped=yes'
|
2000-03-04 00:02:50 +00:00
|
|
|
@USE_MAPPED_TRUE@build-local: build-data build-cmnfile build-basetestdata
|
1999-12-04 02:31:40 +00:00
|
|
|
|
|
|
|
# the case where '--enable-mapped=no' (DEFAULT)
|
2000-03-04 00:02:50 +00:00
|
|
|
@USE_MAPPED_FALSE@build-local: build-data build-dll build-testdlls
|
1999-12-04 02:31:40 +00:00
|
|
|
###
|
1999-11-23 04:49:35 +00:00
|
|
|
|
|
|
|
# check for any other generated data here
|
|
|
|
install-data: $(DATAFILES)
|
|
|
|
|
2000-03-04 00:02:50 +00:00
|
|
|
build-cmnfile: $(COMMONFILE)
|
1999-11-23 04:49:35 +00:00
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
# the -Wpath [etc] has relative DLL paths in it
|
1999-11-23 05:34:05 +00:00
|
|
|
# so we have to cd into the other dir..
|
|
|
|
|
|
|
|
gencmn/mkmap.tmp: Makefile
|
|
|
|
|
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
$(COMMONFILE): $(DATAFILES)
|
|
|
|
@-rm -f gencmn/mkmap.tmp
|
|
|
|
@for file in $(DATAFILES); do \
|
|
|
|
echo `pwd`/$$file >> gencmn/mkmap.tmp; \
|
|
|
|
done;
|
|
|
|
@echo -n Generating common file $(COMMONFILE). Number of files:
|
|
|
|
-@wc -l gencmn/mkmap.tmp
|
1999-11-23 04:49:35 +00:00
|
|
|
-rm -f $(COMMONFILE)
|
2000-02-07 21:00:53 +00:00
|
|
|
@(cd gencmn ; ICU_DATA=$(OBJDATADIR) ./gencmn 1000000 mkmap.tmp )
|
1999-12-04 02:31:40 +00:00
|
|
|
-@ls -l $(COMMONFILE)
|
1999-11-23 04:49:35 +00:00
|
|
|
|
|
|
|
build-dll: $(COMMONDLL)
|
|
|
|
|
2000-03-04 00:02:50 +00:00
|
|
|
build-testdlls: $(TESTDATADLL) $(BASEDATADLL) $(BASETESTDATADLL)
|
2000-03-03 01:09:33 +00:00
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
%_dat.c: %.dat
|
1999-11-23 05:34:05 +00:00
|
|
|
(cd genccode ; ./genccode ../$< )
|
1999-11-23 04:49:35 +00:00
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
%_cnv.c: %.cnv
|
|
|
|
(cd genccode ; ./genccode ../$< )
|
|
|
|
|
2000-01-08 02:17:39 +00:00
|
|
|
%_brk.c: %.brk
|
|
|
|
(cd genccode ; ./genccode ../$< )
|
|
|
|
|
2000-03-07 00:07:06 +00:00
|
|
|
## Note: this generates a dummy C++ file to cause the HPUX CC linker
|
|
|
|
## to load exception handling (when requested..)
|
|
|
|
|
|
|
|
hpux_junk_obj.cpp:
|
|
|
|
echo "void to_emit_cxx_stuff_in_the_linker(){}" >> hpux_junk_obj.cpp
|
|
|
|
|
|
|
|
hpux_junk_obj.o: hpux_junk_obj.cpp
|
|
|
|
$(COMPILE.cc) -o $@ $<
|
1999-12-04 02:31:40 +00:00
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
# strip is optional
|
1999-12-04 02:31:40 +00:00
|
|
|
# -$(STRIP) $@
|
|
|
|
|
2000-03-07 00:07:06 +00:00
|
|
|
|
|
|
|
# HPUX_JUNK_OBJ is usually unset except by mh-hpux-cc
|
|
|
|
|
|
|
|
$(COMMONDLL): $(OBJDATAFILES) $(HPUX_JUNK_OBJ)
|
1999-11-23 04:49:35 +00:00
|
|
|
$(SHLIB.c) -o $@ $^
|
|
|
|
-ls -l $@
|
|
|
|
|
2000-03-04 00:02:50 +00:00
|
|
|
$(TESTDATADLL) $(BASEDATADLL) $(BASETESTDATADLL): $(OBJTESTFILE) $(HPUX_JUNK_OBJ)
|
2000-03-03 01:09:33 +00:00
|
|
|
$(SHLIB.c) -o $@ $^
|
|
|
|
-ls -l $@
|
|
|
|
|
1999-12-04 02:31:40 +00:00
|
|
|
srcs: $(SRCDATAFILES)
|
|
|
|
|
|
|
|
|
2000-01-08 02:17:39 +00:00
|
|
|
## Files to remove for 'make clean'
|
2000-03-09 06:36:27 +00:00
|
|
|
CLEANFILES = *~ $(BRK_FILES) $(OBJDATAFILES) $(HPUX_JUNK_OBJ) $(OBJTESTFILE) \
|
|
|
|
$(COMMONDLL) $(TESTDATADLL) $(BASEDATADLL) $(BASETESTDATADLL)
|
2000-01-08 02:17:39 +00:00
|
|
|
|
1999-11-23 04:49:35 +00:00
|
|
|
|
|
|
|
### use the "--enable-mapped=" option to configure, to get mapped file behavior.
|
|
|
|
# the case where '--enable-mapped=yes' - raw files [which can be mapped]
|
|
|
|
@USE_MAPPED_TRUE@install-udata: install-files
|
|
|
|
|
|
|
|
# the case where '--enable-mapped=no' (DEFAULT) - DLL's [so's to you]
|
|
|
|
@USE_MAPPED_FALSE@install-udata: install-dlls
|
|
|
|
###
|
|
|
|
|
|
|
|
install-local: build-local install-udata
|
|
|
|
|
|
|
|
install-everything: install-files install-dlls
|
|
|
|
|
|
|
|
install-files:
|
|
|
|
@for file in $(UDATA_FILES); do \
|
2000-02-07 21:00:53 +00:00
|
|
|
echo $(INSTALL_DATA) $(top_builddir)/data/$$file $(pkgdatadir)/$(VERSION)/$$file; \
|
|
|
|
$(INSTALL_DATA) $(top_builddir)/data/$$file $(pkgdatadir)/$(VERSION)/$$file; \
|
1999-11-23 04:49:35 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
install-dlls:
|
|
|
|
@for file in $(UDATA_DLLS); do \
|
2000-02-07 21:00:53 +00:00
|
|
|
echo $(INSTALL_DATA) $(top_builddir)/data/$$file $(pkgdatadir)/$(VERSION)/$$file; \
|
|
|
|
$(INSTALL_DATA) $(top_builddir)/data/$$file $(pkgdatadir)/$(VERSION)/$$file; \
|
1999-11-23 04:49:35 +00:00
|
|
|
done
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|
|
|
|
|
|
|
distclean-local:
|
2000-03-09 06:36:27 +00:00
|
|
|
rm -f Makefile $(SRCDATAFILES) $(DATFILES) $(TESTDATAFILE) $(BASETESTDATA)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|