aboutsummaryrefslogtreecommitdiff
path: root/odb/Makefile.am
blob: c0d4ce168da669ef3b85ad70e64b514c180050d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# file      : odb/Makefile.am
# copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
# license   : GNU GPL v3; see accompanying LICENSE file

plugindir = @plugindir@

bin_PROGRAMS = odb
plugin_LTLIBRARIES = odb.la

AM_CPPFLAGS = -I'$(top_builddir)' -I'$(top_srcdir)'

# Note: not passed by libtool when linking odb.so. Seems to be harmless for
# now.
#
AM_CXXFLAGS = -std=c++0x

EXTRA_DIST = __path__(headers) __path__(extra_dist)

# Plugin.
#
odb_la_SOURCES = __path__(plugin_sources) __path__(common_sources)
odb_la_LDFLAGS = -module -shrext .so -avoid-version

# Remove the .la file from the final install.
#
install-data-hook:
	rm -f '$(DESTDIR)$(plugindir)/odb.la'

# Driver.
#
odb_SOURCES = __path__(driver_sources) __path__(common_sources)

# Make sure common sources are compiled differently.
#
odb_CXXFLAGS = $(AM_CXXFLAGS)