blob: 8a8f394aee8e7f89557c9d1a651bb7479f0b893c [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
Jake Farrell69935692011-08-29 18:22:11 +000025LIBS =
David Reissdd08f6d2008-06-30 20:24:24 +000026BUILT_SOURCES =
Mark Sleeeb0d0242007-01-25 07:58:55 +000027
28bin_PROGRAMS = thrift
29
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000030noinst_LIBRARIES = libparse.a
31
Mark Sleeeb0d0242007-01-25 07:58:55 +000032thrift_OBJDIR = obj
33
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000034thrift_SOURCES = src/main.cc \
David Reiss8df6c822008-05-04 03:00:22 +000035 src/md5.c \
Mark Sleeeb0d0242007-01-25 07:58:55 +000036 src/generate/t_generator.cc \
Bryan Duxburyc412a2f2010-08-04 18:51:57 +000037 src/generate/t_generator_registry.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000038 src/globals.h \
39 src/main.h \
David Reiss204420f2008-01-11 20:59:03 +000040 src/platform.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000041 src/md5.h \
42 src/parse/t_doc.h \
43 src/parse/t_type.h \
44 src/parse/t_base_type.h \
45 src/parse/t_enum.h \
46 src/parse/t_enum_value.h \
47 src/parse/t_typedef.h \
48 src/parse/t_container.h \
49 src/parse/t_list.h \
50 src/parse/t_set.h \
51 src/parse/t_map.h \
52 src/parse/t_struct.h \
53 src/parse/t_field.h \
54 src/parse/t_service.h \
55 src/parse/t_function.h \
56 src/parse/t_program.h \
57 src/parse/t_scope.h \
58 src/parse/t_const.h \
59 src/parse/t_const_value.h \
David Reiss9e7ba8c2010-10-05 16:39:27 +000060 src/parse/parse.cc \
Mark Sleeefd37f12007-11-20 05:13:09 +000061 src/generate/t_generator.h \
Jake Farrelle0c53162011-11-16 12:58:36 +000062 src/generate/t_oop_generator.h \
Jake Farrell7c7a5e02012-10-11 00:29:11 +000063 src/generate/t_html_generator.h \
Jake Farrelle0c53162011-11-16 12:58:36 +000064 src/windows/config.h \
65 src/windows/version.h
iproctor9a41a0c2007-07-16 21:59:24 +000066
Jake Farrelldec8c542011-09-21 00:15:27 +000067# Specific client generator source
68thrift_SOURCES += src/generate/t_c_glib_generator.cc \
69 src/generate/t_cpp_generator.cc \
70 src/generate/t_java_generator.cc \
71 src/generate/t_as3_generator.cc \
72 src/generate/t_csharp_generator.cc \
73 src/generate/t_py_generator.cc \
74 src/generate/t_rb_generator.cc \
75 src/generate/t_perl_generator.cc \
76 src/generate/t_php_generator.cc \
77 src/generate/t_erl_generator.cc \
78 src/generate/t_cocoa_generator.cc \
79 src/generate/t_st_generator.cc \
80 src/generate/t_ocaml_generator.cc \
81 src/generate/t_hs_generator.cc \
82 src/generate/t_xsd_generator.cc \
83 src/generate/t_html_generator.cc \
84 src/generate/t_js_generator.cc \
85 src/generate/t_javame_generator.cc \
Jake Farrell7ae13e12011-10-18 14:35:26 +000086 src/generate/t_delphi_generator.cc \
Jake Farrellb95b0ff2012-03-22 21:49:10 +000087 src/generate/t_go_generator.cc \
88 src/generate/t_d_generator.cc
David Reiss22585732008-02-27 01:55:33 +000089
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000090thrift_CPPFLAGS = -I$(srcdir)/src
Roger Meier6e969652011-12-13 00:36:01 +000091thrift_CXXFLAGS = -Wall
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000092thrift_LDADD = @LEXLIB@ libparse.a
Mark Sleeeb0d0242007-01-25 07:58:55 +000093
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000094libparse_a_CPPFLAGS = -I$(srcdir)/src
95libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused
96
97libparse_a_SOURCES = src/thrifty.yy \
98 src/thriftl.ll
Mark Sleeeb0d0242007-01-25 07:58:55 +000099
Jake Farrelle0c53162011-11-16 12:58:36 +0000100WINDOWS_DIST = \
101 compiler.sln \
102 compiler.vcxproj \
103 compiler.vcxproj.filters
104
105EXTRA_DIST = \
106 $(WINDOWS_DIST)
David Reissb72d19f2007-09-18 19:46:00 +0000107
Mark Sleeeb0d0242007-01-25 07:58:55 +0000108clean-local:
Chris Piro92e38602013-03-07 11:24:51 -0500109 $(RM) thriftl.cc thrifty.cc thrifty.h thrifty.hh version.h windows/version.h
110 echo '#include "thrifty.h"' > compiler/cpp/thrifty.hh
David Reissdd08f6d2008-06-30 20:24:24 +0000111
112src/main.cc: version.h