blob: 927de98059544caf69b5b026d5019c24ef8cc32d [file] [log] [blame]
David Reiss1873fed2010-05-04 16:32:33 +00001#
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
Roger Meier33b720a2012-01-24 18:42:46 +000020
21if WITH_TESTS
22SUBDIRS = test
23endif
24
Bryan Duxbury89200e12010-08-25 17:09:02 +000025%.so:
26 cd src/ext/thrift_protocol/ \
27 && $(MAKE)
28
29if WITH_PHP_EXTENSION
30phpconfdir=$(PHP_CONFIG_PREFIX)
31phpconf_DATA=thrift_protocol.ini
32
33phpmoduledir = `php-config --extension-dir`
34phpmodule_SCRIPTS = src/ext/thrift_protocol/modules/thrift_protocol.so
35endif
36
Roger Meier21c0a852012-09-05 19:47:14 +000037phpdir = $(PHP_PREFIX)/Thrift
Bryan Duxbury6a681872010-05-02 22:39:31 +000038
Roger Meier21c0a852012-09-05 19:47:14 +000039phpbasedir = $(phpdir)/Base
40phpbase_DATA = \
41 lib/Thrift/Base/TBase.php
42
Roger Meier1e3c8842013-05-30 14:04:11 +020043phpclassloaderdir = $(phpdir)/ClassLoader
44phpclassloader_DATA = \
45 lib/Thrift/ClassLoader/ThriftClassLoader.php
46
Roger Meier21c0a852012-09-05 19:47:14 +000047phpexceptiondir = $(phpdir)/Exception
48phpexception_DATA = \
49 lib/Thrift/Exception/TApplicationException.php \
50 lib/Thrift/Exception/TException.php \
51 lib/Thrift/Exception/TProtocolException.php \
52 lib/Thrift/Exception/TTransportException.php
53
54phpfactorydir = $(phpdir)/Factory
55phpfactory_DATA = \
56 lib/Thrift/Factory/TBinaryProtocolFactory.php \
57 lib/Thrift/Factory/TCompactProtocolFactory.php \
58 lib/Thrift/Factory/TJSONProtocolFactory.php \
59 lib/Thrift/Factory/TProtocolFactory.php \
Roger Meier9b252442013-03-22 17:05:53 +010060 lib/Thrift/Factory/TStringFuncFactory.php \
Roger Meier21c0a852012-09-05 19:47:14 +000061 lib/Thrift/Factory/TTransportFactory.php
62
63phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000064phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000065 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
66 lib/Thrift/Protocol/TBinaryProtocol.php \
67 lib/Thrift/Protocol/TCompactProtocol.php \
68 lib/Thrift/Protocol/TJSONProtocol.php \
69 lib/Thrift/Protocol/TProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000070
Roger Meier21c0a852012-09-05 19:47:14 +000071phpprotocoljsondir = $(phpprotocoldir)/JSON
72phpprotocoljson_DATA = \
73 lib/Thrift/Protocol/JSON/BaseContext.php \
74 lib/Thrift/Protocol/JSON/ListContext.php \
75 lib/Thrift/Protocol/JSON/LookaheadReader.php \
76 lib/Thrift/Protocol/JSON/PairContext.php
77
78phpserializerdir = $(phpdir)/Serializer
79phpserializer_DATA = \
80 lib/Thrift/Serializer/TBinarySerializer.php
81
Roger Meier1e3c8842013-05-30 14:04:11 +020082phpserverdir = $(phpdir)/Server
83phpserver_DATA = \
84 lib/Thrift/Server/TServerSocket.php \
85 lib/Thrift/Server/TForkingServer.php \
86 lib/Thrift/Server/TServer.php \
87 lib/Thrift/Server/TServerTransport.php \
88 lib/Thrift/Server/TSimpleServer.php
89
90phpstringfuncdir = $(phpdir)/StringFunc
91phpstringfunc_DATA = \
92 lib/Thrift/StringFunc/Mbstring.php \
93 lib/Thrift/StringFunc/Core.php \
94 lib/Thrift/StringFunc/TStringFunc.php
95
Roger Meier21c0a852012-09-05 19:47:14 +000096phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000097phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000098 lib/Thrift/Transport/TBufferedTransport.php \
99 lib/Thrift/Transport/TFramedTransport.php \
100 lib/Thrift/Transport/THttpClient.php \
101 lib/Thrift/Transport/TMemoryBuffer.php \
102 lib/Thrift/Transport/TNullTransport.php \
103 lib/Thrift/Transport/TPhpStream.php \
104 lib/Thrift/Transport/TSocket.php \
105 lib/Thrift/Transport/TSocketPool.php \
106 lib/Thrift/Transport/TTransport.php
107
108phptypedir = $(phpdir)/Type
109phptype_DATA = \
110 lib/Thrift/Type/TMessageType.php \
111 lib/Thrift/Type/TType.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000112
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000113EXTRA_DIST = \
jfarrell16ff2332013-08-16 09:48:42 -0400114 lib \
jfarrell102c6002013-08-15 21:20:19 -0400115 src/autoload.php \
116 src/ext/thrift_protocol/config.w32 \
jfarrell16ff2332013-08-16 09:48:42 -0400117 src/ext/thrift_protocol/php_thrift_protocol.cpp \
jfarrell102c6002013-08-15 21:20:19 -0400118 src/ext/thrift_protocol/php_thrift_protocol.h \
119 src/Thrift.php \
120 src/TStringUtils.php \
jfarrell16ff2332013-08-16 09:48:42 -0400121 thrift_protocol.ini \
122 README.apache
David Reiss653eada2010-10-05 02:38:58 +0000123
jfarrell16ff2332013-08-16 09:48:42 -0400124MAINTAINERCLEANFILES = \
125 Makefile \
126 Makefile.in
127