]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genren/Makefile
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / tools / genren / Makefile
1 #******************************************************************************
2 #
3 # Copyright (C) 2002-2004, International Business Machines
4 # Corporation and others. All Rights Reserved.
5 #
6 #******************************************************************************
7
8 ICUDIR=ICUunrenamed
9 TOP=../..
10 SO=so
11
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)
18
19 LIBS=$(COM) $(I18) $(LAY) $(LEX) $(UIO)
20
21 all:
22 @cat README
23
24 clean:
25 -rm -rf $(ICUDIR) urename.* *~
26
27 # We use config.status to mean we have a valid out of source tree.
28
29 $(ICUDIR)/config.status:
30 -mv $(ICUDIR) $(ICUDIR)old
31 -(rm -rf $(ICUDIR)old &)
32 mkdir $(ICUDIR)
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) )
34
35 # build the libraries
36 $(DAT): $(ICUDIR)/config.status Makefile
37 gmake -C $(ICUDIR)/stubdata libicudata.$(SO)
38
39 $(COM): $(DAT) $(ICUDIR)/config.status Makefile
40 gmake -C $(ICUDIR)/common libicuuc.$(SO)
41
42 $(I18): $(DAT) $(COM) $(ICUDIR)/config.status Makefile
43 gmake -C $(ICUDIR)/i18n libicui18n.$(SO)
44
45 $(LAY): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
46 gmake -C $(ICUDIR)/layout libicule.$(SO)
47
48 $(LEX): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
49 gmake -C $(ICUDIR)/layoutex libiculx.$(SO)
50
51 $(UIO): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
52 gmake -C $(ICUDIR)/extra/ustdio libicuio.$(SO)
53
54 # the header itself
55 urename.h: $(LIBS) genren.pl
56 -cp urename.h urename.h.old
57 perl ./genren.pl $(LIBS)
58
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'"
62
63 urename.sort: urename.h
64 sort urename.h > $@
65
66 urename.old.sort: $(TOP)/common/unicode/urename.h
67 sort $(TOP)/common/unicode/urename.h > $@
68
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/
72
73