r600/eg: distribute egd_tables.py in the dist file
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
1 include Makefile.sources
2 include $(top_srcdir)/src/gallium/Automake.inc
3
4 egd_tables.h: $(srcdir)/egd_tables.py $(srcdir)/evergreend.h
5 $(AM_V_at)$(MKDIR_P) $(@D)
6 $(AM_V_GEN) $(PYTHON2) $(srcdir)/egd_tables.py $(srcdir)/evergreend.h > $@
7
8 BUILT_SOURCES = $(R600_GENERATED_FILES)
9 AM_CFLAGS = \
10 $(GALLIUM_DRIVER_CFLAGS) \
11 $(RADEON_CFLAGS) \
12 -I$(top_srcdir)/src/amd/common
13
14 AM_CXXFLAGS = \
15 $(GALLIUM_DRIVER_CXXFLAGS) \
16 $(RADEON_CFLAGS) \
17 -I$(top_srcdir)/src/amd/common
18
19 noinst_LTLIBRARIES = libr600.la
20
21 libr600_la_SOURCES = \
22 $(C_SOURCES) \
23 $(CXX_SOURCES)
24
25 if HAVE_GALLIUM_LLVM
26
27 AM_CFLAGS += \
28 $(LLVM_CFLAGS) \
29 -I$(top_srcdir)/src/gallium/drivers/radeon/
30
31 endif
32
33 if HAVE_GALLIUM_COMPUTE
34 AM_CFLAGS += \
35 -DHAVE_OPENCL
36 endif
37
38 CLEANFILES = \
39 egd_tables.h
40
41 EXTRA_DIST = \
42 egd_tables.py \
43 sb/notes.markdown \
44 sb/sb_bc_fmt_def.inc