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 | |
jfarrell | f7516e1 | 2013-08-18 10:53:07 -0400 | [diff] [blame] | 24 | # Override Automake rule that forces .hh extension |
| 25 | am__yacc_c2h = sed -e s/cc$$/h/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \ |
| 26 | -e s/c++$$/h++/ -e s/c$$/h/ |
| 27 | |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 28 | AM_YFLAGS = -d |
Jake Farrell | 6993569 | 2011-08-29 18:22:11 +0000 | [diff] [blame] | 29 | LIBS = |
Roger Meier | 8384351 | 2014-03-30 19:36:25 +0200 | [diff] [blame] | 30 | BUILT_SOURCES = thrifty.cc |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 31 | |
| 32 | bin_PROGRAMS = thrift |
| 33 | |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 34 | noinst_LIBRARIES = libparse.a |
| 35 | |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 36 | thrift_OBJDIR = obj |
| 37 | |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 38 | thrift_SOURCES = src/main.cc \ |
David Reiss | 8df6c82 | 2008-05-04 03:00:22 +0000 | [diff] [blame] | 39 | src/md5.c \ |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 40 | src/generate/t_generator.cc \ |
Bryan Duxbury | c412a2f | 2010-08-04 18:51:57 +0000 | [diff] [blame] | 41 | src/generate/t_generator_registry.h \ |
Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 42 | src/globals.h \ |
| 43 | src/main.h \ |
David Reiss | 204420f | 2008-01-11 20:59:03 +0000 | [diff] [blame] | 44 | src/platform.h \ |
Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 45 | src/md5.h \ |
| 46 | src/parse/t_doc.h \ |
| 47 | src/parse/t_type.h \ |
| 48 | src/parse/t_base_type.h \ |
| 49 | src/parse/t_enum.h \ |
| 50 | src/parse/t_enum_value.h \ |
| 51 | src/parse/t_typedef.h \ |
| 52 | src/parse/t_container.h \ |
| 53 | src/parse/t_list.h \ |
| 54 | src/parse/t_set.h \ |
| 55 | src/parse/t_map.h \ |
| 56 | src/parse/t_struct.h \ |
| 57 | src/parse/t_field.h \ |
| 58 | src/parse/t_service.h \ |
| 59 | src/parse/t_function.h \ |
| 60 | src/parse/t_program.h \ |
| 61 | src/parse/t_scope.h \ |
| 62 | src/parse/t_const.h \ |
| 63 | src/parse/t_const_value.h \ |
David Reiss | 9e7ba8c | 2010-10-05 16:39:27 +0000 | [diff] [blame] | 64 | src/parse/parse.cc \ |
Mark Slee | efd37f1 | 2007-11-20 05:13:09 +0000 | [diff] [blame] | 65 | src/generate/t_generator.h \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 66 | src/generate/t_oop_generator.h \ |
Jake Farrell | 7c7a5e0 | 2012-10-11 00:29:11 +0000 | [diff] [blame] | 67 | src/generate/t_html_generator.h \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 68 | src/windows/config.h \ |
| 69 | src/windows/version.h |
iproctor | 9a41a0c | 2007-07-16 21:59:24 +0000 | [diff] [blame] | 70 | |
Jake Farrell | dec8c54 | 2011-09-21 00:15:27 +0000 | [diff] [blame] | 71 | # Specific client generator source |
| 72 | thrift_SOURCES += src/generate/t_c_glib_generator.cc \ |
| 73 | src/generate/t_cpp_generator.cc \ |
| 74 | src/generate/t_java_generator.cc \ |
| 75 | src/generate/t_as3_generator.cc \ |
| 76 | src/generate/t_csharp_generator.cc \ |
| 77 | src/generate/t_py_generator.cc \ |
| 78 | src/generate/t_rb_generator.cc \ |
| 79 | src/generate/t_perl_generator.cc \ |
| 80 | src/generate/t_php_generator.cc \ |
| 81 | src/generate/t_erl_generator.cc \ |
| 82 | src/generate/t_cocoa_generator.cc \ |
| 83 | src/generate/t_st_generator.cc \ |
| 84 | src/generate/t_ocaml_generator.cc \ |
| 85 | src/generate/t_hs_generator.cc \ |
| 86 | src/generate/t_xsd_generator.cc \ |
| 87 | src/generate/t_html_generator.cc \ |
| 88 | src/generate/t_js_generator.cc \ |
| 89 | src/generate/t_javame_generator.cc \ |
Jake Farrell | 7ae13e1 | 2011-10-18 14:35:26 +0000 | [diff] [blame] | 90 | src/generate/t_delphi_generator.cc \ |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 91 | src/generate/t_go_generator.cc \ |
Jens Geyer | d7b4579 | 2013-05-13 22:11:46 +0200 | [diff] [blame] | 92 | src/generate/t_gv_generator.cc \ |
Roger Meier | 6cf0ffc | 2014-04-05 00:45:42 +0200 | [diff] [blame^] | 93 | src/generate/t_d_generator.cc \ |
| 94 | src/generate/t_lua_generator.cc |
David Reiss | 2258573 | 2008-02-27 01:55:33 +0000 | [diff] [blame] | 95 | |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 96 | thrift_CPPFLAGS = -I$(srcdir)/src |
Roger Meier | 6e96965 | 2011-12-13 00:36:01 +0000 | [diff] [blame] | 97 | thrift_CXXFLAGS = -Wall |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 98 | thrift_LDADD = @LEXLIB@ libparse.a |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 99 | |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 100 | libparse_a_CPPFLAGS = -I$(srcdir)/src |
| 101 | libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused |
| 102 | |
| 103 | libparse_a_SOURCES = src/thrifty.yy \ |
| 104 | src/thriftl.ll |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 105 | |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 106 | WINDOWS_DIST = \ |
| 107 | compiler.sln \ |
| 108 | compiler.vcxproj \ |
jfarrell | 102c600 | 2013-08-15 21:20:19 -0400 | [diff] [blame] | 109 | compiler.vcxproj.filters \ |
Roger Meier | 16fcad0 | 2014-03-16 21:12:11 +0100 | [diff] [blame] | 110 | README_Windows.md |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 111 | |
| 112 | EXTRA_DIST = \ |
| 113 | $(WINDOWS_DIST) |
David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 114 | |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 115 | clean-local: |
Chris Piro | 92e3860 | 2013-03-07 11:24:51 -0500 | [diff] [blame] | 116 | $(RM) thriftl.cc thrifty.cc thrifty.h thrifty.hh version.h windows/version.h |
David Reiss | dd08f6d | 2008-06-30 20:24:24 +0000 | [diff] [blame] | 117 | |
| 118 | src/main.cc: version.h |