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