David Reiss | 1873fed | 2010-05-04 16:32:33 +0000 | [diff] [blame] | 1 | # |
| 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 Meier | 33b720a | 2012-01-24 18:42:46 +0000 | [diff] [blame] | 20 | |
| 21 | if WITH_TESTS |
| 22 | SUBDIRS = test |
| 23 | endif |
| 24 | |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 25 | if WITH_PHP_EXTENSION |
jfarrell | 30a472e | 2014-07-10 18:42:30 -0400 | [diff] [blame] | 26 | %.so: |
| 27 | cd src/ext/thrift_protocol/ && $(MAKE) |
| 28 | |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 29 | phpconfdir=$(PHP_CONFIG_PREFIX) |
| 30 | phpconf_DATA=thrift_protocol.ini |
| 31 | |
| 32 | phpmoduledir = `php-config --extension-dir` |
| 33 | phpmodule_SCRIPTS = src/ext/thrift_protocol/modules/thrift_protocol.so |
| 34 | endif |
| 35 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 36 | phpdir = $(PHP_PREFIX)/Thrift |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 37 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 38 | phpbasedir = $(phpdir)/Base |
| 39 | phpbase_DATA = \ |
| 40 | lib/Thrift/Base/TBase.php |
| 41 | |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 42 | phpclassloaderdir = $(phpdir)/ClassLoader |
| 43 | phpclassloader_DATA = \ |
| 44 | lib/Thrift/ClassLoader/ThriftClassLoader.php |
| 45 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 46 | phpexceptiondir = $(phpdir)/Exception |
| 47 | phpexception_DATA = \ |
| 48 | lib/Thrift/Exception/TApplicationException.php \ |
| 49 | lib/Thrift/Exception/TException.php \ |
| 50 | lib/Thrift/Exception/TProtocolException.php \ |
| 51 | lib/Thrift/Exception/TTransportException.php |
| 52 | |
| 53 | phpfactorydir = $(phpdir)/Factory |
| 54 | phpfactory_DATA = \ |
| 55 | lib/Thrift/Factory/TBinaryProtocolFactory.php \ |
| 56 | lib/Thrift/Factory/TCompactProtocolFactory.php \ |
| 57 | lib/Thrift/Factory/TJSONProtocolFactory.php \ |
| 58 | lib/Thrift/Factory/TProtocolFactory.php \ |
Roger Meier | 9b25244 | 2013-03-22 17:05:53 +0100 | [diff] [blame] | 59 | lib/Thrift/Factory/TStringFuncFactory.php \ |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 60 | lib/Thrift/Factory/TTransportFactory.php |
| 61 | |
| 62 | phpprotocoldir = $(phpdir)/Protocol |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 63 | phpprotocol_DATA = \ |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 64 | lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \ |
| 65 | lib/Thrift/Protocol/TBinaryProtocol.php \ |
| 66 | lib/Thrift/Protocol/TCompactProtocol.php \ |
| 67 | lib/Thrift/Protocol/TJSONProtocol.php \ |
| 68 | lib/Thrift/Protocol/TProtocol.php |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 69 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 70 | phpprotocoljsondir = $(phpprotocoldir)/JSON |
| 71 | phpprotocoljson_DATA = \ |
| 72 | lib/Thrift/Protocol/JSON/BaseContext.php \ |
| 73 | lib/Thrift/Protocol/JSON/ListContext.php \ |
| 74 | lib/Thrift/Protocol/JSON/LookaheadReader.php \ |
| 75 | lib/Thrift/Protocol/JSON/PairContext.php |
| 76 | |
| 77 | phpserializerdir = $(phpdir)/Serializer |
| 78 | phpserializer_DATA = \ |
| 79 | lib/Thrift/Serializer/TBinarySerializer.php |
| 80 | |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 81 | phpserverdir = $(phpdir)/Server |
| 82 | phpserver_DATA = \ |
| 83 | lib/Thrift/Server/TServerSocket.php \ |
| 84 | lib/Thrift/Server/TForkingServer.php \ |
| 85 | lib/Thrift/Server/TServer.php \ |
| 86 | lib/Thrift/Server/TServerTransport.php \ |
| 87 | lib/Thrift/Server/TSimpleServer.php |
| 88 | |
| 89 | phpstringfuncdir = $(phpdir)/StringFunc |
| 90 | phpstringfunc_DATA = \ |
| 91 | lib/Thrift/StringFunc/Mbstring.php \ |
| 92 | lib/Thrift/StringFunc/Core.php \ |
| 93 | lib/Thrift/StringFunc/TStringFunc.php |
| 94 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 95 | phptransportdir = $(phpdir)/Transport |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 96 | phptransport_DATA = \ |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 97 | lib/Thrift/Transport/TBufferedTransport.php \ |
Roger Meier | 6aacd4c | 2014-07-26 00:19:02 +0200 | [diff] [blame^] | 98 | lib/Thrift/Transport/TCurlClient.php \ |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 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 | |
| 108 | phptypedir = $(phpdir)/Type |
| 109 | phptype_DATA = \ |
| 110 | lib/Thrift/Type/TMessageType.php \ |
| 111 | lib/Thrift/Type/TType.php |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 112 | |
Jake Farrell | 7c7a5e0 | 2012-10-11 00:29:11 +0000 | [diff] [blame] | 113 | EXTRA_DIST = \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 114 | lib \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 115 | src/autoload.php \ |
| 116 | src/ext/thrift_protocol/config.w32 \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 117 | src/ext/thrift_protocol/php_thrift_protocol.cpp \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 118 | src/ext/thrift_protocol/php_thrift_protocol.h \ |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 119 | src/ext/thrift_protocol/run-tests.php \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 120 | src/Thrift.php \ |
| 121 | src/TStringUtils.php \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 122 | thrift_protocol.ini \ |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 123 | README.apache.md \ |
| 124 | README.md |
David Reiss | 653eada | 2010-10-05 02:38:58 +0000 | [diff] [blame] | 125 | |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 126 | MAINTAINERCLEANFILES = \ |
| 127 | Makefile \ |
| 128 | Makefile.in |
| 129 | |