From 2088891f11ab7aa3f843239cebe06a2850117b0b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Sep 2010 22:25:48 +0200 Subject: Add automake build system support --- odb/Makefile.am | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 odb/Makefile.am (limited to 'odb/Makefile.am') diff --git a/odb/Makefile.am b/odb/Makefile.am new file mode 100644 index 0000000..e8f2b40 --- /dev/null +++ b/odb/Makefile.am @@ -0,0 +1,31 @@ +# file : odb/Makefile.am +# author : Boris Kolpackov +# copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +plugindir = $(bindir) + +bin_PROGRAMS = odb +plugin_LTLIBRARIES = odb.la + +AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) + +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 $(bindir)/odb.la + +# Driver. +# +odb_SOURCES = __path__(driver_sources) __path__(common_sources) + +# Make sure common sources are compiled differently. +# +odb_CXXFLAGS = $(AM_CXXFLAGS) -- cgit v1.1