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
|
|
|
|
|
|
|
|
thrift_OBJDIR = obj
|
|
|
|
|
|
|
|
thrift_SOURCES = src/thrifty.yy \
|
|
|
|
src/thriftl.ll \
|
|
|
|
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 \
|
|
|
|
src/generate/t_php_generator.cc \
|
2007-05-16 02:18:07 +00:00
|
|
|
src/generate/t_xsd_generator.cc \
|
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 \
|
|
|
|
src/generate/t_generator.h \
|
|
|
|
src/generate/t_oop_generator.h \
|
2009-02-17 20:28:10 +00:00
|
|
|
src/generate/t_php_generator.h
|
2007-07-16 21:59:24 +00:00
|
|
|
|
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
|
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: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
|
2008-10-21 00:09:23 +00:00
|
|
|
if THRIFT_GEN_html
|
|
|
|
thrift_SOURCES += src/generate/t_html_generator.cc
|
|
|
|
endif
|
2008-02-27 01:55:33 +00:00
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
thrift_CXXFLAGS = -Wall -I$(srcdir)/src $(BOOST_CPPFLAGS)
|
2007-07-06 02:45:25 +00:00
|
|
|
thrift_LDFLAGS = -Wall $(BOOST_LDFLAGS)
|
2007-01-25 07:58:55 +00:00
|
|
|
|
|
|
|
thrift_LDADD = @LEXLIB@
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# Adding this to BUILT_SOURCES will cause version.h to be
|
|
|
|
# regenerated on every "make all" or "make check", which is
|
|
|
|
# necessary because it changes whenever we "svn up" or similar.
|
|
|
|
# Ideally, we would like this to be regenerated whenever the
|
|
|
|
# compiler is rebuilt, but every way we could think of to do
|
|
|
|
# that caused unnecessary rebuilds of the compiler.
|
|
|
|
BUILT_SOURCES += regen_version_h
|
|
|
|
|
|
|
|
THRIFT_VERSION=$(shell /bin/sh $(top_srcdir)/print_version.sh -v)
|
|
|
|
THRIFT_REVISION=$(shell /bin/sh $(top_srcdir)/print_version.sh -r)
|
|
|
|
|
|
|
|
regen_version_h:
|
2008-06-30 21:55:52 +00:00
|
|
|
@printf "Regenerating version.h... "
|
2008-06-30 20:24:24 +00:00
|
|
|
@TMPFILE=`mktemp ./version_h.tmp_XXXXXX` ; \
|
|
|
|
echo "// AUTOGENERATED, DO NOT EDIT" > $$TMPFILE ; \
|
2008-06-30 22:27:29 +00:00
|
|
|
echo '#define THRIFT_VERSION "$(THRIFT_VERSION)"' >> $$TMPFILE ; \
|
|
|
|
echo '#define THRIFT_REVISION "$(THRIFT_REVISION)"' >> $$TMPFILE ; \
|
2008-06-30 20:24:24 +00:00
|
|
|
if cmp $$TMPFILE version.h >/dev/null ; \
|
|
|
|
then \
|
|
|
|
rm -f $$TMPFILE ; \
|
|
|
|
echo "No changes." ; \
|
|
|
|
else \
|
|
|
|
mv $$TMPFILE version.h ; \
|
|
|
|
echo "Updated." ; \
|
|
|
|
fi
|