~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to php/lib/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# **********************************************************************
 
2
#
 
3
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
4
#
 
5
# This copy of Ice is licensed to you under the terms described in the
 
6
# ICE_LICENSE file included in this distribution.
 
7
#
 
8
# **********************************************************************
 
9
 
 
10
top_srcdir      = ..
 
11
 
 
12
include $(top_srcdir)/config/Make.rules.php
 
13
 
 
14
#
 
15
# IMPORTANT: If you add or remove Slice files, you also need to check Ice.php!
 
16
#
 
17
ICE_SRCS        = Ice/LocalException.php \
 
18
                  Ice/Communicator.php \
 
19
                  Ice/CommunicatorF.php \
 
20
                  Ice/Logger.php \
 
21
                  Ice/LoggerF.php \
 
22
                  Ice/BuiltinSequences.php \
 
23
                  Ice/ObjectAdapterF.php \
 
24
                  Ice/Properties.php \
 
25
                  Ice/PropertiesF.php \
 
26
                  Ice/ObjectFactory.php \
 
27
                  Ice/ObjectFactoryF.php \
 
28
                  Ice/Identity.php \
 
29
                  Ice/Current.php \
 
30
                  Ice/ImplicitContextF.php \
 
31
                  Ice/ImplicitContext.php \
 
32
                  Ice/Router.php \
 
33
                  Ice/RouterF.php \
 
34
                  Ice/Plugin.php \
 
35
                  Ice/PluginF.php \
 
36
                  Ice/Locator.php \
 
37
                  Ice/LocatorF.php \
 
38
                  Ice/StatsF.php \
 
39
                  Ice/Stats.php \
 
40
                  Ice/Process.php \
 
41
                  Ice/ProcessF.php \
 
42
                  Ice/FacetMap.php \
 
43
                  Ice/Connection.php \
 
44
                  Ice/ConnectionF.php \
 
45
                  Ice/SliceChecksumDict.php \
 
46
                  Ice/Endpoint.php \
 
47
                  Ice/EndpointF.php \
 
48
                  Ice/EndpointTypes.php
 
49
 
 
50
#
 
51
# IMPORTANT: If you add or remove Slice files, you also need to check Glacier2.php!
 
52
#
 
53
GLACIER2_SRCS   = Glacier2/RouterF.php \
 
54
                  Glacier2/Router.php \
 
55
                  Glacier2/Session.php \
 
56
                  Glacier2/PermissionsVerifierF.php \
 
57
                  Glacier2/PermissionsVerifier.php \
 
58
                  Glacier2/SSLInfo.php
 
59
 
 
60
#
 
61
# IMPORTANT: If you add or remove Slice files, you also need to check IceBox.php!
 
62
#
 
63
ICEBOX_SRCS     = IceBox/IceBox.php
 
64
 
 
65
#
 
66
# IMPORTANT: If you add or remove Slice files, you also need to check IceGrid.php!
 
67
#
 
68
ICEGRID_SRCS    = IceGrid/Admin.php \
 
69
                  IceGrid/Descriptor.php \
 
70
                  IceGrid/Exception.php \
 
71
                  IceGrid/FileParser.php \
 
72
                  IceGrid/Locator.php \
 
73
                  IceGrid/Observer.php \
 
74
                  IceGrid/Query.php \
 
75
                  IceGrid/Registry.php \
 
76
                  IceGrid/Session.php \
 
77
                  IceGrid/UserAccountMapper.php
 
78
 
 
79
#
 
80
# IMPORTANT: If you add or remove Slice files, you also need to check IcePatch2.php!
 
81
#
 
82
ICEPATCH2_SRCS  = IcePatch2/FileInfo.php \
 
83
                  IcePatch2/FileServer.php
 
84
 
 
85
#
 
86
# IMPORTANT: If you add or remove Slice files, you also need to check IceStorm.php!
 
87
#
 
88
ICESTORM_SRCS   = IceStorm/IceStorm.php
 
89
 
 
90
ALL_SRCS        = $(ICE_SRCS) \
 
91
                  $(GLACIER2_SRCS) \
 
92
                  $(ICEBOX_SRCS) \
 
93
                  $(ICEGRID_SRCS) \
 
94
                  $(ICEPATCH2_SRCS) \
 
95
                  $(ICESTORM_SRCS)
 
96
 
 
97
ICE_SLICE       = $(patsubst %.php,$(slicedir)/%.ice,$(ICE_SRCS))
 
98
GLACIER2_SLICE  = $(patsubst %.php,$(slicedir)/%.ice,$(GLACIER2_SRCS))
 
99
ICEBOX_SLICE    = $(patsubst %.php,$(slicedir)/%.ice,$(ICEBOX_SRCS))
 
100
ICEGRID_SLICE   = $(patsubst %.php,$(slicedir)/%.ice,$(ICEGRID_SRCS))
 
101
ICEPATCH2_SLICE = $(patsubst %.php,$(slicedir)/%.ice,$(ICEPATCH2_SRCS))
 
102
ICESTORM_SLICE  = $(patsubst %.php,$(slicedir)/%.ice,$(ICESTORM_SRCS))
 
103
 
 
104
MODULES         = Glacier2 Ice IceBox IceGrid IcePatch2 IceStorm
 
105
ifeq ("$(USE_NAMESPACES)","yes")
 
106
MODULE_SRCS     = Glacier2.php Ice_ns.php IceBox.php IceGrid.php IcePatch2.php IceStorm.php
 
107
else
 
108
MODULE_SRCS     = Glacier2.php Ice.php IceBox.php IceGrid.php IcePatch2.php IceStorm.php
 
109
endif
 
110
 
 
111
all:: $(ALL_SRCS)
 
112
 
 
113
SLICE2PHPFLAGS  += --ice 
 
114
 
 
115
Ice/%.php: $(slicedir)/Ice/%.ice
 
116
        @mkdir -p $(notdir $(<D))
 
117
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
118
 
 
119
Glacier2/%.php: $(slicedir)/Glacier2/%.ice
 
120
        @mkdir -p $(notdir $(<D))
 
121
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
122
 
 
123
IceBox/%.php: $(slicedir)/IceBox/%.ice
 
124
        @mkdir -p $(notdir $(<D))
 
125
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
126
 
 
127
IceGrid/%.php: $(slicedir)/IceGrid/%.ice
 
128
        @mkdir -p $(notdir $(<D))
 
129
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
130
 
 
131
IcePatch2/%.php: $(slicedir)/IcePatch2/%.ice
 
132
        @mkdir -p $(notdir $(<D))
 
133
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
134
 
 
135
IceStorm/%.php: $(slicedir)/IceStorm/%.ice
 
136
        @mkdir -p $(notdir $(<D))
 
137
        $(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
 
138
 
 
139
depend::  $(ICE_SLICE) $(GLACIER2_SLICE) $(ICEBOX_SLICE) $(ICEGRID_SLICE) $(ICEPATCH2_SLICE) $(ICESTORM_SLICE)
 
140
        -rm -f .depend .depend.mak
 
141
        if test -n "$(ICE_SLICE)" ; then \
 
142
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICE_SLICE) | $(ice_dir)/config/makedepend.py Ice; \
 
143
        fi
 
144
        if test -n "$(GLACIER2_SLICE)" ; then \
 
145
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(GLACIER2_SLICE) | $(ice_dir)/config/makedepend.py Glacier2; \
 
146
        fi
 
147
        if test -n "$(ICEBOX_SLICE)" ; then \
 
148
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEBOX_SLICE) | $(ice_dir)/config/makedepend.py IceBox; \
 
149
        fi
 
150
        if test -n "$(ICEGRID_SLICE)" ; then \
 
151
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEGRID_SLICE) | $(ice_dir)/config/makedepend.py IceGrid; \
 
152
        fi
 
153
        if test -n "$(ICEPATCH2_SLICE)" ; then \
 
154
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEPATCH2_SLICE) | $(ice_dir)/config/makedepend.py IcePatch2; \
 
155
        fi
 
156
        if test -n "$(ICESTORM_SLICE)" ; then \
 
157
            $(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICESTORM_SLICE) | $(ice_dir)/config/makedepend.py IceStorm; \
 
158
        fi
 
159
 
 
160
install:: $(ALL_SRCS)
 
161
        @echo "Installing generated code"
 
162
        @for i in $(MODULES) ; \
 
163
        do \
 
164
            $(INSTALL_DATA) -r $$i $(install_phpdir) ; \
 
165
        done
 
166
        @for i in $(MODULE_SRCS) ; \
 
167
        do \
 
168
            $(INSTALL_DATA) $$i $(install_phpdir) ; \
 
169
        done
 
170
 
 
171
clean::
 
172
        rm -rf $(MODULES)
 
173
 
 
174
include .depend