1 #******************************************************************************
3 # Copyright (C) 2002-2004, International Business Machines
4 # Corporation and others. All Rights Reserved.
6 #******************************************************************************
12 COM=$(ICUDIR)/lib/libicuuc.$(SO)
13 I18=$(ICUDIR)/lib/libicui18n.$(SO)
14 LAY=$(ICUDIR)/lib/libicule.$(SO)
15 LEX=$(ICUDIR)/lib/libiculx.$(SO)
16 DAT=$(ICUDIR)/stubdata/libicudata.$(SO)
17 UIO=$(ICUDIR)/lib/libicuio.$(SO)
19 LIBS=$(COM) $(I18) $(LAY) $(LEX) $(UIO)
25 -rm -rf $(ICUDIR) urename.* *~
27 # We use config.status to mean we have a valid out of source tree.
29 $(ICUDIR)/config.status:
30 -mv $(ICUDIR) $(ICUDIR)old
31 -(rm -rf $(ICUDIR)old &)
33 ( cd $(ICUDIR) ; CPPFLAGS=-DURENAME_H $(TOP)/../configure --with-data-packaging=archive --enable-layout=yes --enable-tests=no --enable-extras=yes --prefix=`pwd` $(GENREN_CONFIGURE_OPTS) )
36 $(DAT): $(ICUDIR)/config.status Makefile
37 gmake -C $(ICUDIR)/stubdata libicudata.$(SO)
39 $(COM): $(DAT) $(ICUDIR)/config.status Makefile
40 gmake -C $(ICUDIR)/common libicuuc.$(SO)
42 $(I18): $(DAT) $(COM) $(ICUDIR)/config.status Makefile
43 gmake -C $(ICUDIR)/i18n libicui18n.$(SO)
45 $(LAY): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
46 gmake -C $(ICUDIR)/layout libicule.$(SO)
48 $(LEX): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
49 gmake -C $(ICUDIR)/layoutex libiculx.$(SO)
51 $(UIO): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
52 gmake -C $(ICUDIR)/extra/ustdio libicuio.$(SO)
55 urename.h: $(LIBS) genren.pl
56 -cp urename.h urename.h.old
57 perl ./genren.pl $(LIBS)
59 sorts: urename.sort urename.old.sort
60 @echo "*** Please check urename.h manually before committing it."
61 @echo "Try 'diff --side-by-side urename.old.sort urename.sort'"
63 urename.sort: urename.h
66 urename.old.sort: $(TOP)/common/unicode/urename.h
67 sort $(TOP)/common/unicode/urename.h > $@
69 install-header: urename.h sorts
70 cp $(TOP)/common/unicode/urename.h $(TOP)/common/unicode/urename.h.old
71 cp urename.h $(TOP)/common/unicode/