blob: 5c4d0f404a42894a9768a7cc07a68209ae7fcf75 [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 \
56 lib/Thrift/Factory/TTransportFactory.php
57
58phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000059phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000060 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
61 lib/Thrift/Protocol/TBinaryProtocol.php \
62 lib/Thrift/Protocol/TCompactProtocol.php \
63 lib/Thrift/Protocol/TJSONProtocol.php \
64 lib/Thrift/Protocol/TProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000065
Roger Meier21c0a852012-09-05 19:47:14 +000066phpprotocoljsondir = $(phpprotocoldir)/JSON
67phpprotocoljson_DATA = \
68 lib/Thrift/Protocol/JSON/BaseContext.php \
69 lib/Thrift/Protocol/JSON/ListContext.php \
70 lib/Thrift/Protocol/JSON/LookaheadReader.php \
71 lib/Thrift/Protocol/JSON/PairContext.php
72
73phpserializerdir = $(phpdir)/Serializer
74phpserializer_DATA = \
75 lib/Thrift/Serializer/TBinarySerializer.php
76
77phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000078phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000079 lib/Thrift/Transport/TBufferedTransport.php \
80 lib/Thrift/Transport/TFramedTransport.php \
81 lib/Thrift/Transport/THttpClient.php \
82 lib/Thrift/Transport/TMemoryBuffer.php \
83 lib/Thrift/Transport/TNullTransport.php \
84 lib/Thrift/Transport/TPhpStream.php \
85 lib/Thrift/Transport/TSocket.php \
86 lib/Thrift/Transport/TSocketPool.php \
87 lib/Thrift/Transport/TTransport.php
88
89phptypedir = $(phpdir)/Type
90phptype_DATA = \
91 lib/Thrift/Type/TMessageType.php \
92 lib/Thrift/Type/TType.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000093
David Reiss653eada2010-10-05 02:38:58 +000094EXTRA_DIST = src thrift_protocol.ini README.apache
95
Bryan Duxbury6a681872010-05-02 22:39:31 +000096MAINTAINERCLEANFILES = Makefile Makefile.in