69cebbcd16fa123194b7e542344963d5f270ef93
[mesa.git] / src / gallium / targets / d3dadapter9 / Makefile.am
1 # Copyright © 2012 Intel Corporation
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
9 #
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
12 # Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 # DEALINGS IN THE SOFTWARE.
22
23 include $(top_srcdir)/src/gallium/Automake.inc
24
25 AM_CFLAGS = \
26 -I$(top_srcdir)/include/D3D9 \
27 -I$(top_srcdir)/src/loader \
28 -I$(top_srcdir)/src/mapi/ \
29 -I$(top_srcdir)/src/mesa/ \
30 -I$(top_builddir)/src/util \
31 -I$(top_srcdir)/src/mesa/drivers/dri/common/ \
32 -I$(top_srcdir)/src/gallium/winsys \
33 -I$(top_srcdir)/src/gallium/state_trackers/nine \
34 $(GALLIUM_TARGET_CFLAGS) \
35 $(VISIBILITY_CFLAGS)
36
37 AM_CPPFLAGS = \
38 $(DEFINES)
39
40 ninedir = $(D3D_DRIVER_INSTALL_DIR)
41 nine_LTLIBRARIES = d3dadapter9.la
42
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = d3d.pc
45
46 d3dadapter9_la_SOURCES = \
47 description.c \
48 getproc.c \
49 drm.c
50
51 d3dadapter9_la_LDFLAGS = \
52 -shared \
53 -shrext .so \
54 -module \
55 -no-undefined \
56 -version-number $(NINE_MAJOR):$(NINE_MINOR):$(NINE_PATCH) \
57 $(GC_SECTIONS) \
58 $(LD_NO_UNDEFINED)
59
60 if HAVE_LD_VERSION_SCRIPT
61 d3dadapter9_la_LDFLAGS += \
62 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/d3dadapter9/d3dadapter9.sym
63 endif # HAVE_LD_VERSION_SCRIPT
64
65 d3dadapter9_la_LIBADD = \
66 $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
67 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
68 $(top_builddir)/src/gallium/state_trackers/nine/libninetracker.la \
69 $(top_builddir)/src/util/libmesautil.la \
70 $(EXPAT_LIBS) \
71 $(GALLIUM_COMMON_LIB_DEPS)
72
73 EXTRA_d3dadapter9_la_DEPENDENCIES = d3dadapter9.sym
74 EXTRA_DIST = d3dadapter9.sym meson.build
75
76 TARGET_DRIVERS =
77 TARGET_CPPFLAGS =
78 TARGET_LIB_DEPS =
79
80 include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
81
82 include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
83
84 include $(top_srcdir)/src/gallium/drivers/r300/Automake.inc
85 include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
86 include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
87
88 include $(top_srcdir)/src/gallium/drivers/svga/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 d3dadapter9_la_CPPFLAGS = $(AM_CPPFLAGS) $(TARGET_CPPFLAGS)
96 d3dadapter9_la_LIBADD += \
97 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
98 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
99 $(TARGET_LIB_DEPS) \
100 $(TARGET_COMPILER_LIB_DEPS) \
101 $(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
102
103 else # HAVE_GALLIUM_STATIC_TARGETS
104
105 d3dadapter9_la_LIBADD += \
106 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
107
108 endif # HAVE_GALLIUM_STATIC_TARGETS
109
110 if HAVE_GALLIUM_LLVM
111 nodist_EXTRA_d3dadapter9_la_SOURCES = dummy.cpp
112 d3dadapter9_la_LDFLAGS += $(LLVM_LDFLAGS)
113 d3dadapter9_la_LIBADD += $(LLVM_LIBS)
114 endif
115
116 d3dadapterdir = $(includedir)/d3dadapter
117 d3dadapter_HEADERS = \
118 $(top_srcdir)/include/d3dadapter/d3dadapter9.h \
119 $(top_srcdir)/include/d3dadapter/drm.h \
120 $(top_srcdir)/include/d3dadapter/present.h