lib/file: remove mkstemp umask in copy_file_secure_dest
[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 if WITH_GPGME
24 gpg_int_SOURCES = lib/security/gpg.h \
25         lib/security/gpg.c
26 else
27 gpg_int_SOURCES =
28 endif
29
30 lib_libpbcore_la_SOURCES = \
31         lib/ccan/endian/endian.h \
32         lib/file/file.h \
33         lib/file/file.c \
34         lib/fold/fold.h \
35         lib/fold/fold.c \
36         lib/i18n/i18n.h \
37         lib/i18n/i18n.c \
38         lib/log/log.h \
39         lib/log/log.c \
40         lib/list/list.c \
41         lib/list/list.h \
42         lib/waiter/waiter.c \
43         lib/waiter/waiter.h \
44         lib/pb-protocol/pb-protocol.c \
45         lib/pb-protocol/pb-protocol.h \
46         lib/pb-config/pb-config.c \
47         lib/pb-config/pb-config.h \
48         lib/process/process.c \
49         lib/process/process.h \
50         lib/types/types.c \
51         lib/types/types.h \
52         lib/talloc/talloc.c \
53         lib/talloc/talloc.h \
54         lib/system/system.c \
55         lib/system/system.h \
56         lib/url/url.c \
57         lib/url/url.h \
58         lib/util/util.c \
59         lib/util/util.h \
60         lib/flash/config.h \
61         lib/flash/flash.h \
62         $(gpg_int_SOURCES)
63
64 if ENABLE_MTD
65 lib_libpbcore_la_SOURCES += \
66         lib/flash/flash.c
67
68 lib_libpbcore_la_CPPFLAGS += \
69         $(AM_CPPFLAGS)
70
71 lib_libpbcore_la_LDFLAGS = \
72         $(AM_LDFLAGS) \
73         $(LIBFLASH_LIBS)
74
75 lib_libpbcore_la_SOURCES += \
76         lib/flash/flash.c
77 endif