blob: b7c7100b90560f8cefe503989eecc283b688b977 [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
David Reiss1873fed2010-05-04 16:32:33 +000037phpdir = $(PHP_PREFIX)
Bryan Duxbury6a681872010-05-02 22:39:31 +000038php_DATA = \
39 src/autoload.php \
40 src/Thrift.php
41
David Reiss1873fed2010-05-04 16:32:33 +000042phpprotocoldir = $(phpdir)/protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000043phpprotocol_DATA = \
David Reiss1873fed2010-05-04 16:32:33 +000044 src/protocol/TBinaryProtocol.php \
Mark Slee052bbef2010-10-11 21:45:13 +000045 src/protocol/TBinarySerializer.php \
Bryan Duxbury6a681872010-05-02 22:39:31 +000046 src/protocol/TProtocol.php
47
David Reiss1873fed2010-05-04 16:32:33 +000048phptransportdir = $(phpdir)/transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000049phptransport_DATA = \
David Reiss1873fed2010-05-04 16:32:33 +000050 src/transport/TBufferedTransport.php \
51 src/transport/TFramedTransport.php \
52 src/transport/THttpClient.php \
53 src/transport/TMemoryBuffer.php \
54 src/transport/TNullTransport.php \
55 src/transport/TPhpStream.php \
56 src/transport/TSocket.php \
57 src/transport/TSocketPool.php \
Bryan Duxbury6a681872010-05-02 22:39:31 +000058 src/transport/TTransport.php
59
David Reiss653eada2010-10-05 02:38:58 +000060EXTRA_DIST = src thrift_protocol.ini README.apache
61
Bryan Duxbury6a681872010-05-02 22:39:31 +000062MAINTAINERCLEANFILES = Makefile Makefile.in