ilo: EOL drop unmaintained gallium drv from buildsys
[mesa.git] / src / gallium / targets / dri / Makefile.am
1 include $(top_srcdir)/src/gallium/Automake.inc
2
3 if HAVE_ANDROID
4 if HAVE_SHARED_GLAPI
5 SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
6 endif
7 endif
8
9 AM_CFLAGS = \
10 -I$(top_srcdir)/src/mapi \
11 -I$(top_srcdir)/src/mesa \
12 -I$(top_srcdir)/src \
13 -I$(top_srcdir)/src/mesa/drivers/dri/common \
14 -I$(top_srcdir)/src/gallium/state_trackers/dri \
15 $(GALLIUM_TARGET_CFLAGS)
16
17 AM_CPPFLAGS = \
18 $(DEFINES) \
19 -DGALLIUM_DDEBUG \
20 -DGALLIUM_NOOP \
21 -DGALLIUM_RBUG \
22 -DGALLIUM_TRACE
23
24 dridir = $(DRI_DRIVER_INSTALL_DIR)
25 dri_LTLIBRARIES = gallium_dri.la
26
27 nodist_EXTRA_gallium_dri_la_SOURCES = dummy.cpp
28 gallium_dri_la_SOURCES =
29
30 gallium_dri_la_LDFLAGS = \
31 -shared \
32 -shrext .so \
33 -module \
34 -avoid-version \
35 $(GC_SECTIONS)
36
37 if HAVE_LD_VERSION_SCRIPT
38 gallium_dri_la_LDFLAGS += \
39 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri/dri.sym
40 endif # HAVE_LD_VERSION_SCRIPT
41
42 if HAVE_LD_DYNAMIC_LIST
43 gallium_dri_la_LDFLAGS += \
44 -Wl,--dynamic-list=$(top_srcdir)/src/gallium/targets/dri-vdpau.dyn
45 endif # HAVE_LD_DYNAMIC_LIST
46
47 gallium_dri_la_LIBADD = \
48 $(top_builddir)/src/mesa/libmesagallium.la \
49 $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
50 $(top_builddir)/src/mesa/drivers/dri/common/libmegadriver_stub.la \
51 $(top_builddir)/src/gallium/state_trackers/dri/libdri.la \
52 $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
53 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
54 $(top_builddir)/src/gallium/drivers/ddebug/libddebug.la \
55 $(top_builddir)/src/gallium/drivers/noop/libnoop.la \
56 $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
57 $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
58 $(SHARED_GLAPI_LIB) \
59 $(SELINUX_LIBS) \
60 $(EXPAT_LIBS) \
61 $(LIBDRM_LIBS) \
62 $(GALLIUM_COMMON_LIB_DEPS)
63
64 EXTRA_gallium_dri_la_DEPENDENCIES = \
65 dri.sym \
66 $(top_srcdir)/src/gallium/targets/dri-vdpau.dyn
67 EXTRA_DIST = \
68 SConscript \
69 dri.sym \
70 $(top_srcdir)/src/gallium/targets/dri-vdpau.dyn
71
72 TARGET_DRIVERS =
73 TARGET_CPPFLAGS =
74 TARGET_LIB_DEPS =
75
76 include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
77
78 include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
79
80 include $(top_srcdir)/src/gallium/drivers/r300/Automake.inc
81 include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
82 include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
83
84 include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
85
86 include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
87
88 include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc
89
90 include $(top_srcdir)/src/gallium/drivers/virgl/Automake.inc
91
92 include $(top_srcdir)/src/gallium/drivers/etnaviv/Automake.inc
93 include $(top_srcdir)/src/gallium/drivers/imx/Automake.inc
94
95 include $(top_srcdir)/src/gallium/drivers/softpipe/Automake.inc
96 include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc
97 include $(top_srcdir)/src/gallium/drivers/swr/Automake.inc
98
99 if HAVE_GALLIUM_STATIC_TARGETS
100
101 gallium_dri_la_SOURCES += target.c
102 gallium_dri_la_CPPFLAGS = $(AM_CPPFLAGS) $(TARGET_CPPFLAGS)
103 gallium_dri_la_LIBADD += \
104 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
105 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
106 $(TARGET_LIB_DEPS) \
107 $(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
108
109 else # HAVE_GALLIUM_STATIC_TARGETS
110
111 gallium_dri_la_LIBADD += \
112 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
113
114 endif # HAVE_GALLIUM_STATIC_TARGETS
115
116 if HAVE_GALLIUM_LLVM
117 gallium_dri_la_LIBADD += $(LLVM_LIBS)
118 gallium_dri_la_LDFLAGS += $(LLVM_LDFLAGS)
119 endif
120
121 if HAVE_COMPAT_SYMLINKS
122 # Add a link to allow setting LIBGL_DRIVERS_PATH to /lib/gallium of the build tree.
123 all-local: $(dri_LTLIBRARIES)
124 $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \
125 $(MKDIR_P) $${link_dir}; \
126 for i in $(TARGET_DRIVERS); do \
127 ln -f .libs/gallium_dri.so \
128 $${link_dir}/$${i}_dri.so; \
129 done
130
131 clean-local:
132 $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \
133 $(AM_V_GEN)for i in $(TARGET_DRIVERS); do \
134 $(RM) $${link_dir}/$${i}_dri.so; \
135 done;
136 endif
137
138 # hardlink each megadriver instance, but don't actually have
139 # gallium_dri.so in the set of final installed files.
140 install-data-hook:
141 for i in $(TARGET_DRIVERS); do \
142 ln -f $(DESTDIR)$(dridir)/gallium_dri.so \
143 $(DESTDIR)$(dridir)/$${i}_dri.so; \
144 done; \
145 $(RM) $(DESTDIR)$(dridir)/gallium_dri.*
146
147 uninstall-hook:
148 for i in $(TARGET_DRIVERS); do \
149 $(RM) $(DESTDIR)$(dridir)/$${i}_dri.so; \
150 done;