# Generated automatically from Makefile.in by configure.
## Makefile.in for ICU - tools/makeconv
## Stephen F. Booth

## Shell to use
SHELL = /bin/sh

## Install directory information
srcdir = .
top_srcdir = ../..
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
datadir = ${prefix}/share
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include

pkgdatadir = $(datadir)/icu
pkglibdir = $(libdir)/icu
pkgincludedir = $(includedir)/icu

## List of converter tables to build
include $(srcdir)/ucmfiles.mk
# -include $(srcdir)/ucmlocal.mk

## Install program information
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

INSTALL = /pkg/gnu/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

## Compiler/tools information
CC = gcc
CXX = g++
PACKAGE = icu
VERSION = 1.4.2

## Platform-specific setup
DEFS =  -DU_IS_BIG_ENDIAN


## -*-makefile-*-
## Solaris-specific setup using gcc
## Copyright (c) 1999-2000, International Business Machines Corporation and
## others. All Rights Reserved.

## Commands to generate dependency files
GEN_DEPS.c=	$(CC) -E -MM $(DEFS) $(CPPFLAGS)
GEN_DEPS.cc=	$(CXX) -E -MM $(DEFS) $(CPPFLAGS)

## Commands to compile
COMPILE.c=	$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
COMPILE.cc=	$(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c

## Commands to link
LINK.c=		$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
LINK.cc=	$(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)

## Commands to make a shared library
SHLIB.c=	$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -G
SHLIB.cc=	$(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -G

## Compiler switch to embed a runtime search path
LD_RPATH=	-R
LD_RPATH_PRE=	

## Shared object suffix
SO=		so

## Link commands to link to ICU libs
LIBICU-UC= 	-L$(top_builddir)/common -licu-uc
LIBICU-I18N= 	-L$(top_builddir)/i18n -licu-i18n
LIBCTESTFW= 	-L$(top_builddir)/tools/ctestfw -lctestfw
LIBICU-TOOLUTIL=-L$(top_builddir)/tools/toolutil -licu-toolutil
LIBUSTDIO=      -L$(top_builddir)/extra/ustdio -lustdio

## Compilation rules
%.o : $(srcdir)/%.c
	$(COMPILE.c) -o $@ $<

%.o : $(srcdir)/%.cpp
	$(COMPILE.cc) -o $@ $<

../data/%.o : ../data/%.c
	$(COMPILE.c) -o $@ $<

## Dependency rules
%.d : $(srcdir)/%.c
	@echo "Generating dependency information for $<"
	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
		| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
		[ -s $@ ] || rm -f $@'

%.d : $(srcdir)/%.cpp
	@echo "Generating dependency information for $<"
	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
		| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
		[ -s $@ ] || rm -f $@'

## End Solaris-specific setup

## Build directory information
top_builddir = ../..
subdir = tools/makeconv

## Extra files to remove for 'make clean'
CLEANFILES = *~

## Target information
TARGET = makeconv

DEFS = -DHAVE_CONFIG_H -DU_IS_BIG_ENDIAN
CPPFLAGS =  -I. -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil  -DICU_DATA_DIR=\"$(pkgdatadir)/$(VERSION)/\"
CFLAGS = -g -O2
CXXFLAGS = -g -O2
LDFLAGS =  \
$(LD_RPATH)$(LD_RPATH_PRE)$(libdir):$(LD_RPATH_PRE)$(top_builddir)/common:$(LD_RPATH_PRE)$(top_builddir)/tools/toolutil
LIBS = $(LIBICU-UC) -ldl -lpthread -lm   $(LIBICU-TOOLUTIL)

OBJECTS = makeconv.o

DEPS = $(OBJECTS:.o=.d)

ALL_UCM = $(UCM_SOURCE) $(UCM_SOURCE_LOCAL)
UCM_FILES = $(ALL_UCM:%=$(top_srcdir)/data/%)
# CNV_FILES = $(ALL_UCM:%.ucm=/net/sparc-build/export/home4/yamakawa/icu/icu/source/../data//%.cnv)
CNV_FILES = $(ALL_UCM:%.ucm=$(top_srcdir)/data/%.cnv)

## List of phony targets
.PHONY : all all-local install install-local clean clean-local		\
distclean distclean-local dist dist-local check	\
check-local

## Clear suffix list
.SUFFIXES :

## List of standard targets
all: all-local
install: install-local
clean: clean-local
distclean : distclean-local
dist: dist-local
check: check-local

all-local: $(TARGET) $(CNV_FILES)
#	echo  $(CNV_FILES)

install-local: all-local
	$(mkinstalldirs) $(DESTDIR)$(sbindir)
	$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
#	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(VERSION)
#	@list='$(notdir $(CNV_FILES)) convrtrs.txt'; for file in $$list; do \
#		echo $(INSTALL_DATA) $(top_builddir)/data/$$file $(DESTDIR)$(pkgdatadir)/$(VERSION)/$$file; \
#		$(INSTALL_DATA) $(top_builddir)/data/$$file $(DESTDIR)$(pkgdatadir)/$(VERSION)/$$file; \
#	done

dist-local:

rebuild: $(TARGET)
	-rm -f $(CNV_FILES)
	$(MAKE) all-local

clean-local:
	test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
	rm -f $(TARGET) $(OBJECTS)

distclean-local: clean-local
	rm -f Makefile $(DEPS) $(CNV_FILES)

check-local:

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(TARGET) : $(OBJECTS)
	$(LINK.c) -o $@ $^ $(LIBS)

# Rule to build a compiled cnv file
# $(top_srcdir)/data/%.cnv: $(top_srcdir)/data/%.ucm
# 	@echo -n "$< -> "
#	./makeconv -d $(top_srcdir)/data/ $<

# Rule to build a compiled cnv file
%.cnv : %.ucm
	@echo "$< -> "
	@ICU_DATA=$(top_builddir)/data/ ./makeconv $<



# ifneq ($(MAKECMDGOALS),distclean)
# -include $(DEPS)
# endif



