Revert "configure: allow building with python3"
[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 MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
13 ir3/ir3_nir_trig.c: ir3/ir3_nir_trig.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
14 $(MKDIR_GEN)
15 $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3_nir_trig.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false)
16
17 noinst_LTLIBRARIES = libfreedreno.la
18
19 libfreedreno_la_SOURCES = \
20 $(C_SOURCES) \
21 $(a2xx_SOURCES) \
22 $(a3xx_SOURCES) \
23 $(a4xx_SOURCES) \
24 $(a5xx_SOURCES) \
25 $(a6xx_SOURCES) \
26 $(ir3_SOURCES) \
27 $(ir3_GENERATED_FILES)
28
29 BUILT_SOURCES := $(ir3_GENERATED_FILES)
30 CLEANFILES := $(BUILT_SOURCES)
31 EXTRA_DIST = ir3/ir3_nir_trig.py
32
33 noinst_PROGRAMS = ir3_compiler
34
35 # XXX: Required due to the C++ sources in libnir
36 nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp
37 ir3_compiler_SOURCES = \
38 ir3/ir3_cmdline.c
39
40 ir3_compiler_LDADD = \
41 libfreedreno.la \
42 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
43 $(top_builddir)/src/compiler/nir/libnir.la \
44 $(top_builddir)/src/compiler/glsl/libstandalone.la \
45 $(top_builddir)/src/util/libmesautil.la \
46 $(top_builddir)/src/mesa/libmesagallium.la \
47 $(GALLIUM_COMMON_LIB_DEPS) \
48 $(FREEDRENO_LIBS)
49
50 EXTRA_DIST += meson.build