• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
22TOP=$(top_srcdir)
23
24AM_CPPFLAGS = \
25	$(DEFINES) \
26	-I$(top_srcdir)/include \
27	-I$(top_srcdir)/src/mapi \
28	-DMAPI_ABI_HEADER=\"vgapi_tmp.h\"
29
30AM_CFLAGS = $(VISIBILITY_CFLAGS)
31
32pkgconfigdir = $(libdir)/pkgconfig
33pkgconfig_DATA = vg.pc
34
35VG_includedir = $(includedir)/VG
36VG_include_HEADERS = \
37	$(top_srcdir)/include/VG/openvg.h \
38	$(top_srcdir)/include/VG/vgext.h \
39	$(top_srcdir)/include/VG/vgplatform.h \
40	$(top_srcdir)/include/VG/vgu.h
41
42lib_LTLIBRARIES = libOpenVG.la
43
44include ../mapi/sources.mak
45libOpenVG_la_SOURCES = $(MAPI_FILES) vgapi_tmp.h
46libOpenVG_la_LIBADD = $(VG_LIB_DEPS)
47libOpenVG_la_LDFLAGS = -version-number 1 -no-undefined
48
49vgapi_tmp.h: $(srcdir)/vgapi.csv $(top_srcdir)/src/mapi/mapi/mapi_abi.py
50	$(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(top_srcdir)/src/mapi/mapi/mapi_abi.py \
51		--printer vgapi --mode lib $< > $@
52
53BUILT_SOURCES = vgapi_tmp.h
54CLEANFILES = $(BUILT_SOURCES)
55
56# Provide compatibility with scripts for the old Mesa build system for
57# a while by putting a link to the driver into /lib of the build tree.
58all-local: libOpenVG.la
59	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
60	ln -f .libs/libOpenVG.so $(top_builddir)/$(LIB_DIR)/libOpenVG.so
61	ln -f .libs/libOpenVG.so.1 $(top_builddir)/$(LIB_DIR)/libOpenVG.so.1
62	ln -f .libs/libOpenVG.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libOpenVG.so.1.0.0
63