lib/param_list: Add new parameter list routines
[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         lib/param_list/param_list.c \
72         lib/param_list/param_list.h
73
74 if ENABLE_MTD
75 lib_libpbcore_la_SOURCES += \
76         lib/flash/flash.c
77
78 lib_libpbcore_la_LDFLAGS += \
79         $(LIBFLASH_LIBS)
80 endif
81
82 if WITH_GPGME
83 lib_libpbcore_la_SOURCES += \
84         lib/security/common.c \
85         lib/security/gpg.c
86 else
87 if WITH_OPENSSL
88 lib_libpbcore_la_SOURCES += \
89         lib/security/common.c \
90         lib/security/openssl.c
91 else
92 lib_libpbcore_la_SOURCES += \
93         lib/security/none.c
94 endif
95 endif