blob: 6902ba47085ecd562cee3d09f62cbbb44ac24b94 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
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 Lipcon53ae9f32009-12-07 00:42:38 +000019#
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 Reissea2cba82009-03-30 21:35:00 +000023
Mark Sleeeb0d0242007-01-25 07:58:55 +000024AM_YFLAGS = -d
David Reissdd08f6d2008-06-30 20:24:24 +000025BUILT_SOURCES =
Mark Sleeeb0d0242007-01-25 07:58:55 +000026
27bin_PROGRAMS = thrift
28
29thrift_OBJDIR = obj
30
31thrift_SOURCES = src/thrifty.yy \
32 src/thriftl.ll \
33 src/main.cc \
David Reiss8df6c822008-05-04 03:00:22 +000034 src/md5.c \
Mark Sleeeb0d0242007-01-25 07:58:55 +000035 src/generate/t_generator.cc \
Bryan Duxburyc412a2f2010-08-04 18:51:57 +000036 src/generate/t_generator_registry.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000037 src/globals.h \
38 src/main.h \
David Reiss204420f2008-01-11 20:59:03 +000039 src/platform.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000040 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 Reiss9e7ba8c2010-10-05 16:39:27 +000059 src/parse/parse.cc \
Mark Sleeefd37f12007-11-20 05:13:09 +000060 src/generate/t_generator.h \
David Reissbba69282009-02-17 20:28:28 +000061 src/generate/t_oop_generator.h
iproctor9a41a0c2007-07-16 21:59:24 +000062
David Reiss22585732008-02-27 01:55:33 +000063if THRIFT_GEN_cpp
64thrift_SOURCES += src/generate/t_cpp_generator.cc
65endif
David Reisse8a87de2008-02-27 02:39:25 +000066if THRIFT_GEN_java
67thrift_SOURCES += src/generate/t_java_generator.cc
68endif
Bryan Duxbury321eb7a2010-04-22 21:17:39 +000069if THRIFT_GEN_as3
70thrift_SOURCES += src/generate/t_as3_generator.cc
71endif
David Reissce4f4f02008-03-27 21:41:31 +000072if THRIFT_GEN_csharp
73thrift_SOURCES += src/generate/t_csharp_generator.cc
74endif
David Reissbfd26dc2008-03-27 21:41:49 +000075if THRIFT_GEN_py
76thrift_SOURCES += src/generate/t_py_generator.cc
77endif
David Reissae253582008-03-27 21:42:11 +000078if THRIFT_GEN_rb
79thrift_SOURCES += src/generate/t_rb_generator.cc
80endif
David Reissfdc21aa2008-03-27 21:42:34 +000081if THRIFT_GEN_perl
82thrift_SOURCES += src/generate/t_perl_generator.cc
83endif
David Reiss32272d92009-02-17 20:28:30 +000084if THRIFT_GEN_php
85thrift_SOURCES += src/generate/t_php_generator.cc
86endif
David Reissf3b0db32009-02-17 20:28:01 +000087if THRIFT_GEN_erl
88thrift_SOURCES += src/generate/t_erl_generator.cc
89endif
David Reiss4b349aa2008-03-27 21:41:02 +000090if THRIFT_GEN_cocoa
91thrift_SOURCES += src/generate/t_cocoa_generator.cc
92endif
David Reissb3ac8a62008-03-27 21:40:42 +000093if THRIFT_GEN_st
94thrift_SOURCES += src/generate/t_st_generator.cc
95endif
David Reiss3d671b52008-03-27 21:40:11 +000096if THRIFT_GEN_ocaml
97thrift_SOURCES += src/generate/t_ocaml_generator.cc
98endif
David Reiss22812f82008-03-27 21:40:26 +000099if THRIFT_GEN_hs
100thrift_SOURCES += src/generate/t_hs_generator.cc
101endif
David Reiss782cb672009-02-17 20:28:13 +0000102if THRIFT_GEN_xsd
103thrift_SOURCES += src/generate/t_xsd_generator.cc
104endif
David Reissdc0aada2008-10-21 00:09:23 +0000105if THRIFT_GEN_html
106thrift_SOURCES += src/generate/t_html_generator.cc
107endif
T Jake Luciani322caa22010-02-15 03:24:55 +0000108if THRIFT_GEN_js
109thrift_SOURCES += src/generate/t_js_generator.cc
110endif
Bryan Duxbury1237dcb2010-09-20 17:49:09 +0000111if THRIFT_GEN_javame
112thrift_SOURCES += src/generate/t_javame_generator.cc
113endif
David Reiss22585732008-02-27 01:55:33 +0000114
David Reissef5e81b2010-08-31 16:51:28 +0000115thrift_CXXFLAGS = -Wall -I$(srcdir)/src
116thrift_LDFLAGS = -Wall
Mark Sleeeb0d0242007-01-25 07:58:55 +0000117
118thrift_LDADD = @LEXLIB@
119
David Reiss832b2622007-12-28 18:25:33 +0000120EXTRA_DIST = README
David Reissb72d19f2007-09-18 19:46:00 +0000121
Mark Sleeeb0d0242007-01-25 07:58:55 +0000122clean-local:
David Reiss466b3fa2008-11-20 21:24:32 +0000123 $(RM) thriftl.cc thrifty.cc thrifty.h version.h
David Reissdd08f6d2008-06-30 20:24:24 +0000124
125src/main.cc: version.h