blob: fdb855886e205106595c99ead0dc1f1935e42da3 [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
43phpexceptiondir = $(phpdir)/Exception
44phpexception_DATA = \
45 lib/Thrift/Exception/TApplicationException.php \
46 lib/Thrift/Exception/TException.php \
47 lib/Thrift/Exception/TProtocolException.php \
48 lib/Thrift/Exception/TTransportException.php
49
50phpfactorydir = $(phpdir)/Factory
51phpfactory_DATA = \
52 lib/Thrift/Factory/TBinaryProtocolFactory.php \
53 lib/Thrift/Factory/TCompactProtocolFactory.php \
54 lib/Thrift/Factory/TJSONProtocolFactory.php \
55 lib/Thrift/Factory/TProtocolFactory.php \
Roger Meier9b252442013-03-22 17:05:53 +010056 lib/Thrift/Factory/TStringFuncFactory.php \
Roger Meier21c0a852012-09-05 19:47:14 +000057 lib/Thrift/Factory/TTransportFactory.php
58
59phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000060phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000061 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
62 lib/Thrift/Protocol/TBinaryProtocol.php \
63 lib/Thrift/Protocol/TCompactProtocol.php \
64 lib/Thrift/Protocol/TJSONProtocol.php \
65 lib/Thrift/Protocol/TProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000066
Roger Meier21c0a852012-09-05 19:47:14 +000067phpprotocoljsondir = $(phpprotocoldir)/JSON
68phpprotocoljson_DATA = \
69 lib/Thrift/Protocol/JSON/BaseContext.php \
70 lib/Thrift/Protocol/JSON/ListContext.php \
71 lib/Thrift/Protocol/JSON/LookaheadReader.php \
72 lib/Thrift/Protocol/JSON/PairContext.php
73
74phpserializerdir = $(phpdir)/Serializer
75phpserializer_DATA = \
76 lib/Thrift/Serializer/TBinarySerializer.php
77
78phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000079phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000080 lib/Thrift/Transport/TBufferedTransport.php \
81 lib/Thrift/Transport/TFramedTransport.php \
82 lib/Thrift/Transport/THttpClient.php \
83 lib/Thrift/Transport/TMemoryBuffer.php \
84 lib/Thrift/Transport/TNullTransport.php \
85 lib/Thrift/Transport/TPhpStream.php \
86 lib/Thrift/Transport/TSocket.php \
87 lib/Thrift/Transport/TSocketPool.php \
88 lib/Thrift/Transport/TTransport.php
89
90phptypedir = $(phpdir)/Type
91phptype_DATA = \
92 lib/Thrift/Type/TMessageType.php \
93 lib/Thrift/Type/TType.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000094
Jake Farrell7c7a5e02012-10-11 00:29:11 +000095EXTRA_DIST = \
96 src \
97 lib \
98 thrift_protocol.ini \
99 README.apache
David Reiss653eada2010-10-05 02:38:58 +0000100
Bryan Duxbury6a681872010-05-02 22:39:31 +0000101MAINTAINERCLEANFILES = Makefile Makefile.in