]> git.ozlabs.org Git - petitboot/blob - lib/Makefile.am
lib/security: add in openssl support
[petitboot] / lib / Makefile.am
1 #  This program is free software; you can redistribute it and/or modify
2 #  it under the terms of the GNU General Public License as published by
3 #  the Free Software Foundation; version 2 of the License.
4 #
5 #  This program is distributed in the hope that it will be useful,
6 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8 #  GNU General Public License for more details.
9 #
10 #  You should have received a copy of the GNU General Public License
11 #  along with this program; if not, write to the Free Software
12 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
13 #
14
15 core_lib = lib/libpbcore.la
16
17 noinst_LTLIBRARIES += $(core_lib)
18
19 lib_libpbcore_la_CPPFLAGS = \
20         $(AM_CPPFLAGS) \
21         -DPREFIX='"$(prefix)"' \
22         $(OPENSSL_INCLUDES)
23
24 lib_libpbcore_la_LIBADD = \
25         $(GPGME_LIBS) \
26         $(OPENSSL_LIBS)
27
28 lib_libpbcore_la_LDFLAGS = \
29         $(AM_LDFLAGS) \
30         $(OPENSSL_LDFLAGS)
31
32 lib_libpbcore_la_CFLAGS = \
33         $(AM_CFLAGS) \
34         $(GPGME_CFLAGS)
35
36 lib_libpbcore_la_SOURCES = \
37         lib/ccan/endian/endian.h \
38         lib/file/file.h \
39         lib/file/file.c \
40         lib/fold/fold.h \
41         lib/fold/fold.c \
42         lib/i18n/i18n.h \
43         lib/i18n/i18n.c \
44         lib/log/log.h \
45         lib/log/log.c \
46         lib/list/list.c \
47         lib/list/list.h \
48         lib/waiter/waiter.c \
49         lib/waiter/waiter.h \
50         lib/pb-protocol/pb-protocol.c \
51         lib/pb-protocol/pb-protocol.h \
52         lib/pb-config/pb-config.c \
53         lib/pb-config/pb-config.h \
54         lib/process/process.c \
55         lib/process/process.h \
56         lib/types/types.c \
57         lib/types/types.h \
58         lib/talloc/talloc.c \
59         lib/talloc/talloc.h \
60         lib/system/system.c \
61         lib/system/system.h \
62         lib/url/url.c \
63         lib/url/url.h \
64         lib/util/util.c \
65         lib/util/util.h \
66         lib/flash/config.h \
67         lib/flash/flash.h \
68         lib/security/security.h
69
70 if ENABLE_MTD
71 lib_libpbcore_la_SOURCES += \
72         lib/flash/flash.c
73
74 lib_libpbcore_la_LDFLAGS += \
75         $(LIBFLASH_LIBS)
76 endif
77
78 if WITH_GPGME
79 lib_libpbcore_la_SOURCES += \
80         lib/security/common.c \
81         lib/security/gpg.c
82 else
83 if WITH_OPENSSL
84 lib_libpbcore_la_SOURCES += \
85         lib/security/common.c \
86         lib/security/openssl.c
87 else
88 lib_libpbcore_la_SOURCES += \
89         lib/security/none.c
90 endif
91 endif