65069240d883c46cace53478c1502ab7b75f1c9e
[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_srcdir)/src/mesa/drivers/dri/common/ \
31 -I$(top_builddir)/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 if HAVE_GALLIUM_STATIC_TARGETS
38 AM_CPPFLAGS = \
39 -DNINE_TARGET \
40 -DGALLIUM_STATIC_TARGETS=1
41
42 else
43
44 AM_CPPFLAGS = \
45 -DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\" \
46 $(GALLIUM_PIPE_LOADER_DEFINES)
47
48 endif
49
50 ninedir = $(D3D_DRIVER_INSTALL_DIR)
51 nine_LTLIBRARIES = d3dadapter9.la
52
53 pkgconfigdir = $(libdir)/pkgconfig
54 pkgconfig_DATA = d3d.pc
55
56 d3dadapter9_la_SOURCES = \
57 getproc.c \
58 drm.c
59
60 d3dadapter9_la_LDFLAGS = \
61 -shared \
62 -shrext .so \
63 -module \
64 -no-undefined \
65 -version-number $(NINE_MAJOR):$(NINE_MINOR) \
66 $(GC_SECTIONS) \
67 $(LD_NO_UNDEFINED)
68
69 if HAVE_LD_VERSION_SCRIPT
70 d3dadapter9_la_LDFLAGS += \
71 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/d3dadapter9/d3dadapter9.sym
72 endif # HAVE_LD_VERSION_SCRIPT
73
74 d3dadapter9_la_LIBADD = \
75 $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
76 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
77 $(top_builddir)/src/gallium/state_trackers/nine/libninetracker.la \
78 $(top_builddir)/src/util/libmesautil.la \
79 $(top_builddir)/src/gallium/winsys/sw/wrapper/libwsw.la \
80 $(EXPAT_LIBS) \
81 $(GALLIUM_COMMON_LIB_DEPS)
82
83
84 TARGET_DRIVERS =
85 TARGET_CPPFLAGS =
86 TARGET_LIB_DEPS = $(top_builddir)/src/loader/libloader.la
87
88 include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
89
90 include $(top_srcdir)/src/gallium/drivers/ilo/Automake.inc
91
92 include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
93
94 include $(top_srcdir)/src/gallium/drivers/r300/Automake.inc
95 include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
96 include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
97
98 include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
99
100 include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
101
102 include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc
103
104 include $(top_srcdir)/src/gallium/drivers/softpipe/Automake.inc
105 include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc
106
107 if HAVE_GALLIUM_STATIC_TARGETS
108
109 d3dadapter9_la_CPPFLAGS = $(AM_CPPFLAGS) $(TARGET_CPPFLAGS)
110 d3dadapter9_la_LIBADD += $(TARGET_LIB_DEPS) \
111 $(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
112
113 else # HAVE_GALLIUM_STATIC_TARGETS
114
115 d3dadapter9_la_LIBADD += \
116 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader.la \
117 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
118 $(GALLIUM_PIPE_LOADER_LIBS)
119
120 endif # HAVE_GALLIUM_STATIC_TARGETS
121
122 if HAVE_MESA_LLVM
123 nodist_EXTRA_d3dadapter9_la_SOURCES = dummy.cpp
124 d3dadapter9_la_LDFLAGS += $(LLVM_LDFLAGS)
125 d3dadapter9_la_LIBADD += $(LLVM_LIBS)
126 endif
127
128 d3dadapterdir = $(includedir)/d3dadapter
129 d3dadapter_HEADERS = \
130 $(top_srcdir)/include/d3dadapter/d3dadapter9.h \
131 $(top_srcdir)/include/d3dadapter/drm.h \
132 $(top_srcdir)/include/d3dadapter/present.h