summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.am
blob: 0088e0bf5d14d0a52887fdd2a4aea9a5c2b9981b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; version 2 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

core_lib = lib/libpbcore.la

noinst_LTLIBRARIES += $(core_lib)

lib_libpbcore_la_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-DPREFIX='"$(prefix)"' \
	$(OPENSSL_INCLUDES)

lib_libpbcore_la_LIBADD = \
	$(GPGME_LIBS) \
	$(OPENSSL_LIBS)

lib_libpbcore_la_LDFLAGS = \
	$(AM_LDFLAGS) \
	$(OPENSSL_LDFLAGS)

lib_libpbcore_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(GPGME_CFLAGS)

lib_libpbcore_la_SOURCES = \
	lib/ccan/endian/endian.h \
	lib/file/file.h \
	lib/file/file.c \
	lib/fold/fold.h \
	lib/fold/fold.c \
	lib/i18n/i18n.h \
	lib/i18n/i18n.c \
	lib/log/log.h \
	lib/log/log.c \
	lib/list/list.c \
	lib/list/list.h \
	lib/waiter/waiter.c \
	lib/waiter/waiter.h \
	lib/pb-protocol/pb-protocol.c \
	lib/pb-protocol/pb-protocol.h \
	lib/pb-config/pb-config.c \
	lib/pb-config/pb-config.h \
	lib/process/process.c \
	lib/process/process.h \
	lib/types/types.c \
	lib/types/types.h \
	lib/talloc/talloc.c \
	lib/talloc/talloc.h \
	lib/system/system.c \
	lib/system/system.h \
	lib/url/url.c \
	lib/url/url.h \
	lib/util/util.c \
	lib/util/util.h \
	lib/flash/config.h \
	lib/flash/flash.h \
	lib/security/security.h

if ENABLE_MTD
lib_libpbcore_la_SOURCES += \
	lib/flash/flash.c

lib_libpbcore_la_LDFLAGS += \
	$(LIBFLASH_LIBS)
endif

if WITH_GPGME
lib_libpbcore_la_SOURCES += \
	lib/security/common.c \
	lib/security/gpg.c
else
if WITH_OPENSSL
lib_libpbcore_la_SOURCES += \
	lib/security/common.c \
	lib/security/openssl.c
else
lib_libpbcore_la_SOURCES += \
	lib/security/none.c
endif
endif
OpenPOWER on IntegriCloud