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