Home | History | Annotate | Download | only in freedreno
      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) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3_nir_trig.py > $@ || ($(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 	$(ir3_SOURCES) \
     26 	$(ir3_GENERATED_FILES)
     27 
     28 BUILT_SOURCES := $(ir3_GENERATED_FILES)
     29 CLEANFILES := $(BUILT_SOURCES)
     30 EXTRA_DIST = ir3/ir3_nir_trig.py
     31 
     32 noinst_PROGRAMS = ir3_compiler
     33 
     34 # XXX: Required due to the C++ sources in libnir
     35 nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp
     36 ir3_compiler_SOURCES = \
     37 	ir3/ir3_cmdline.c
     38 
     39 ir3_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