]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | # |
2 | # Licensed to the Apache Software Foundation (ASF) under one | |
3 | # or more contributor license agreements. See the NOTICE file | |
4 | # distributed with this work for additional information | |
5 | # regarding copyright ownership. The ASF licenses this file | |
6 | # to you under the Apache License, Version 2.0 (the | |
7 | # "License"); you may not use this file except in compliance | |
8 | # with the License. You may obtain a copy of the License at | |
9 | # | |
10 | # http://www.apache.org/licenses/LICENSE-2.0 | |
11 | # | |
12 | # Unless required by applicable law or agreed to in writing, | |
13 | # software distributed under the License is distributed on an | |
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | # KIND, either express or implied. See the License for the | |
16 | # specific language governing permissions and limitations | |
17 | # under the License. | |
18 | # | |
19 | ||
20 | ||
21 | if WITH_TESTS | |
22 | SUBDIRS = test | |
23 | endif | |
24 | ||
25 | if WITH_PHP_EXTENSION | |
26 | %.so: | |
27 | cd src/ext/thrift_protocol/ && $(MAKE) | |
28 | ||
29 | phpconfdir=$(PHP_CONFIG_PREFIX) | |
30 | phpconf_DATA=thrift_protocol.ini | |
31 | ||
32 | phpmoduledir = `php-config --extension-dir` | |
33 | phpmodule_SCRIPTS = src/ext/thrift_protocol/modules/thrift_protocol.so | |
34 | ||
35 | distclean-local: | |
36 | if [ -f src/ext/thrift_protocol/Makefile ]; then cd src/ext/thrift_protocol/ && $(MAKE) distclean; fi | |
37 | cd $(phpmodule_SCRIPTS) && $(PHPIZE) --clean | |
38 | ||
39 | endif | |
40 | ||
41 | phpdir = $(PHP_PREFIX)/ | |
42 | php_DATA = \ | |
43 | lib/TMultiplexedProcessor.php | |
44 | ||
45 | phpbasedir = $(phpdir)/Base | |
46 | phpbase_DATA = \ | |
47 | lib/Base/TBase.php | |
48 | ||
49 | phpclassloaderdir = $(phpdir)/ClassLoader | |
50 | phpclassloader_DATA = \ | |
51 | lib/ClassLoader/ThriftClassLoader.php | |
52 | ||
53 | phpexceptiondir = $(phpdir)/Exception | |
54 | phpexception_DATA = \ | |
55 | lib/Exception/TApplicationException.php \ | |
56 | lib/Exception/TException.php \ | |
57 | lib/Exception/TProtocolException.php \ | |
58 | lib/Exception/TTransportException.php | |
59 | ||
60 | phpfactorydir = $(phpdir)/Factory | |
61 | phpfactory_DATA = \ | |
62 | lib/Factory/TBinaryProtocolFactory.php \ | |
63 | lib/Factory/TCompactProtocolFactory.php \ | |
64 | lib/Factory/TJSONProtocolFactory.php \ | |
65 | lib/Factory/TProtocolFactory.php \ | |
66 | lib/Factory/TStringFuncFactory.php \ | |
67 | lib/Factory/TTransportFactory.php | |
68 | ||
69 | phpprotocoldir = $(phpdir)/Protocol | |
70 | phpprotocol_DATA = \ | |
71 | lib/Protocol/TBinaryProtocolAccelerated.php \ | |
72 | lib/Protocol/TBinaryProtocol.php \ | |
73 | lib/Protocol/TCompactProtocol.php \ | |
74 | lib/Protocol/TJSONProtocol.php \ | |
75 | lib/Protocol/TMultiplexedProtocol.php \ | |
76 | lib/Protocol/TProtocol.php \ | |
77 | lib/Protocol/TProtocolDecorator.php \ | |
78 | lib/Protocol/TSimpleJSONProtocol.php | |
79 | ||
80 | phpprotocoljsondir = $(phpprotocoldir)/JSON | |
81 | phpprotocoljson_DATA = \ | |
82 | lib/Protocol/JSON/BaseContext.php \ | |
83 | lib/Protocol/JSON/ListContext.php \ | |
84 | lib/Protocol/JSON/LookaheadReader.php \ | |
85 | lib/Protocol/JSON/PairContext.php | |
86 | ||
87 | phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON | |
88 | phpprotocolsimplejson_DATA = \ | |
89 | lib/Protocol/SimpleJSON/CollectionMapKeyException.php \ | |
90 | lib/Protocol/SimpleJSON/Context.php \ | |
91 | lib/Protocol/SimpleJSON/ListContext.php \ | |
92 | lib/Protocol/SimpleJSON/MapContext.php \ | |
93 | lib/Protocol/SimpleJSON/StructContext.php | |
94 | ||
95 | phpserializerdir = $(phpdir)/Serializer | |
96 | phpserializer_DATA = \ | |
97 | lib/Serializer/TBinarySerializer.php | |
98 | ||
99 | phpserverdir = $(phpdir)/Server | |
100 | phpserver_DATA = \ | |
101 | lib/Server/TServerSocket.php \ | |
102 | lib/Server/TForkingServer.php \ | |
103 | lib/Server/TServer.php \ | |
104 | lib/Server/TServerTransport.php \ | |
105 | lib/Server/TSimpleServer.php | |
106 | ||
107 | phpstringfuncdir = $(phpdir)/StringFunc | |
108 | phpstringfunc_DATA = \ | |
109 | lib/StringFunc/Mbstring.php \ | |
110 | lib/StringFunc/Core.php \ | |
111 | lib/StringFunc/TStringFunc.php | |
112 | ||
113 | phptransportdir = $(phpdir)/Transport | |
114 | phptransport_DATA = \ | |
115 | lib/Transport/TBufferedTransport.php \ | |
116 | lib/Transport/TCurlClient.php \ | |
117 | lib/Transport/TFramedTransport.php \ | |
118 | lib/Transport/THttpClient.php \ | |
119 | lib/Transport/TMemoryBuffer.php \ | |
120 | lib/Transport/TNullTransport.php \ | |
121 | lib/Transport/TPhpStream.php \ | |
122 | lib/Transport/TSocket.php \ | |
123 | lib/Transport/TSocketPool.php \ | |
124 | lib/Transport/TTransport.php | |
125 | ||
126 | phptypedir = $(phpdir)/Type | |
127 | phptype_DATA = \ | |
128 | lib/Type/TMessageType.php \ | |
129 | lib/Type/TType.php \ | |
130 | lib/Type/TConstant.php | |
131 | ||
132 | clean-local: | |
133 | if [ -f src/ext/thrift_protocol/Makefile ]; then cd src/ext/thrift_protocol/ && $(MAKE) clean; fi | |
134 | ||
135 | ||
136 | EXTRA_DIST = \ | |
137 | lib \ | |
138 | src/autoload.php \ | |
139 | src/ext/thrift_protocol/config.m4 \ | |
140 | src/ext/thrift_protocol/config.w32 \ | |
141 | src/ext/thrift_protocol/php_thrift_protocol.cpp \ | |
142 | src/ext/thrift_protocol/php_thrift_protocol.h \ | |
143 | src/Thrift.php \ | |
144 | src/TStringUtils.php \ | |
145 | coding_standards.md \ | |
146 | thrift_protocol.ini \ | |
147 | README.apache.md \ | |
148 | README.md | |
149 | ||
150 | MAINTAINERCLEANFILES = \ | |
151 | Makefile.in | |
152 |