freedreno: enable a306
[mesa.git] / src / gallium / drivers / freedreno / Makefile.am
index 9bb532dc18197832aaba86f554cf363c621da5e4..4b2629f77bdeae0387efda6ae25b385df30aa07f 100644 (file)
@@ -1,32 +1,35 @@
-include $(top_srcdir)/src/gallium/Automake.inc
+AUTOMAKE_OPTIONS = subdir-objects
 
-noinst_LTLIBRARIES = libfreedreno.la
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        -Wno-packed-bitfield-compat \
-       -I$(top_srcdir)/src/gallium/drivers \
-       $(GALLIUM_CFLAGS) \
-       $(FREEDRENO_CFLAGS) \
-       $(PIC_FLAGS) \
-       $(VISIBILITY_CFLAGS)
+       -I$(top_srcdir)/src/gallium/drivers/freedreno/ir3 \
+       -I$(top_builddir)/src/glsl/nir \
+       $(GALLIUM_DRIVER_CFLAGS) \
+       $(FREEDRENO_CFLAGS)
+
+noinst_LTLIBRARIES = libfreedreno.la
 
 libfreedreno_la_SOURCES = \
-       freedreno_util.c \
-       freedreno_fence.c \
-       freedreno_resource.c \
-       freedreno_surface.c \
-       freedreno_vbo.c \
-       freedreno_blend.c \
-       freedreno_rasterizer.c \
-       freedreno_zsa.c \
-       freedreno_state.c \
-       freedreno_clear.c \
-       freedreno_program.c \
-       freedreno_texture.c \
-       freedreno_context.c \
-       freedreno_screen.c \
-       freedreno_gmem.c \
-       freedreno_compiler.c \
-       ir.c \
-       disasm.c
+       $(C_SOURCES) \
+       $(a2xx_SOURCES) \
+       $(a3xx_SOURCES) \
+       $(a4xx_SOURCES) \
+       $(ir3_SOURCES)
+
+noinst_PROGRAMS = ir3_compiler
+
+ir3_compiler_SOURCES = \
+       ir3/ir3_cmdline.c
 
+ir3_compiler_LDADD = \
+       libfreedreno.la \
+       ../../auxiliary/libgallium.la \
+       $(top_builddir)/src/glsl/libnir.la \
+       $(top_builddir)/src/libglsl_util.la \
+       -lstdc++ \
+       $(top_builddir)/src/util/libmesautil.la \
+       $(GALLIUM_COMMON_LIB_DEPS) \
+       $(FREEDRENO_LIBS)