]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genren/Makefile
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / tools / genren / Makefile
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
374ca955 3# Copyright (C) 2002-2004, International Business Machines
b75a7d8f
A
4# Corporation and others. All Rights Reserved.
5#
6#******************************************************************************
7
8ICUDIR=ICUunrenamed
9TOP=../..
10SO=so
11
374ca955
A
12COM=$(ICUDIR)/lib/libicuuc.$(SO)
13I18=$(ICUDIR)/lib/libicui18n.$(SO)
14LAY=$(ICUDIR)/lib/libicule.$(SO)
15LEX=$(ICUDIR)/lib/libiculx.$(SO)
b75a7d8f 16DAT=$(ICUDIR)/stubdata/libicudata.$(SO)
374ca955 17UIO=$(ICUDIR)/lib/libicuio.$(SO)
b75a7d8f
A
18
19LIBS=$(COM) $(I18) $(LAY) $(LEX) $(UIO)
20
21all:
22 @cat README
23
24clean:
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
55urename.h: $(LIBS) genren.pl
56 -cp urename.h urename.h.old
57 perl ./genren.pl $(LIBS)
58
59sorts: 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
63urename.sort: urename.h
64 sort urename.h > $@
65
66urename.old.sort: $(TOP)/common/unicode/urename.h
67 sort $(TOP)/common/unicode/urename.h > $@
68
69install-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