~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/tools/genren/Makefile

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#******************************************************************************
2
 
#
3
 
#   Copyright (C) 2002, 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)/common/libicuuc.$(SO)
13
 
I18=$(ICUDIR)/i18n/libicui18n.$(SO)
14
 
LAY=$(ICUDIR)/layout/libicule.$(SO)
15
 
DAT=$(ICUDIR)/stubdata/libicudata.$(SO)
16
 
 
17
 
LIBS=$(COM) $(I18) $(LAY)
18
 
 
19
 
all:
20
 
        @cat README
21
 
 
22
 
clean:
23
 
        -rm -rf $(ICUDIR) urename.* *~
24
 
 
25
 
# We use config.status to mean we have a valid out of source tree.
26
 
 
27
 
$(ICUDIR)/config.status:
28
 
        -mv $(ICUDIR) $(ICUDIR)old
29
 
        -(rm -rf $(ICUDIR)old &)
30
 
        mkdir $(ICUDIR)
31
 
        ( cd $(ICUDIR) ; CPPFLAGS=-DURENAME_H $(TOP)/../configure --with-data-packaging=archive --enable-layout=yes --enable-tests=no --enable-extras=no --prefix=`pwd` $(GENREN_CONFIGURE_OPTS) )
32
 
 
33
 
# build the libraries
34
 
$(DAT): $(ICUDIR)/config.status Makefile
35
 
        gmake -C $(ICUDIR)/stubdata libicudata.so
36
 
 
37
 
$(COM): $(DAT) $(ICUDIR)/config.status Makefile
38
 
        gmake -C $(ICUDIR)/common libicuuc.so
39
 
 
40
 
$(I18): $(DAT) $(COM) $(ICUDIR)/config.status Makefile
41
 
        gmake -C $(ICUDIR)/i18n libicui18n.so
42
 
 
43
 
$(LAY): $(DAT) $(I18) $(COM) $(ICUDIR)/config.status Makefile
44
 
        gmake -C $(ICUDIR)/layout libicule.so
45
 
 
46
 
# the header itself
47
 
urename.h: $(LIBS) genren.pl
48
 
        -cp urename.h urename.h.old
49
 
        perl ./genren.pl $(LIBS)
50
 
 
51
 
sorts:  urename.sort urename.old.sort
52
 
        @echo "*** Please check urename.h manually before committing it."
53
 
        @echo "Try 'diff --side-by-side urename.old.sort urename.sort'"
54
 
 
55
 
urename.sort: urename.h
56
 
        sort urename.h > $@
57
 
 
58
 
urename.old.sort: $(TOP)/common/unicode/urename.h
59
 
        sort  $(TOP)/common/unicode/urename.h > $@
60
 
 
61
 
install-header: urename.h sorts
62
 
        cp $(TOP)/common/unicode/urename.h $(TOP)/common/unicode/urename.h.old
63
 
        cp urename.h $(TOP)/common/unicode/
64
 
 
65