Commit 595bd01e authored by Johannes Obermayr's avatar Johannes Obermayr Committed by Emil Velikov

freedreno: compact a2xx and a3xx makefiles into parent ones

Nearly everything within the three Makefile.am's is identical.
Let's simplify things a little.

v2: Rebase and rewrite the commit message (Emil Velikov)
Signed-off-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
parent c5062726
...@@ -1975,8 +1975,6 @@ AC_CONFIG_FILES([Makefile ...@@ -1975,8 +1975,6 @@ AC_CONFIG_FILES([Makefile
src/gallium/auxiliary/pipe-loader/Makefile src/gallium/auxiliary/pipe-loader/Makefile
src/gallium/drivers/Makefile src/gallium/drivers/Makefile
src/gallium/drivers/freedreno/Makefile src/gallium/drivers/freedreno/Makefile
src/gallium/drivers/freedreno/a2xx/Makefile
src/gallium/drivers/freedreno/a3xx/Makefile
src/gallium/drivers/galahad/Makefile src/gallium/drivers/galahad/Makefile
src/gallium/drivers/i915/Makefile src/gallium/drivers/i915/Makefile
src/gallium/drivers/identity/Makefile src/gallium/drivers/identity/Makefile
......
...@@ -12,11 +12,7 @@ AM_CFLAGS = \ ...@@ -12,11 +12,7 @@ AM_CFLAGS = \
$(FREEDRENO_CFLAGS) \ $(FREEDRENO_CFLAGS) \
$(VISIBILITY_CFLAGS) $(VISIBILITY_CFLAGS)
SUBDIRS = a2xx a3xx libfreedreno_la_SOURCES = \
$(C_SOURCES) \
libfreedreno_la_SOURCES = $(C_SOURCES) $(a2xx_SOURCES) \
$(a3xx_SOURCES)
libfreedreno_la_LIBADD = \
a3xx/libfd3xx.la \
a2xx/libfd2xx.la
...@@ -9,3 +9,35 @@ C_SOURCES := \ ...@@ -9,3 +9,35 @@ C_SOURCES := \
freedreno_context.c \ freedreno_context.c \
freedreno_screen.c \ freedreno_screen.c \
freedreno_gmem.c freedreno_gmem.c
a2xx_SOURCES := \
a2xx/fd2_blend.c \
a2xx/fd2_compiler.c \
a2xx/fd2_context.c \
a2xx/fd2_draw.c \
a2xx/fd2_emit.c \
a2xx/fd2_gmem.c \
a2xx/fd2_program.c \
a2xx/fd2_rasterizer.c \
a2xx/fd2_screen.c \
a2xx/fd2_texture.c \
a2xx/fd2_util.c \
a2xx/fd2_zsa.c \
a2xx/disasm-a2xx.c \
a2xx/ir-a2xx.c
a3xx_SOURCES := \
a3xx/fd3_blend.c \
a3xx/fd3_compiler.c \
a3xx/fd3_context.c \
a3xx/fd3_draw.c \
a3xx/fd3_emit.c \
a3xx/fd3_gmem.c \
a3xx/fd3_program.c \
a3xx/fd3_rasterizer.c \
a3xx/fd3_screen.c \
a3xx/fd3_texture.c \
a3xx/fd3_util.c \
a3xx/fd3_zsa.c \
a3xx/disasm-a3xx.c \
a3xx/ir-a3xx.c
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
noinst_LTLIBRARIES = libfd2xx.la
AM_CFLAGS = \
-Wno-packed-bitfield-compat \
-I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/gallium/drivers/freedreno \
$(GALLIUM_CFLAGS) \
$(FREEDRENO_CFLAGS) \
$(VISIBILITY_CFLAGS)
libfd2xx_la_SOURCES = $(C_SOURCES)
C_SOURCES := \
fd2_blend.c \
fd2_compiler.c \
fd2_context.c \
fd2_draw.c \
fd2_emit.c \
fd2_gmem.c \
fd2_program.c \
fd2_rasterizer.c \
fd2_screen.c \
fd2_texture.c \
fd2_util.c \
fd2_zsa.c \
disasm-a2xx.c \
ir-a2xx.c
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
noinst_LTLIBRARIES = libfd3xx.la
AM_CFLAGS = \
-Wno-packed-bitfield-compat \
-I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/gallium/drivers/freedreno \
$(GALLIUM_CFLAGS) \
$(FREEDRENO_CFLAGS) \
$(VISIBILITY_CFLAGS)
libfd3xx_la_SOURCES = $(C_SOURCES)
C_SOURCES := \
fd3_blend.c \
fd3_compiler.c \
fd3_context.c \
fd3_draw.c \
fd3_emit.c \
fd3_gmem.c \
fd3_program.c \
fd3_rasterizer.c \
fd3_screen.c \
fd3_texture.c \
fd3_util.c \
fd3_zsa.c \
disasm-a3xx.c \
ir-a3xx.c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment