1include Makefile.sources 2include $(top_srcdir)/src/gallium/Automake.inc 3 4AM_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 12MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D) 13ir3/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 17noinst_LTLIBRARIES = libfreedreno.la 18 19libfreedreno_la_SOURCES = \ 20 $(C_SOURCES) \ 21 $(a2xx_SOURCES) \ 22 $(a3xx_SOURCES) \ 23 $(a4xx_SOURCES) \ 24 $(a5xx_SOURCES) \ 25 $(ir3_SOURCES) \ 26 $(ir3_GENERATED_FILES) 27 28BUILT_SOURCES := $(ir3_GENERATED_FILES) 29CLEANFILES := $(BUILT_SOURCES) 30EXTRA_DIST = ir3/ir3_nir_trig.py 31 32noinst_PROGRAMS = ir3_compiler 33 34# XXX: Required due to the C++ sources in libnir 35nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp 36ir3_compiler_SOURCES = \ 37 ir3/ir3_cmdline.c 38 39ir3_compiler_LDADD = \ 40 libfreedreno.la \ 41 $(top_builddir)/src/gallium/auxiliary/libgallium.la \ 42 $(top_builddir)/src/compiler/nir/libnir.la \ 43 $(top_builddir)/src/compiler/glsl/libstandalone.la \ 44 $(top_builddir)/src/util/libmesautil.la \ 45 $(top_builddir)/src/mesa/libmesagallium.la \ 46 $(GALLIUM_COMMON_LIB_DEPS) \ 47 $(FREEDRENO_LIBS) 48 49EXTRA_DIST += meson.build 50