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: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 27 | cd src/ext/thrift_protocol/ && $(MAKE) |
jfarrell | 30a472e | 2014-07-10 18:42:30 -0400 | [diff] [blame] | 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 |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 34 | |
| 35 | distclean-local: |
| 36 | cd $(phpmodule_SCRIPTS) && $(PHPIZE) --clean |
| 37 | |
Bryan Duxbury | 89200e1 | 2010-08-25 17:09:02 +0000 | [diff] [blame] | 38 | endif |
| 39 | |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 40 | phpdir = $(PHP_PREFIX)/ |
Mark Goldfinch | 4ab9a88 | 2016-03-25 23:28:43 +1300 | [diff] [blame] | 41 | php_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 42 | lib/TMultiplexedProcessor.php |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 43 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 44 | phpbasedir = $(phpdir)/Base |
| 45 | phpbase_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 46 | lib/Base/TBase.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 47 | |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 48 | phpclassloaderdir = $(phpdir)/ClassLoader |
| 49 | phpclassloader_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 50 | lib/ClassLoader/ThriftClassLoader.php |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 51 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 52 | phpexceptiondir = $(phpdir)/Exception |
| 53 | phpexception_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 54 | lib/Exception/TApplicationException.php \ |
| 55 | lib/Exception/TException.php \ |
| 56 | lib/Exception/TProtocolException.php \ |
| 57 | lib/Exception/TTransportException.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 58 | |
| 59 | phpfactorydir = $(phpdir)/Factory |
| 60 | phpfactory_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 61 | lib/Factory/TBinaryProtocolFactory.php \ |
| 62 | lib/Factory/TCompactProtocolFactory.php \ |
| 63 | lib/Factory/TJSONProtocolFactory.php \ |
| 64 | lib/Factory/TProtocolFactory.php \ |
| 65 | lib/Factory/TStringFuncFactory.php \ |
| 66 | lib/Factory/TTransportFactory.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 67 | |
| 68 | phpprotocoldir = $(phpdir)/Protocol |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 69 | phpprotocol_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 70 | lib/Protocol/TBinaryProtocolAccelerated.php \ |
| 71 | lib/Protocol/TBinaryProtocol.php \ |
| 72 | lib/Protocol/TCompactProtocol.php \ |
| 73 | lib/Protocol/TJSONProtocol.php \ |
| 74 | lib/Protocol/TMultiplexedProtocol.php \ |
| 75 | lib/Protocol/TProtocol.php \ |
| 76 | lib/Protocol/TProtocolDecorator.php \ |
| 77 | lib/Protocol/TSimpleJSONProtocol.php |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 78 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 79 | phpprotocoljsondir = $(phpprotocoldir)/JSON |
| 80 | phpprotocoljson_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 81 | lib/Protocol/JSON/BaseContext.php \ |
| 82 | lib/Protocol/JSON/ListContext.php \ |
| 83 | lib/Protocol/JSON/LookaheadReader.php \ |
| 84 | lib/Protocol/JSON/PairContext.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 85 | |
Mark Goldfinch | 4ab9a88 | 2016-03-25 23:28:43 +1300 | [diff] [blame] | 86 | phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON |
| 87 | phpprotocolsimplejson_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 88 | lib/Protocol/SimpleJSON/CollectionMapKeyException.php \ |
| 89 | lib/Protocol/SimpleJSON/Context.php \ |
| 90 | lib/Protocol/SimpleJSON/ListContext.php \ |
| 91 | lib/Protocol/SimpleJSON/MapContext.php \ |
| 92 | lib/Protocol/SimpleJSON/StructContext.php |
Mark Goldfinch | 4ab9a88 | 2016-03-25 23:28:43 +1300 | [diff] [blame] | 93 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 94 | phpserializerdir = $(phpdir)/Serializer |
| 95 | phpserializer_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 96 | lib/Serializer/TBinarySerializer.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 97 | |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 98 | phpserverdir = $(phpdir)/Server |
| 99 | phpserver_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 100 | lib/Server/TServerSocket.php \ |
| 101 | lib/Server/TForkingServer.php \ |
| 102 | lib/Server/TServer.php \ |
| 103 | lib/Server/TServerTransport.php \ |
| 104 | lib/Server/TSimpleServer.php |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 105 | |
| 106 | phpstringfuncdir = $(phpdir)/StringFunc |
| 107 | phpstringfunc_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 108 | lib/StringFunc/Mbstring.php \ |
| 109 | lib/StringFunc/Core.php \ |
| 110 | lib/StringFunc/TStringFunc.php |
Roger Meier | 1e3c884 | 2013-05-30 14:04:11 +0200 | [diff] [blame] | 111 | |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 112 | phptransportdir = $(phpdir)/Transport |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 113 | phptransport_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 114 | lib/Transport/TBufferedTransport.php \ |
| 115 | lib/Transport/TCurlClient.php \ |
| 116 | lib/Transport/TFramedTransport.php \ |
| 117 | lib/Transport/THttpClient.php \ |
| 118 | lib/Transport/TMemoryBuffer.php \ |
| 119 | lib/Transport/TNullTransport.php \ |
| 120 | lib/Transport/TPhpStream.php \ |
| 121 | lib/Transport/TSocket.php \ |
| 122 | lib/Transport/TSocketPool.php \ |
| 123 | lib/Transport/TTransport.php |
Roger Meier | 21c0a85 | 2012-09-05 19:47:14 +0000 | [diff] [blame] | 124 | |
| 125 | phptypedir = $(phpdir)/Type |
| 126 | phptype_DATA = \ |
Robert Lu | bfba370 | 2017-11-03 12:27:31 +0800 | [diff] [blame^] | 127 | lib/Type/TMessageType.php \ |
| 128 | lib/Type/TType.php \ |
| 129 | lib/Type/TConstant.php |
Bryan Duxbury | 6a68187 | 2010-05-02 22:39:31 +0000 | [diff] [blame] | 130 | |
Jake Farrell | 7c7a5e0 | 2012-10-11 00:29:11 +0000 | [diff] [blame] | 131 | EXTRA_DIST = \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 132 | lib \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 133 | src/autoload.php \ |
Roger Meier | a43063c | 2015-11-28 00:14:03 +0100 | [diff] [blame] | 134 | src/ext/thrift_protocol/config.m4 \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 135 | src/ext/thrift_protocol/config.w32 \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 136 | src/ext/thrift_protocol/php_thrift_protocol.cpp \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 137 | src/ext/thrift_protocol/php_thrift_protocol.h \ |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 138 | src/ext/thrift_protocol/run-tests.php \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 139 | src/Thrift.php \ |
| 140 | src/TStringUtils.php \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 141 | coding_standards.md \ |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 142 | thrift_protocol.ini \ |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 143 | README.apache.md \ |
| 144 | README.md |
David Reiss | 653eada | 2010-10-05 02:38:58 +0000 | [diff] [blame] | 145 | |
jfarrell | 16ff233 | 2013-08-16 09:48:42 -0400 | [diff] [blame] | 146 | MAINTAINERCLEANFILES = \ |
| 147 | Makefile \ |
| 148 | Makefile.in |
| 149 | |