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