| David Reiss | ea2cba8 | 2009-03-30 21:35:00 +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 | # | 
| Todd Lipcon | 53ae9f3 | 2009-12-07 00:42:38 +0000 | [diff] [blame] | 19 | # | 
|  | 20 | # Contains some contributions under the Thrift Software License. | 
|  | 21 | # Please see doc/old-thrift-license.txt in the Thrift distribution for | 
|  | 22 | # details. | 
| David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 23 |  | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 24 | AM_YFLAGS = -d | 
| David Reiss | dd08f6d | 2008-06-30 20:24:24 +0000 | [diff] [blame] | 25 | BUILT_SOURCES = | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 26 |  | 
|  | 27 | bin_PROGRAMS = thrift | 
|  | 28 |  | 
| Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 29 | noinst_LIBRARIES = libparse.a | 
|  | 30 |  | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 31 | thrift_OBJDIR = obj | 
|  | 32 |  | 
| Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 33 | thrift_SOURCES = src/main.cc \ | 
| David Reiss | 8df6c82 | 2008-05-04 03:00:22 +0000 | [diff] [blame] | 34 | src/md5.c \ | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 35 | src/generate/t_generator.cc \ | 
| Bryan Duxbury | c412a2f | 2010-08-04 18:51:57 +0000 | [diff] [blame] | 36 | src/generate/t_generator_registry.h \ | 
| Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 37 | src/globals.h \ | 
|  | 38 | src/main.h \ | 
| David Reiss | 204420f | 2008-01-11 20:59:03 +0000 | [diff] [blame] | 39 | src/platform.h \ | 
| Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 40 | src/md5.h \ | 
|  | 41 | src/parse/t_doc.h \ | 
|  | 42 | src/parse/t_type.h \ | 
|  | 43 | src/parse/t_base_type.h \ | 
|  | 44 | src/parse/t_enum.h \ | 
|  | 45 | src/parse/t_enum_value.h \ | 
|  | 46 | src/parse/t_typedef.h \ | 
|  | 47 | src/parse/t_container.h \ | 
|  | 48 | src/parse/t_list.h \ | 
|  | 49 | src/parse/t_set.h \ | 
|  | 50 | src/parse/t_map.h \ | 
|  | 51 | src/parse/t_struct.h \ | 
|  | 52 | src/parse/t_field.h \ | 
|  | 53 | src/parse/t_service.h \ | 
|  | 54 | src/parse/t_function.h \ | 
|  | 55 | src/parse/t_program.h \ | 
|  | 56 | src/parse/t_scope.h \ | 
|  | 57 | src/parse/t_const.h \ | 
|  | 58 | src/parse/t_const_value.h \ | 
| David Reiss | 9e7ba8c | 2010-10-05 16:39:27 +0000 | [diff] [blame] | 59 | src/parse/parse.cc \ | 
| Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 60 | src/generate/t_generator.h \ | 
| David Reiss | bba6928 | 2009-02-17 20:28:28 +0000 | [diff] [blame] | 61 | src/generate/t_oop_generator.h | 
| iproctor | 9a41a0c | 2007-07-16 21:59:24 +0000 | [diff] [blame] | 62 |  | 
| Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 63 | if THRIFT_GEN_c_glib | 
|  | 64 | thrift_SOURCES += src/generate/t_c_glib_generator.cc | 
|  | 65 | endif | 
| David Reiss | 2258573 | 2008-02-27 01:55:33 +0000 | [diff] [blame] | 66 | if THRIFT_GEN_cpp | 
|  | 67 | thrift_SOURCES += src/generate/t_cpp_generator.cc | 
|  | 68 | endif | 
| David Reiss | e8a87de | 2008-02-27 02:39:25 +0000 | [diff] [blame] | 69 | if THRIFT_GEN_java | 
|  | 70 | thrift_SOURCES += src/generate/t_java_generator.cc | 
|  | 71 | endif | 
| Bryan Duxbury | 321eb7a | 2010-04-22 21:17:39 +0000 | [diff] [blame] | 72 | if THRIFT_GEN_as3 | 
|  | 73 | thrift_SOURCES += src/generate/t_as3_generator.cc | 
|  | 74 | endif | 
| David Reiss | ce4f4f0 | 2008-03-27 21:41:31 +0000 | [diff] [blame] | 75 | if THRIFT_GEN_csharp | 
|  | 76 | thrift_SOURCES += src/generate/t_csharp_generator.cc | 
|  | 77 | endif | 
| David Reiss | bfd26dc | 2008-03-27 21:41:49 +0000 | [diff] [blame] | 78 | if THRIFT_GEN_py | 
|  | 79 | thrift_SOURCES += src/generate/t_py_generator.cc | 
|  | 80 | endif | 
| David Reiss | ae25358 | 2008-03-27 21:42:11 +0000 | [diff] [blame] | 81 | if THRIFT_GEN_rb | 
|  | 82 | thrift_SOURCES += src/generate/t_rb_generator.cc | 
|  | 83 | endif | 
| David Reiss | fdc21aa | 2008-03-27 21:42:34 +0000 | [diff] [blame] | 84 | if THRIFT_GEN_perl | 
|  | 85 | thrift_SOURCES += src/generate/t_perl_generator.cc | 
|  | 86 | endif | 
| David Reiss | 32272d9 | 2009-02-17 20:28:30 +0000 | [diff] [blame] | 87 | if THRIFT_GEN_php | 
|  | 88 | thrift_SOURCES += src/generate/t_php_generator.cc | 
|  | 89 | endif | 
| David Reiss | f3b0db3 | 2009-02-17 20:28:01 +0000 | [diff] [blame] | 90 | if THRIFT_GEN_erl | 
|  | 91 | thrift_SOURCES += src/generate/t_erl_generator.cc | 
|  | 92 | endif | 
| David Reiss | 4b349aa | 2008-03-27 21:41:02 +0000 | [diff] [blame] | 93 | if THRIFT_GEN_cocoa | 
|  | 94 | thrift_SOURCES += src/generate/t_cocoa_generator.cc | 
|  | 95 | endif | 
| David Reiss | b3ac8a6 | 2008-03-27 21:40:42 +0000 | [diff] [blame] | 96 | if THRIFT_GEN_st | 
|  | 97 | thrift_SOURCES += src/generate/t_st_generator.cc | 
|  | 98 | endif | 
| David Reiss | 3d671b5 | 2008-03-27 21:40:11 +0000 | [diff] [blame] | 99 | if THRIFT_GEN_ocaml | 
|  | 100 | thrift_SOURCES += src/generate/t_ocaml_generator.cc | 
|  | 101 | endif | 
| David Reiss | 22812f8 | 2008-03-27 21:40:26 +0000 | [diff] [blame] | 102 | if THRIFT_GEN_hs | 
|  | 103 | thrift_SOURCES += src/generate/t_hs_generator.cc | 
|  | 104 | endif | 
| David Reiss | 782cb67 | 2009-02-17 20:28:13 +0000 | [diff] [blame] | 105 | if THRIFT_GEN_xsd | 
|  | 106 | thrift_SOURCES += src/generate/t_xsd_generator.cc | 
|  | 107 | endif | 
| David Reiss | dc0aada | 2008-10-21 00:09:23 +0000 | [diff] [blame] | 108 | if THRIFT_GEN_html | 
|  | 109 | thrift_SOURCES += src/generate/t_html_generator.cc | 
|  | 110 | endif | 
| T Jake Luciani | 322caa2 | 2010-02-15 03:24:55 +0000 | [diff] [blame] | 111 | if THRIFT_GEN_js | 
|  | 112 | thrift_SOURCES += src/generate/t_js_generator.cc | 
|  | 113 | endif | 
| Bryan Duxbury | 1237dcb | 2010-09-20 17:49:09 +0000 | [diff] [blame] | 114 | if THRIFT_GEN_javame | 
|  | 115 | thrift_SOURCES += src/generate/t_javame_generator.cc | 
|  | 116 | endif | 
| Christian Lavoie | afc6d8f | 2011-02-20 02:39:19 +0000 | [diff] [blame] | 117 | if THRIFT_GEN_go | 
|  | 118 | thrift_SOURCES += src/generate/t_go_generator.cc | 
|  | 119 | endif | 
| David Reiss | 2258573 | 2008-02-27 01:55:33 +0000 | [diff] [blame] | 120 |  | 
| Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 121 | thrift_CPPFLAGS = -I$(srcdir)/src | 
|  | 122 | thrift_CXXFLAGS = -Wall | 
|  | 123 | thrift_LDADD = @LEXLIB@ libparse.a | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 124 |  | 
| Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 125 | libparse_a_CPPFLAGS = -I$(srcdir)/src | 
|  | 126 | libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused | 
|  | 127 |  | 
|  | 128 | libparse_a_SOURCES = src/thrifty.yy \ | 
|  | 129 | src/thriftl.ll | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 130 |  | 
| David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 131 | EXTRA_DIST = README | 
| David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 132 |  | 
| Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 133 | clean-local: | 
| David Reiss | 466b3fa | 2008-11-20 21:24:32 +0000 | [diff] [blame] | 134 | $(RM) thriftl.cc thrifty.cc thrifty.h version.h | 
| David Reiss | dd08f6d | 2008-06-30 20:24:24 +0000 | [diff] [blame] | 135 |  | 
|  | 136 | src/main.cc: version.h |