aboutsummaryrefslogtreecommitdiff
path: root/odb/Makefile.am
blob: b45951a83ffbe068a1ed6f0952219864ed5842c1 (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
# file      : odb/Makefile.am
# copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
# license   : GNU GPL v2; see accompanying LICENSE file

lib_LTLIBRARIES = libodb.la
libodb_la_SOURCES = __path__(sources)

odbincludedir = $(includedir)/odb
nobase_odbinclude_HEADERS = __path__(headers)
nobase_nodist_odbinclude_HEADERS = details/config.h

EXTRA_DIST = __file__(extra_dist)

# At the moment, DllMain() is only necessary if we are using Win32
# threads. So keep win32_dll_sources in ODB_THREADS_WIN32.
#
if ODB_WIN32
nobase_odbinclude_HEADERS += __path__(win32_headers)
endif

if ODB_THREADS_POSIX
libodb_la_SOURCES += __path__(posix_threads_sources)
nobase_odbinclude_HEADERS += __path__(posix_threads_headers)
endif

if ODB_THREADS_WIN32
libodb_la_SOURCES += __path__(win32_threads_sources) __path__(win32_dll_sources)
nobase_odbinclude_HEADERS += __path__(win32_threads_headers)
endif

AM_CPPFLAGS= -I'$(top_builddir)' -I'$(top_srcdir)' -DLIBODB_DYNAMIC_LIB
AM_LDFLAGS = -release __value__(interface_version) -no-undefined