freedreno/a3xx+a4xx: fix clip-plane lowering state
[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 $(FREEDRENO_CFLAGS)
11
12 ir3/ir3_nir_trig.c: ir3/ir3_nir_trig.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
13 $(MKDIR_GEN)
14 $(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3_nir_trig.py > $@ || ($(RM) $@; false)
15
16 noinst_LTLIBRARIES = libfreedreno.la
17
18 libfreedreno_la_SOURCES = \
19 $(C_SOURCES) \
20 $(a2xx_SOURCES) \
21 $(a3xx_SOURCES) \
22 $(a4xx_SOURCES) \
23 $(ir3_SOURCES) \
24 $(ir3_GENERATED_FILES)
25
26 BUILT_SOURCES := $(ir3_GENERATED_FILES)
27 CLEANFILES := $(BUILT_SOURCES)
28 EXTRA_DIST = ir3/ir3_nir_trig.py
29
30 noinst_PROGRAMS = ir3_compiler
31
32 # XXX: Required due to the C++ sources in libnir
33 nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp
34 ir3_compiler_SOURCES = \
35 ir3/ir3_cmdline.c
36
37 ir3_compiler_LDADD = \
38 libfreedreno.la \
39 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
40 $(top_builddir)/src/compiler/nir/libnir.la \
41 $(top_builddir)/src/compiler/glsl/libstandalone.la \
42 $(top_builddir)/src/util/libmesautil.la \
43 $(top_builddir)/src/mesa/libmesagallium.la \
44 $(GALLIUM_COMMON_LIB_DEPS) \
45 $(FREEDRENO_LIBS)