5690b6ec88464d3897172be2ff362f98158decb0
[mesa.git] / src / gallium / drivers / freedreno / Makefile.am
1 include Makefile.sources
2 include $(top_srcdir)/src/gallium/Automake.inc
3
4 AM_CFLAGS = \
5 -Wno-packed-bitfield-compat \
6 -I$(top_srcdir)/src/gallium/drivers/freedreno/ir3 \
7 -I$(top_builddir)/src/compiler/nir \
8 -I$(top_srcdir)/src/compiler/nir \
9 $(GALLIUM_DRIVER_CFLAGS) \
10 $(LIBDRM_CFLAGS) \
11 $(VALGRIND_CFLAGS)
12
13 MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
14 ir3/ir3_nir_trig.c: ir3/ir3_nir_trig.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
15 $(MKDIR_GEN)
16 $(AM_V_GEN) $(PYTHON) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3_nir_trig.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false)
17
18 noinst_LTLIBRARIES = libfreedreno.la
19
20 libfreedreno_la_SOURCES = \
21 $(C_SOURCES) \
22 $(drm_SOURCES) \
23 $(a2xx_SOURCES) \
24 $(a3xx_SOURCES) \
25 $(a4xx_SOURCES) \
26 $(a5xx_SOURCES) \
27 $(a6xx_SOURCES) \
28 $(ir3_SOURCES) \
29 $(ir3_GENERATED_FILES)
30
31 BUILT_SOURCES := $(ir3_GENERATED_FILES)
32 CLEANFILES := $(BUILT_SOURCES)
33 EXTRA_DIST = ir3/ir3_nir_trig.py
34
35 noinst_PROGRAMS = ir3_compiler
36
37 # XXX: Required due to the C++ sources in libnir
38 nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp
39 ir3_compiler_SOURCES = \
40 ir3/ir3_cmdline.c
41
42 ir3_compiler_LDADD = \
43 libfreedreno.la \
44 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
45 $(top_builddir)/src/compiler/nir/libnir.la \
46 $(top_builddir)/src/compiler/glsl/libstandalone.la \
47 $(top_builddir)/src/util/libmesautil.la \
48 $(top_builddir)/src/mesa/libmesagallium.la \
49 $(GALLIUM_COMMON_LIB_DEPS) \
50 $(LIBDRM_LIBS)
51
52 EXTRA_DIST += meson.build