forked from flatpak/flatpak-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
114 lines (99 loc) · 2.8 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
NULL =
bin_PROGRAMS = $(NULL)
dist_installed_test_extra_scripts = $(NULL)
noinst_PROGRAMS = $(NULL)
noinst_LTLIBRARIES = $(NULL)
libexec_PROGRAMS = $(NULL)
CLEANFILES = $(NULL)
MAINTAINERCLEANFILES = $(NULL)
DISTCLEANFILES= $(NULL)
BUILT_SOURCES = $(NULL)
EXTRA_DIST =
include $(top_srcdir)/buildutil/glib-tap.mk
SUBDIRS = data
if BUILD_DOCUMENTATION
SUBDIRS += . doc
endif
FLATPAK_BINDIR=$(bindir)
ACLOCAL_AMFLAGS = -I m4 -I subprojects/libglnx ${ACLOCAL_FLAGS}
AM_CPPFLAGS = \
-DFLATPAK_BINDIR=\"$(FLATPAK_BINDIR)\" \
-DFLATPAK_BASEDIR=\"$(pkgdatadir)\" \
-DG_LOG_DOMAIN=\"flatpak-builder\" \
-I$(srcdir)/subprojects \
-I$(srcdir)/subprojects/libglnx \
-I$(srcdir)/subprojects/debugedit \
-include "config.h" \
$(NULL)
AM_CFLAGS = $(WARN_CFLAGS)
if WITH_SYSTEM_DEBUGEDIT
AM_CPPFLAGS += -DDEBUGEDIT=\"$(DEBUGEDIT)\"
else
AM_CPPFLAGS += -DDEBUGEDIT=\"$(libexecdir)/flatpak-builder-debugedit\"
endif
lib_LTLIBRARIES =
noinst_LTLIBRARIES += libglnx.la
libglnx_srcpath := $(srcdir)/subprojects/libglnx
libglnx_cflags := \
$(BASE_CFLAGS) \
"-I$(libglnx_srcpath)" \
-std=gnu99 \
$(HIDDEN_VISIBILITY_CFLAGS) \
$(NULL)
libglnx_libs := $(BASE_LIBS)
include subprojects/libglnx/Makefile-libglnx.am.inc
include src/Makefile.am.inc
include tests/Makefile.am.inc
if !WITH_SYSTEM_DEBUGEDIT
libexec_PROGRAMS+=flatpak-builder-debugedit
flatpak_builder_debugedit_SOURCES = \
subprojects/debugedit/tools/debugedit.c \
subprojects/debugedit/tools/hashtab.c \
subprojects/debugedit/tools/hashtab.h \
subprojects/debugedit/tools/md5.c \
subprojects/debugedit/tools/md5.h \
subprojects/debugedit/tools/sha1.c \
subprojects/debugedit/tools/sha1.h \
subprojects/debugedit/tools/ansidecl.h \
$(NULL)
flatpak_builder_debugedit_LDADD = \
$(AM_LDADD) $(BASE_LIBS) \
$(LIBELF_LIBS) $(LIBDW_LIBS) \
$(NULL)
flatpak_builder_debugedit_CFLAGS = \
$(AM_CFLAGS) $(BASE_CFLAGS) \
-Isubprojects/debugedit \
-DVERSION="\"@PACKAGE_VERSION@\"" \
-Wno-format-nonliteral \
$(NULL)
endif # !WITH_SYSTEM_DEBUGEDIT
EXTRA_DIST += \
README.md \
meson.build \
meson_options.txt \
doc/meson.build \
src/meson.build \
tests/meson.build \
tests/tap.test.in \
tests/test-keyring/meson.build \
tests/test-keyring2/meson.build \
subprojects/libglnx.wrap \
subprojects/libglnx/meson.build \
subprojects/libglnx/meson_options.txt \
subprojects/libglnx/tests/meson.build \
subprojects/libyaml.wrap \
$(NULL)
AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-documentation \
--disable-maintainer-mode \
--enable-introspection
distcheck-hook: distcheck-hook-meson
distcheck-hook-meson:
set -e; if command -v meson > /dev/null; then \
cd $(distdir); \
pwd; \
meson setup -Dinstalled_tests=true _build/meson; \
meson compile -C _build/meson -v; \
meson test -C _build/meson -v; \
rm -fr _build/meson; \
fi