automake: add -Wl,--no-undefined to all libraries
[mesa.git] / src / mapi / vgapi / 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, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 # IN THE SOFTWARE.
21
22 AM_CPPFLAGS = \
23 $(DEFINES) \
24 $(SELINUX_CFLAGS) \
25 -I$(top_srcdir)/include \
26 -I$(top_srcdir)/src/mapi \
27 -DMAPI_ABI_HEADER=\"vgapi_tmp.h\"
28
29 AM_CFLAGS = $(VISIBILITY_CFLAGS)
30
31 pkgconfigdir = $(libdir)/pkgconfig
32 pkgconfig_DATA = vg.pc
33
34 VG_includedir = $(includedir)/VG
35 VG_include_HEADERS = \
36 $(top_srcdir)/include/VG/openvg.h \
37 $(top_srcdir)/include/VG/vgext.h \
38 $(top_srcdir)/include/VG/vgplatform.h \
39 $(top_srcdir)/include/VG/vgu.h
40
41 lib_LTLIBRARIES = libOpenVG.la
42
43 TOP=$(top_srcdir)
44 include ../Makefile.sources
45 libOpenVG_la_SOURCES = $(MAPI_FILES) vgapi_tmp.h
46 libOpenVG_la_LIBADD = $(VG_LIB_DEPS)
47 libOpenVG_la_LDFLAGS = \
48 -no-undefined \
49 -version-number 1 \
50 -Wl,--no-undefined
51
52 vgapi_tmp.h: $(srcdir)/vgapi.csv $(top_srcdir)/src/mapi/mapi_abi.py
53 $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(top_srcdir)/src/mapi/mapi_abi.py \
54 --printer vgapi --mode lib $< > $@
55
56 BUILT_SOURCES = vgapi_tmp.h
57 CLEANFILES = $(BUILT_SOURCES)
58
59 include $(top_srcdir)/install-lib-links.mk