blob: 07242f9afb8f36e649b196e79234c35465165e1a [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
Bryan Duxbury89200e12010-08-25 17:09:02 +000020%.so:
21 cd src/ext/thrift_protocol/ \
22 && $(MAKE)
23
24if WITH_PHP_EXTENSION
25phpconfdir=$(PHP_CONFIG_PREFIX)
26phpconf_DATA=thrift_protocol.ini
27
28phpmoduledir = `php-config --extension-dir`
29phpmodule_SCRIPTS = src/ext/thrift_protocol/modules/thrift_protocol.so
30endif
31
David Reiss1873fed2010-05-04 16:32:33 +000032phpdir = $(PHP_PREFIX)
Bryan Duxbury6a681872010-05-02 22:39:31 +000033php_DATA = \
34 src/autoload.php \
35 src/Thrift.php
36
David Reiss1873fed2010-05-04 16:32:33 +000037phpprotocoldir = $(phpdir)/protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000038phpprotocol_DATA = \
David Reiss1873fed2010-05-04 16:32:33 +000039 src/protocol/TBinaryProtocol.php \
Mark Slee052bbef2010-10-11 21:45:13 +000040 src/protocol/TBinarySerializer.php \
Bryan Duxbury6a681872010-05-02 22:39:31 +000041 src/protocol/TProtocol.php
42
David Reiss1873fed2010-05-04 16:32:33 +000043phptransportdir = $(phpdir)/transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000044phptransport_DATA = \
David Reiss1873fed2010-05-04 16:32:33 +000045 src/transport/TBufferedTransport.php \
46 src/transport/TFramedTransport.php \
47 src/transport/THttpClient.php \
48 src/transport/TMemoryBuffer.php \
49 src/transport/TNullTransport.php \
50 src/transport/TPhpStream.php \
51 src/transport/TSocket.php \
52 src/transport/TSocketPool.php \
Bryan Duxbury6a681872010-05-02 22:39:31 +000053 src/transport/TTransport.php
54
David Reiss653eada2010-10-05 02:38:58 +000055EXTRA_DIST = src thrift_protocol.ini README.apache
56
Bryan Duxbury6a681872010-05-02 22:39:31 +000057MAINTAINERCLEANFILES = Makefile Makefile.in