blob: bc2c5cbacea935498bc0fb71f4889d4454e110d6 [file] [log] [blame]
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +09001#
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#
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.
23
24AUTOMAKE_OPTIONS = subdir-objects
25
26AM_YFLAGS = -d
27
dtmuller052abc32016-07-26 11:58:28 +020028BUILT_SOURCES = thrift/thrifty.cc
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090029
dtmuller052abc32016-07-26 11:58:28 +020030noinst_LIBRARIES = thrift/libparse.a
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090031
dtmuller052abc32016-07-26 11:58:28 +020032thrift_libparse_a_CPPFLAGS = -I$(srcdir)
33thrift_libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090034
dtmuller052abc32016-07-26 11:58:28 +020035thrift_libparse_a_SOURCES = thrift/thrifty.yy \
36 thrift/thriftl.ll
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090037
38clean-local:
dtmuller052abc32016-07-26 11:58:28 +020039 $(RM) thrift/thriftl.cc thrift/thrifty.cc thrift/thrifty.h thrift/thrifty.hh
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090040
41if WITH_PLUGIN
dtmuller052abc32016-07-26 11:58:28 +020042noinst_PROGRAMS = thrift/thrift-bootstrap
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090043
dtmuller052abc32016-07-26 11:58:28 +020044thrift_thrift_bootstrap_SOURCES = \
45 thrift/common.h \
46 thrift/common.cc \
47 thrift/audit/t_audit.h \
48 thrift/audit/t_audit.cpp \
49 thrift/generate/t_generator.cc \
50 thrift/generate/t_generator_registry.h \
51 thrift/globals.h \
52 thrift/platform.h \
53 thrift/logging.h \
54 thrift/parse/t_doc.h \
55 thrift/parse/t_type.h \
56 thrift/parse/t_base_type.h \
57 thrift/parse/t_enum.h \
58 thrift/parse/t_enum_value.h \
59 thrift/parse/t_typedef.h \
60 thrift/parse/t_typedef.cc \
61 thrift/parse/t_container.h \
62 thrift/parse/t_list.h \
63 thrift/parse/t_set.h \
64 thrift/parse/t_map.h \
65 thrift/parse/t_struct.h \
66 thrift/parse/t_field.h \
67 thrift/parse/t_service.h \
68 thrift/parse/t_function.h \
69 thrift/parse/t_program.h \
70 thrift/parse/t_scope.h \
71 thrift/parse/t_const.h \
72 thrift/parse/t_const_value.h \
73 thrift/parse/parse.cc \
74 thrift/generate/t_generator.h \
75 thrift/generate/t_oop_generator.h \
76 thrift/generate/t_html_generator.h \
77 thrift/windows/config.h \
Nobuaki Sukegawad8c6a842016-10-02 14:21:55 +090078 thrift/version.h \
dtmuller052abc32016-07-26 11:58:28 +020079 thrift/generate/t_cpp_generator.cc \
80 thrift/main.h \
81 thrift/main.cc
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090082
83main.cc: version.h
84
dtmuller052abc32016-07-26 11:58:28 +020085thrift_thrift_bootstrap_CXXFLAGS = -Wall -Wextra -pedantic
86thrift_thrift_bootstrap_LDADD = @LEXLIB@ thrift/libparse.a
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090087endif