Makefile.am 1.45 KB
Newer Older
1
include Makefile.sources
2 3 4 5
include $(top_srcdir)/src/gallium/Automake.inc

AM_CFLAGS = \
	-Wno-packed-bitfield-compat \
6
	-I$(top_srcdir)/src/gallium/drivers/freedreno/ir3 \
Emil Velikov's avatar
Emil Velikov committed
7
	-I$(top_builddir)/src/compiler/nir \
Rob Clark's avatar
Rob Clark committed
8
	-I$(top_srcdir)/src/compiler/nir \
9
	$(GALLIUM_DRIVER_CFLAGS) \
10 11
	$(LIBDRM_CFLAGS) \
	$(VALGRIND_CFLAGS)
12

13
MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
Rob Clark's avatar
Rob Clark committed
14 15
ir3/ir3_nir_trig.c: ir3/ir3_nir_trig.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
	$(MKDIR_GEN)
16
	$(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3_nir_trig.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false)
Rob Clark's avatar
Rob Clark committed
17

18
noinst_LTLIBRARIES = libfreedreno.la
19

20 21
libfreedreno_la_SOURCES = \
	$(C_SOURCES) \
22
	$(drm_SOURCES) \
23
	$(a2xx_SOURCES) \
24
	$(a3xx_SOURCES) \
Rob Clark's avatar
Rob Clark committed
25
	$(a4xx_SOURCES) \
Rob Clark's avatar
Rob Clark committed
26
	$(a5xx_SOURCES) \
27
	$(a6xx_SOURCES) \
Rob Clark's avatar
Rob Clark committed
28 29 30 31 32
	$(ir3_SOURCES) \
	$(ir3_GENERATED_FILES)

BUILT_SOURCES := $(ir3_GENERATED_FILES)
CLEANFILES := $(BUILT_SOURCES)
33
EXTRA_DIST = ir3/ir3_nir_trig.py
34

35 36
noinst_PROGRAMS = ir3_compiler

Rob Clark's avatar
Rob Clark committed
37
# XXX: Required due to the C++ sources in libnir
38
nodist_EXTRA_ir3_compiler_SOURCES = dummy.cpp
39 40 41 42 43
ir3_compiler_SOURCES = \
	ir3/ir3_cmdline.c

ir3_compiler_LDADD = \
	libfreedreno.la \
44
	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
Emil Velikov's avatar
Emil Velikov committed
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 51
	$(LIBDRM_LIBS) \
	$(VALGRIND_LIBS)
52

53
EXTRA_DIST += meson.build