Various tweaks to support building with excessive GCC warning flags
[pacman-ng.git] / lib / libalpm / Makefile.am
blob0781d5d8710ab152337b347be527f71055d11cdb
1 AUTOMAKE_OPTIONS = gnu
3 SUBDIRS = po
5 lib_LTLIBRARIES = libalpm.la
6 include_HEADERS = alpm_list.h alpm.h
8 DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@
10 AM_CPPFLAGS = \
11         -imacros $(top_builddir)/config.h
13 AM_CFLAGS = -pedantic -D_GNU_SOURCE $(WARNING_CFLAGS)
15 if ENABLE_VISIBILITY_CC
16 if DARWIN
17 AM_CFLAGS += -fvisibility=hidden
18 else
19 AM_CFLAGS += -fvisibility=internal
20 endif
21 endif
22 if ENABLE_GNU89_INLINE_CC
23 AM_CFLAGS += -fgnu89-inline
24 endif
26 libalpm_la_SOURCES = \
27         add.h add.c \
28         alpm.h alpm.c \
29         alpm_list.h alpm_list.c \
30         backup.h backup.c \
31         be_local.c \
32         be_package.c \
33         be_sync.c \
34         conflict.h conflict.c \
35         db.h db.c \
36         delta.h delta.c \
37         deps.h deps.c \
38         diskspace.h diskspace.c \
39         dload.h dload.c \
40         error.c \
41         graph.h graph.c \
42         group.h group.c \
43         handle.h handle.c \
44         log.h log.c \
45         package.h package.c \
46         pkghash.h pkghash.c \
47         rawstr.c \
48         remove.h remove.c \
49         signing.c signing.h \
50         sync.h sync.c \
51         trans.h trans.c \
52         util.h util.c \
53         version.c
55 if !HAVE_LIBSSL
56 libalpm_la_SOURCES += \
57         md5.h md5.c \
58         sha2.h sha2.c
59 endif
61 if HAVE_LIBGPGME
62 libalpm_la_SOURCES += \
63         base64.h base64.c
64 endif
66 libalpm_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_INFO)
68 libalpm_la_CFLAGS = \
69         $(AM_CFLAGS) \
70         $(GPGME_CFLAGS) \
71         $(LIBARCHIVE_CFLAGS) \
72         $(LIBCURL_CFLAGS) \
73         $(LIBSSL_CFLAGS)
75 libalpm_la_LIBADD = \
76         $(LTLIBINTL) \
77         $(GPGME_LIBS) \
78         $(LIBARCHIVE_LIBS) \
79         $(LIBCURL_LIBS) \
80         $(LIBSSL_LIBS)
82 # vim:set ts=2 sw=2 noet: