• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/src/gallium/Automake.inc
2
3AM_CFLAGS = \
4	$(GALLIUM_TARGET_CFLAGS)
5
6omxdir = $(OMX_LIB_INSTALL_DIR)
7omx_LTLIBRARIES = libomx_mesa.la
8
9nodist_EXTRA_libomx_mesa_la_SOURCES = dummy.cpp
10libomx_mesa_la_SOURCES =
11
12libomx_mesa_la_LDFLAGS = \
13	-shared \
14	-module \
15	-no-undefined \
16	-avoid-version \
17	$(GC_SECTIONS) \
18	$(LD_NO_UNDEFINED)
19
20if HAVE_LD_VERSION_SCRIPT
21libomx_mesa_la_LDFLAGS += \
22	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx/omx.sym
23endif # HAVE_LD_VERSION_SCRIPT
24
25libomx_mesa_la_LIBADD = \
26	$(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
27	$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
28	$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
29	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
30	$(top_builddir)/src/util/libmesautil.la \
31	$(OMX_LIBS) \
32	$(VL_LIBS) \
33	$(LIBDRM_LIBS) \
34	$(GALLIUM_COMMON_LIB_DEPS)
35
36EXTRA_libomx_mesa_la_DEPENDENCIES = omx.sym
37EXTRA_DIST = omx.sym
38
39if HAVE_GALLIUM_STATIC_TARGETS
40
41TARGET_DRIVERS =
42TARGET_CPPFLAGS =
43TARGET_LIB_DEPS =
44
45
46include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
47
48include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
49include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
50
51libomx_mesa_la_SOURCES += target.c
52libomx_mesa_la_CPPFLAGS = $(TARGET_CPPFLAGS)
53libomx_mesa_la_LIBADD += \
54	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
55	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
56	$(TARGET_LIB_DEPS) \
57	$(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
58
59else # HAVE_GALLIUM_STATIC_TARGETS
60
61libomx_mesa_la_LIBADD += \
62	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
63
64endif # HAVE_GALLIUM_STATIC_TARGETS
65
66if HAVE_GALLIUM_LLVM
67libomx_mesa_la_LIBADD += $(LLVM_LIBS)
68libomx_mesa_la_LDFLAGS += $(LLVM_LDFLAGS)
69endif
70