+BUILDDIR = $(builddir)/
+include Makefile.sources
+
+BUILT_SOURCES = \
+ main/get_hash.h \
+ $(BUILDDIR)main/git_sha1.h \
+ $(BUILDDIR)program/program_parse.tab.c \
+ $(BUILDDIR)program/lex.yy.c
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(BUILDDIR)program/program_parse.tab.h \
+ $(BUILDDIR)main/git_sha1.h.tmp
+
+GET_HASH_GEN = main/get_hash_generator.py
+
+main/get_hash.h: $(GLAPI)/gl_and_es_API.xml main/get_hash_params.py \
+ $(GET_HASH_GEN) Makefile
+ $(AM_V_GEN)set -e; \
+ $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/$(GET_HASH_GEN) \
+ -f $< > $@.tmp; \
+ mv $@.tmp $@;
+
+noinst_LTLIBRARIES = $(ARCH_LIBS)
+if NEED_LIBMESA
+noinst_LTLIBRARIES += libmesa.la
+else
+check_LTLIBRARIES = libmesa.la
+endif
+if HAVE_GALLIUM
+noinst_LTLIBRARIES += libmesagallium.la
+endif
+
+AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
+AM_CFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CFLAGS)
+AM_CXXFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CXXFLAGS)
+
+ARCH_LIBS =
+
+if SSE41_SUPPORTED
+ARCH_LIBS += libmesa_sse41.la
+endif