09bc1aa30a61258c068844274563e2a03da89b98
[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
23 lib_libpbcore_la_SOURCES = \
24         lib/file/file.h \
25         lib/file/file.c \
26         lib/fold/fold.h \
27         lib/fold/fold.c \
28         lib/i18n/i18n.h \
29         lib/i18n/i18n.c \
30         lib/log/log.h \
31         lib/log/log.c \
32         lib/list/list.c \
33         lib/list/list.h \
34         lib/waiter/waiter.c \
35         lib/waiter/waiter.h \
36         lib/pb-protocol/pb-protocol.c \
37         lib/pb-protocol/pb-protocol.h \
38         lib/pb-config/pb-config.c \
39         lib/pb-config/pb-config.h \
40         lib/process/process.c \
41         lib/process/process.h \
42         lib/types/types.c \
43         lib/types/types.h \
44         lib/talloc/talloc.c \
45         lib/talloc/talloc.h \
46         lib/system/system.c \
47         lib/system/system.h \
48         lib/url/url.c \
49         lib/url/url.h \
50         lib/util/util.c \
51         lib/util/util.h \
52         lib/flash/config.h \
53         lib/flash/flash.h
54
55 if ENABLE_MTD
56 lib_libpbcore_la_SOURCES += \
57         lib/flash/flash.c
58
59 lib_libpbcore_la_CPPFLAGS += \
60         $(AM_CPPFLAGS)
61
62 lib_libpbcore_la_LDFLAGS = \
63         $(AM_LDFLAGS) \
64         $(LIBFLASH_LIBS)
65
66 lib_libpbcore_la_SOURCES += \
67         lib/flash/flash.c
68 endif