blob: 33d61a731a3f8bbc29f0ebbc3b3e542020054630 [file] [log] [blame]
Mark Sleeeb0d0242007-01-25 07:58:55 +00001AM_YFLAGS = -d
2
3bin_PROGRAMS = thrift
4
5thrift_OBJDIR = obj
6
7thrift_SOURCES = src/thrifty.yy \
8 src/thriftl.ll \
9 src/main.cc \
David Reiss8df6c822008-05-04 03:00:22 +000010 src/md5.c \
Mark Sleeeb0d0242007-01-25 07:58:55 +000011 src/generate/t_generator.cc \
Mark Sleeeb0d0242007-01-25 07:58:55 +000012 src/generate/t_php_generator.cc \
Mark Slee2c44d202007-05-16 02:18:07 +000013 src/generate/t_xsd_generator.cc \
iproctorff8eb922007-07-25 19:06:13 +000014 src/generate/t_erl_generator.cc \
David Reiss76f0d112008-06-10 22:57:35 +000015 src/generate/t_alterl_generator.cc \
Mark Sleeefd37f12007-11-20 05:13:09 +000016 src/globals.h \
17 src/main.h \
David Reiss204420f2008-01-11 20:59:03 +000018 src/platform.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000019 src/md5.h \
20 src/parse/t_doc.h \
21 src/parse/t_type.h \
22 src/parse/t_base_type.h \
23 src/parse/t_enum.h \
24 src/parse/t_enum_value.h \
25 src/parse/t_typedef.h \
26 src/parse/t_container.h \
27 src/parse/t_list.h \
28 src/parse/t_set.h \
29 src/parse/t_map.h \
30 src/parse/t_struct.h \
31 src/parse/t_field.h \
32 src/parse/t_service.h \
33 src/parse/t_function.h \
34 src/parse/t_program.h \
35 src/parse/t_scope.h \
36 src/parse/t_const.h \
37 src/parse/t_const_value.h \
38 src/generate/t_generator.h \
39 src/generate/t_oop_generator.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000040 src/generate/t_php_generator.h \
Mark Sleeefd37f12007-11-20 05:13:09 +000041 src/generate/t_xsd_generator.h \
David Reiss76f0d112008-06-10 22:57:35 +000042 src/generate/t_erl_generator.h \
43 src/generate/t_alterl_generator.h
iproctor9a41a0c2007-07-16 21:59:24 +000044
David Reiss22585732008-02-27 01:55:33 +000045if THRIFT_GEN_cpp
46thrift_SOURCES += src/generate/t_cpp_generator.cc
47endif
David Reisse8a87de2008-02-27 02:39:25 +000048if THRIFT_GEN_java
49thrift_SOURCES += src/generate/t_java_generator.cc
50endif
David Reissce4f4f02008-03-27 21:41:31 +000051if THRIFT_GEN_csharp
52thrift_SOURCES += src/generate/t_csharp_generator.cc
53endif
David Reissbfd26dc2008-03-27 21:41:49 +000054if THRIFT_GEN_py
55thrift_SOURCES += src/generate/t_py_generator.cc
56endif
David Reissae253582008-03-27 21:42:11 +000057if THRIFT_GEN_rb
58thrift_SOURCES += src/generate/t_rb_generator.cc
59endif
David Reissfdc21aa2008-03-27 21:42:34 +000060if THRIFT_GEN_perl
61thrift_SOURCES += src/generate/t_perl_generator.cc
62endif
David Reiss4b349aa2008-03-27 21:41:02 +000063if THRIFT_GEN_cocoa
64thrift_SOURCES += src/generate/t_cocoa_generator.cc
65endif
David Reissb3ac8a62008-03-27 21:40:42 +000066if THRIFT_GEN_st
67thrift_SOURCES += src/generate/t_st_generator.cc
68endif
David Reiss3d671b52008-03-27 21:40:11 +000069if THRIFT_GEN_ocaml
70thrift_SOURCES += src/generate/t_ocaml_generator.cc
71endif
David Reiss22812f82008-03-27 21:40:26 +000072if THRIFT_GEN_hs
73thrift_SOURCES += src/generate/t_hs_generator.cc
74endif
David Reiss22585732008-02-27 01:55:33 +000075
David Reiss832b2622007-12-28 18:25:33 +000076thrift_CXXFLAGS = -Wall -I$(srcdir)/src $(BOOST_CPPFLAGS)
Mark Slee58dfb4f2007-07-06 02:45:25 +000077thrift_LDFLAGS = -Wall $(BOOST_LDFLAGS)
Mark Sleeeb0d0242007-01-25 07:58:55 +000078
79thrift_LDADD = @LEXLIB@
80
David Reiss832b2622007-12-28 18:25:33 +000081EXTRA_DIST = README
David Reissb72d19f2007-09-18 19:46:00 +000082
Mark Sleeeb0d0242007-01-25 07:58:55 +000083clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +000084 $(RM) thriftl.cc thrifty.cc thrifty.h