1
# **********************************************************************
3
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
5
# This copy of Ice is licensed to you under the terms described in the
6
# ICE_LICENSE file included in this distribution.
8
# **********************************************************************
12
include $(top_srcdir)/config/Make.rules.php
15
# IMPORTANT: If you add or remove Slice files, you also need to check Ice.php!
17
ICE_SRCS = Ice/LocalException.php \
18
Ice/Communicator.php \
19
Ice/CommunicatorF.php \
22
Ice/BuiltinSequences.php \
23
Ice/ObjectAdapterF.php \
26
Ice/ObjectFactory.php \
27
Ice/ObjectFactoryF.php \
30
Ice/ImplicitContextF.php \
31
Ice/ImplicitContext.php \
45
Ice/SliceChecksumDict.php \
51
# IMPORTANT: If you add or remove Slice files, you also need to check Glacier2.php!
53
GLACIER2_SRCS = Glacier2/RouterF.php \
55
Glacier2/Session.php \
56
Glacier2/PermissionsVerifierF.php \
57
Glacier2/PermissionsVerifier.php \
61
# IMPORTANT: If you add or remove Slice files, you also need to check IceBox.php!
63
ICEBOX_SRCS = IceBox/IceBox.php
66
# IMPORTANT: If you add or remove Slice files, you also need to check IceGrid.php!
68
ICEGRID_SRCS = IceGrid/Admin.php \
69
IceGrid/Descriptor.php \
70
IceGrid/Exception.php \
71
IceGrid/FileParser.php \
73
IceGrid/Observer.php \
75
IceGrid/Registry.php \
77
IceGrid/UserAccountMapper.php
80
# IMPORTANT: If you add or remove Slice files, you also need to check IcePatch2.php!
82
ICEPATCH2_SRCS = IcePatch2/FileInfo.php \
83
IcePatch2/FileServer.php
86
# IMPORTANT: If you add or remove Slice files, you also need to check IceStorm.php!
88
ICESTORM_SRCS = IceStorm/IceStorm.php
90
ALL_SRCS = $(ICE_SRCS) \
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))
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
108
MODULE_SRCS = Glacier2.php Ice.php IceBox.php IceGrid.php IcePatch2.php IceStorm.php
113
SLICE2PHPFLAGS += --ice
115
Ice/%.php: $(slicedir)/Ice/%.ice
116
@mkdir -p $(notdir $(<D))
117
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
119
Glacier2/%.php: $(slicedir)/Glacier2/%.ice
120
@mkdir -p $(notdir $(<D))
121
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
123
IceBox/%.php: $(slicedir)/IceBox/%.ice
124
@mkdir -p $(notdir $(<D))
125
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
127
IceGrid/%.php: $(slicedir)/IceGrid/%.ice
128
@mkdir -p $(notdir $(<D))
129
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
131
IcePatch2/%.php: $(slicedir)/IcePatch2/%.ice
132
@mkdir -p $(notdir $(<D))
133
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
135
IceStorm/%.php: $(slicedir)/IceStorm/%.ice
136
@mkdir -p $(notdir $(<D))
137
$(SLICE2PHP) --output-dir $(notdir $(<D)) $(SLICE2PHPFLAGS) $<
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; \
144
if test -n "$(GLACIER2_SLICE)" ; then \
145
$(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(GLACIER2_SLICE) | $(ice_dir)/config/makedepend.py Glacier2; \
147
if test -n "$(ICEBOX_SLICE)" ; then \
148
$(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEBOX_SLICE) | $(ice_dir)/config/makedepend.py IceBox; \
150
if test -n "$(ICEGRID_SLICE)" ; then \
151
$(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEGRID_SLICE) | $(ice_dir)/config/makedepend.py IceGrid; \
153
if test -n "$(ICEPATCH2_SLICE)" ; then \
154
$(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICEPATCH2_SLICE) | $(ice_dir)/config/makedepend.py IcePatch2; \
156
if test -n "$(ICESTORM_SLICE)" ; then \
157
$(SLICE2PHP) --depend $(SLICE2PHPFLAGS) $(ICESTORM_SLICE) | $(ice_dir)/config/makedepend.py IceStorm; \
160
install:: $(ALL_SRCS)
161
@echo "Installing generated code"
162
@for i in $(MODULES) ; \
164
$(INSTALL_DATA) -r $$i $(install_phpdir) ; \
166
@for i in $(MODULE_SRCS) ; \
168
$(INSTALL_DATA) $$i $(install_phpdir) ; \