]> git.ozlabs.org Git - petitboot/blob - lib/Makefile.am
59d37ab793dc9efd38760a95bb1b655a4df399d8
[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         lib/efi/efivar.h \
70         lib/efi/efivar.c
71
72 if ENABLE_MTD
73 lib_libpbcore_la_SOURCES += \
74         lib/flash/flash.c
75
76 lib_libpbcore_la_LDFLAGS += \
77         $(LIBFLASH_LIBS)
78 endif
79
80 if WITH_GPGME
81 lib_libpbcore_la_SOURCES += \
82         lib/security/common.c \
83         lib/security/gpg.c
84 else
85 if WITH_OPENSSL
86 lib_libpbcore_la_SOURCES += \
87         lib/security/common.c \
88         lib/security/openssl.c
89 else
90 lib_libpbcore_la_SOURCES += \
91         lib/security/none.c
92 endif
93 endif