Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5564 | serge | 1 | include $(top_srcdir)/src/gallium/Automake.inc |
2 | |||
3 | AM_CFLAGS = \ |
||
4 | -I$(top_srcdir)/src/mapi \ |
||
5 | -I$(top_srcdir)/src/mesa \ |
||
6 | -I$(top_srcdir)/src \ |
||
7 | -I$(top_srcdir)/src/mesa/drivers/dri/common \ |
||
8 | -I$(top_srcdir)/src/gallium/state_trackers/dri \ |
||
9 | $(GALLIUM_TARGET_CFLAGS) |
||
10 | |||
11 | AM_CPPFLAGS = \ |
||
12 | $(DEFINES) \ |
||
13 | -DDRI_TARGET \ |
||
14 | -DGALLIUM_NOOP \ |
||
15 | -DGALLIUM_RBUG \ |
||
16 | -DGALLIUM_TRACE |
||
17 | |||
18 | dridir = $(DRI_DRIVER_INSTALL_DIR) |
||
19 | dri_LTLIBRARIES = gallium_dri.la |
||
20 | |||
21 | nodist_EXTRA_gallium_dri_la_SOURCES = dummy.cpp |
||
22 | gallium_dri_la_SOURCES = |
||
23 | |||
24 | gallium_dri_la_LDFLAGS = \ |
||
25 | -shared \ |
||
26 | -shrext .so \ |
||
27 | -module \ |
||
28 | -avoid-version \ |
||
29 | $(GC_SECTIONS) |
||
30 | |||
31 | if HAVE_LD_VERSION_SCRIPT |
||
32 | gallium_dri_la_LDFLAGS += \ |
||
33 | -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri/dri.sym |
||
34 | endif # HAVE_LD_VERSION_SCRIPT |
||
35 | |||
36 | if HAVE_LD_DYNAMIC_LIST |
||
37 | gallium_dri_la_LDFLAGS += \ |
||
38 | -Wl,--dynamic-list=$(top_srcdir)/src/gallium/targets/dri-vdpau.dyn |
||
39 | endif # HAVE_LD_DYNAMIC_LIST |
||
40 | |||
41 | gallium_dri_la_LIBADD = \ |
||
42 | $(top_builddir)/src/mesa/libmesagallium.la \ |
||
43 | $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \ |
||
44 | $(top_builddir)/src/mesa/drivers/dri/common/libmegadriver_stub.la \ |
||
45 | $(top_builddir)/src/gallium/state_trackers/dri/libdri.la \ |
||
46 | $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \ |
||
47 | $(top_builddir)/src/gallium/auxiliary/libgallium.la \ |
||
48 | $(top_builddir)/src/gallium/drivers/noop/libnoop.la \ |
||
49 | $(top_builddir)/src/gallium/drivers/rbug/librbug.la \ |
||
50 | $(top_builddir)/src/gallium/drivers/trace/libtrace.la \ |
||
51 | $(SELINUX_LIBS) \ |
||
52 | $(EXPAT_LIBS) \ |
||
53 | $(LIBDRM_LIBS) \ |
||
54 | $(GALLIUM_COMMON_LIB_DEPS) |
||
55 | |||
56 | # XXX: Temporary allow duplicated symbols, as the loader pulls in xmlconfig.c |
||
57 | # which already provides driParse* and driQuery* amongst others. |
||
58 | # Remove this hack as we come up with a cleaner solution. |
||
59 | gallium_dri_la_LDFLAGS += \ |
||
60 | -Wl,--allow-multiple-definition |
||
61 | |||
62 | EXTRA_gallium_dri_la_DEPENDENCIES = \ |
||
63 | dri.sym \ |
||
64 | $(top_srcdir)/src/gallium/targets/dri-vdpau.dyn |
||
65 | EXTRA_DIST = \ |
||
66 | SConscript \ |
||
67 | dri.sym \ |
||
68 | $(top_srcdir)/src/gallium/targets/dri-vdpau.dyn |
||
69 | |||
70 | TARGET_DRIVERS = |
||
71 | TARGET_CPPFLAGS = |
||
72 | TARGET_LIB_DEPS = $(top_builddir)/src/loader/libloader.la |
||
73 | |||
74 | include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc |
||
75 | |||
76 | include $(top_srcdir)/src/gallium/drivers/ilo/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/softpipe/Automake.inc |
||
91 | include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc |
||
92 | |||
93 | if HAVE_GALLIUM_STATIC_TARGETS |
||
94 | |||
95 | gallium_dri_la_SOURCES += target.c |
||
96 | gallium_dri_la_CPPFLAGS = $(AM_CPPFLAGS) $(TARGET_CPPFLAGS) |
||
97 | gallium_dri_la_LIBADD += $(TARGET_LIB_DEPS) \ |
||
98 | $(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON) |
||
99 | |||
100 | else # HAVE_GALLIUM_STATIC_TARGETS |
||
101 | |||
102 | gallium_dri_la_LIBADD += \ |
||
103 | $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader.la \ |
||
104 | $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \ |
||
105 | $(GALLIUM_PIPE_LOADER_LIBS) |
||
106 | |||
107 | endif # HAVE_GALLIUM_STATIC_TARGETS |
||
108 | |||
109 | if HAVE_MESA_LLVM |
||
110 | gallium_dri_la_LIBADD += $(LLVM_LIBS) |
||
111 | gallium_dri_la_LDFLAGS += $(LLVM_LDFLAGS) |
||
112 | endif |
||
113 | |||
114 | if HAVE_COMPAT_SYMLINKS |
||
115 | # Add a link to allow setting LIBGL_DRIVERS_PATH to /lib/gallium of the build tree. |
||
116 | all-local: $(dri_LTLIBRARIES) |
||
117 | $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \ |
||
118 | $(MKDIR_P) $${link_dir}; \ |
||
119 | for i in $(TARGET_DRIVERS); do \ |
||
120 | ln -f .libs/gallium_dri.so \ |
||
121 | $${link_dir}/$${i}_dri.so; \ |
||
122 | done |
||
123 | |||
124 | clean-local: |
||
125 | $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \ |
||
126 | $(AM_V_GEN)for i in $(TARGET_DRIVERS); do \ |
||
127 | $(RM) $${link_dir}/$${i}_dri.so; \ |
||
128 | done; |
||
129 | endif |
||
130 | |||
131 | # hardlink each megadriver instance, but don't actually have |
||
132 | # gallium_dri.so in the set of final installed files. |
||
133 | install-data-hook: |
||
134 | for i in $(TARGET_DRIVERS); do \ |
||
135 | ln -f $(DESTDIR)$(dridir)/gallium_dri.so \ |
||
136 | $(DESTDIR)$(dridir)/$${i}_dri.so; \ |
||
137 | done; \ |
||
138 | $(RM) $(DESTDIR)$(dridir)/gallium_dri.* |
||
139 | |||
140 | uninstall-hook: |
||
141 | for i in $(TARGET_DRIVERS); do \ |
||
142 | $(RM) $(DESTDIR)$(dridir)/$${i}_dri.so; \ |
||
143 | done; |