2009-03-30 21:35:00 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
2009-12-07 00:42:38 +00:00
|
|
|
#
|
|
|
|
# Contains some contributions under the Thrift Software License.
|
|
|
|
# Please see doc/old-thrift-license.txt in the Thrift distribution for
|
|
|
|
# details.
|
2009-03-30 21:35:00 +00:00
|
|
|
|
2007-01-25 07:58:55 +00:00
|
|
|
AM_YFLAGS = -d
|
2008-06-30 20:24:24 +00:00
|
|
|
BUILT_SOURCES =
|
2007-01-25 07:58:55 +00:00
|
|
|
|
|
|
|
bin_PROGRAMS = thrift
|
|
|
|
|
2010-11-24 21:58:05 +00:00
|
|
|
noinst_LIBRARIES = libparse.a
|
|
|
|
|
2007-01-25 07:58:55 +00:00
|
|
|
thrift_OBJDIR = obj
|
|
|
|
|
2010-11-24 21:58:05 +00:00
|
|
|
thrift_SOURCES = src/main.cc \
|
2008-05-04 03:00:22 +00:00
|
|
|
src/md5.c \
|
2007-01-25 07:58:55 +00:00
|
|
|
src/generate/t_generator.cc \
|
2010-08-04 18:51:57 +00:00
|
|
|
src/generate/t_generator_registry.h \
|
2007-11-20 05:13:09 +00:00
|
|
|
src/globals.h \
|
|
|
|
src/main.h \
|
2008-01-11 20:59:03 +00:00
|
|
|
src/platform.h \
|
2007-11-20 05:13:09 +00:00
|
|
|
src/md5.h \
|
|
|
|
src/parse/t_doc.h \
|
|
|
|
src/parse/t_type.h \
|
|
|
|
src/parse/t_base_type.h \
|
|
|
|
src/parse/t_enum.h \
|
|
|
|
src/parse/t_enum_value.h \
|
|
|
|
src/parse/t_typedef.h \
|
|
|
|
src/parse/t_container.h \
|
|
|
|
src/parse/t_list.h \
|
|
|
|
src/parse/t_set.h \
|
|
|
|
src/parse/t_map.h \
|
|
|
|
src/parse/t_struct.h \
|
|
|
|
src/parse/t_field.h \
|
|
|
|
src/parse/t_service.h \
|
|
|
|
src/parse/t_function.h \
|
|
|
|
src/parse/t_program.h \
|
|
|
|
src/parse/t_scope.h \
|
|
|
|
src/parse/t_const.h \
|
|
|
|
src/parse/t_const_value.h \
|
2010-10-05 16:39:27 +00:00
|
|
|
src/parse/parse.cc \
|
2007-11-20 05:13:09 +00:00
|
|
|
src/generate/t_generator.h \
|
2009-02-17 20:28:28 +00:00
|
|
|
src/generate/t_oop_generator.h
|
2007-07-16 21:59:24 +00:00
|
|
|
|
2010-10-27 12:30:11 +00:00
|
|
|
if THRIFT_GEN_c_glib
|
|
|
|
thrift_SOURCES += src/generate/t_c_glib_generator.cc
|
|
|
|
endif
|
2008-02-27 01:55:33 +00:00
|
|
|
if THRIFT_GEN_cpp
|
|
|
|
thrift_SOURCES += src/generate/t_cpp_generator.cc
|
|
|
|
endif
|
2008-02-27 02:39:25 +00:00
|
|
|
if THRIFT_GEN_java
|
|
|
|
thrift_SOURCES += src/generate/t_java_generator.cc
|
|
|
|
endif
|
2010-04-22 21:17:39 +00:00
|
|
|
if THRIFT_GEN_as3
|
|
|
|
thrift_SOURCES += src/generate/t_as3_generator.cc
|
|
|
|
endif
|
2008-03-27 21:41:31 +00:00
|
|
|
if THRIFT_GEN_csharp
|
|
|
|
thrift_SOURCES += src/generate/t_csharp_generator.cc
|
|
|
|
endif
|
2008-03-27 21:41:49 +00:00
|
|
|
if THRIFT_GEN_py
|
|
|
|
thrift_SOURCES += src/generate/t_py_generator.cc
|
|
|
|
endif
|
2008-03-27 21:42:11 +00:00
|
|
|
if THRIFT_GEN_rb
|
|
|
|
thrift_SOURCES += src/generate/t_rb_generator.cc
|
|
|
|
endif
|
2008-03-27 21:42:34 +00:00
|
|
|
if THRIFT_GEN_perl
|
|
|
|
thrift_SOURCES += src/generate/t_perl_generator.cc
|
|
|
|
endif
|
2009-02-17 20:28:30 +00:00
|
|
|
if THRIFT_GEN_php
|
|
|
|
thrift_SOURCES += src/generate/t_php_generator.cc
|
|
|
|
endif
|
2009-02-17 20:28:01 +00:00
|
|
|
if THRIFT_GEN_erl
|
|
|
|
thrift_SOURCES += src/generate/t_erl_generator.cc
|
|
|
|
endif
|
2008-03-27 21:41:02 +00:00
|
|
|
if THRIFT_GEN_cocoa
|
|
|
|
thrift_SOURCES += src/generate/t_cocoa_generator.cc
|
|
|
|
endif
|
2008-03-27 21:40:42 +00:00
|
|
|
if THRIFT_GEN_st
|
|
|
|
thrift_SOURCES += src/generate/t_st_generator.cc
|
|
|
|
endif
|
2008-03-27 21:40:11 +00:00
|
|
|
if THRIFT_GEN_ocaml
|
|
|
|
thrift_SOURCES += src/generate/t_ocaml_generator.cc
|
|
|
|
endif
|
2008-03-27 21:40:26 +00:00
|
|
|
if THRIFT_GEN_hs
|
|
|
|
thrift_SOURCES += src/generate/t_hs_generator.cc
|
|
|
|
endif
|
2009-02-17 20:28:13 +00:00
|
|
|
if THRIFT_GEN_xsd
|
|
|
|
thrift_SOURCES += src/generate/t_xsd_generator.cc
|
|
|
|
endif
|
2008-10-21 00:09:23 +00:00
|
|
|
if THRIFT_GEN_html
|
|
|
|
thrift_SOURCES += src/generate/t_html_generator.cc
|
|
|
|
endif
|
2010-02-15 03:24:55 +00:00
|
|
|
if THRIFT_GEN_js
|
|
|
|
thrift_SOURCES += src/generate/t_js_generator.cc
|
|
|
|
endif
|
2010-09-20 17:49:09 +00:00
|
|
|
if THRIFT_GEN_javame
|
|
|
|
thrift_SOURCES += src/generate/t_javame_generator.cc
|
|
|
|
endif
|
2011-02-20 02:39:19 +00:00
|
|
|
if THRIFT_GEN_go
|
|
|
|
thrift_SOURCES += src/generate/t_go_generator.cc
|
|
|
|
endif
|
2008-02-27 01:55:33 +00:00
|
|
|
|
2010-11-24 21:58:05 +00:00
|
|
|
thrift_CPPFLAGS = -I$(srcdir)/src
|
|
|
|
thrift_CXXFLAGS = -Wall
|
|
|
|
thrift_LDADD = @LEXLIB@ libparse.a
|
|
|
|
|
|
|
|
libparse_a_CPPFLAGS = -I$(srcdir)/src
|
|
|
|
libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused
|
2007-01-25 07:58:55 +00:00
|
|
|
|
2010-11-24 21:58:05 +00:00
|
|
|
libparse_a_SOURCES = src/thrifty.yy \
|
|
|
|
src/thriftl.ll
|
2007-01-25 07:58:55 +00:00
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
EXTRA_DIST = README
|
2007-09-18 19:46:00 +00:00
|
|
|
|
2007-01-25 07:58:55 +00:00
|
|
|
clean-local:
|
2008-11-20 21:24:32 +00:00
|
|
|
$(RM) thriftl.cc thrifty.cc thrifty.h version.h
|
2008-06-30 20:24:24 +00:00
|
|
|
|
|
|
|
src/main.cc: version.h
|