blob: e2fae709d8255673ba9c87f7fd0239e8eb03b57f [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
28BUILT_SOURCES = thrifty.cc
29
30noinst_LIBRARIES = libparse.a
31
32libparse_a_CPPFLAGS = -I$(srcdir)
33libparse_a_CXXFLAGS = -Wall -Wno-sign-compare -Wno-unused
34
35libparse_a_SOURCES = thrifty.yy \
36 thriftl.ll
37
38clean-local:
39 $(RM) thriftl.cc thrifty.cc thrifty.h thrifty.hh
40
41if WITH_PLUGIN
42noinst_PROGRAMS = thrift-bootstrap
43
44thrift_bootstrap_SOURCES = \
45 common.h \
46 common.cc \
47 audit/t_audit.h \
48 audit/t_audit.cpp \
49 generate/t_generator.cc \
50 generate/t_generator_registry.h \
51 globals.h \
52 platform.h \
53 logging.h \
54 parse/t_doc.h \
55 parse/t_type.h \
56 parse/t_base_type.h \
57 parse/t_enum.h \
58 parse/t_enum_value.h \
59 parse/t_typedef.h \
60 parse/t_typedef.cc \
61 parse/t_container.h \
62 parse/t_list.h \
63 parse/t_set.h \
64 parse/t_map.h \
65 parse/t_struct.h \
66 parse/t_field.h \
67 parse/t_service.h \
68 parse/t_function.h \
69 parse/t_program.h \
70 parse/t_scope.h \
71 parse/t_const.h \
72 parse/t_const_value.h \
73 parse/parse.cc \
74 generate/t_generator.h \
75 generate/t_oop_generator.h \
76 generate/t_html_generator.h \
77 windows/config.h \
78 windows/version.h \
79 generate/t_cpp_generator.cc \
80 main.h \
81 main.cc
82
83main.cc: version.h
84
85thrift_bootstrap_CXXFLAGS = -Wall -Wextra -pedantic
86thrift_bootstrap_LDADD = @LEXLIB@ libparse.a
87endif