Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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