summaryrefslogtreecommitdiffstats
path: root/src/amd/Makefile.common.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/Makefile.common.am')
-rw-r--r--src/amd/Makefile.common.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/amd/Makefile.common.am b/src/amd/Makefile.common.am
index 1a36e48101c..1425decb90e 100644
--- a/src/amd/Makefile.common.am
+++ b/src/amd/Makefile.common.am
@@ -52,7 +52,9 @@ common_libamd_common_la_CXXFLAGS = \
noinst_LTLIBRARIES += $(COMMON_LIBS)
-common_libamd_common_la_SOURCES = $(AMD_COMPILER_FILES)
+common_libamd_common_la_SOURCES = \
+ $(AMD_COMPILER_FILES) \
+ $(AMD_GENERATED_FILES)
# nir_to_llvm requires LLVM 3.9, which is only required as a minimum when
# radv is built.
@@ -60,4 +62,8 @@ if HAVE_RADEON_VULKAN
common_libamd_common_la_SOURCES += $(AMD_NIR_FILES)
endif
+$(srcdir)/common/sid_tables.h: $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h
+ $(AM_V_GEN) $(PYTHON2) $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h > $@
+
+BUILT_SOURCES = $(AMD_GENERATED_FILES)
endif