File: Makefile.am

package info (click to toggle)
network-manager-fortisslvpn 1.2.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,564 kB
  • sloc: ansic: 5,340; sh: 4,177; makefile: 271; xml: 19
file content (341 lines) | stat: -rw-r--r-- 10,003 bytes parent folder | download
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
AUTOMAKE_OPTIONS = foreign subdir-objects

DISTCHECK_CONFIGURE_FLAGS = \
	--enable-more-warnings=yes

libexec_PROGRAMS =

noinst_LTLIBRARIES =

EXTRA_DIST =

CLEANFILES =

noinst_PROGRAMS =

SUBDIRS = \
	. \
	po

plugindir = $(libdir)/NetworkManager
plugin_LTLIBRARIES =

dbusservicedir = $(sysconfdir)/dbus-1/system.d
dbusservice_DATA = nm-fortisslvpn-service.conf

nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
nmvpnservice_DATA = nm-fortisslvpn-service.name

fortisslvpn_statedir = $(localstatedir)/lib/$(PACKAGE)

BUILT_SOURCES =

###############################################################################

src_cppflags = \
        $(GLIB_CFLAGS) \
        $(LIBNM_CFLAGS) \
        -I$(srcdir)/shared \
        -I$(builddir)/src \
        -DNM_FORTISSLVPN_LOCALEDIR=\"$(datadir)/locale\" \
        -DNM_FORTISSLVPN_STATEDIR=\"$(fortisslvpn_statedir)\" \
        -DPLUGINDIR=\"$(PPPD_PLUGIN_DIR)\"

###############################################################################

noinst_LTLIBRARIES += src/libnm-fortisslvpn-pppd-service-dbus.la

nodist_src_libnm_fortisslvpn_pppd_service_dbus_la_SOURCES = \
	src/nm-fortisslvpn-pppd-service-dbus.c \
	src/nm-fortisslvpn-pppd-service-dbus.h

src_libnm_fortisslvpn_pppd_service_dbus_la_CPPFLAGS = \
	$(src_cppflags) \
	$(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(AM_CPPFLAGS))

src/nm-fortisslvpn-pppd-service-dbus.h: $(top_srcdir)/src/nm-fortisslvpn-pppd-service.xml
	$(AM_V_GEN) gdbus-codegen \
		--generate-c-code $(basename $@) \
		--c-namespace NMDBus \
		--interface-prefix org.freedesktop.NetworkManager \
		$<

src/nm-fortisslvpn-pppd-service-dbus.c: src/nm-fortisslvpn-pppd-service-dbus.h
	@true

BUILT_SOURCES += \
	src/nm-fortisslvpn-pppd-service-dbus.h \
	src/nm-fortisslvpn-pppd-service-dbus.c

CLEANFILES += \
	src/nm-fortisslvpn-pppd-service-dbus.h \
	src/nm-fortisslvpn-pppd-service-dbus.c

EXTRA_DIST += \
	src/nm-fortisslvpn-pppd-service.xml

###############################################################################

libexec_PROGRAMS += src/nm-fortisslvpn-service

src_nm_fortisslvpn_service_SOURCES = \
	shared/nm-utils/nm-shared-utils.c \
	src/nm-ppp-status.h \
	src/nm-fortisslvpn-service.h \
	src/nm-fortisslvpn-service.c
src_nm_fortisslvpn_service_CPPFLAGS = $(src_cppflags)
src_nm_fortisslvpn_service_LDADD = \
	src/libnm-fortisslvpn-pppd-service-dbus.la \
	$(GLIB_LIBS) \
	$(LIBNM_LIBS)

###############################################################################

pppd_plugindir = $(PPPD_PLUGIN_DIR)
pppd_plugin_LTLIBRARIES = src/nm-fortisslvpn-pppd-plugin.la

src_nm_fortisslvpn_pppd_plugin_la_SOURCES = \
	shared/nm-utils/nm-shared-utils.c \
	src/nm-fortisslvpn-pppd-plugin.c \
	src/nm-ppp-status.h
src_nm_fortisslvpn_pppd_plugin_la_CPPFLAGS = $(src_cppflags)
src_nm_fortisslvpn_pppd_plugin_la_LDFLAGS = \
	-module -avoid-version
src_nm_fortisslvpn_pppd_plugin_la_LIBADD = \
	src/libnm-fortisslvpn-pppd-service-dbus.la \
	$(GLIB_LIBS) \
	$(LIBNM_LIBS)

###############################################################################

properties/resources.h: properties/gresource.xml
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ --sourcedir=$(srcdir)/properties --generate-header --internal

properties/resources.c: properties/gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/properties --generate-dependencies $(srcdir)/properties/gresource.xml)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ --sourcedir=$(srcdir)/properties --generate-source --internal

plugin_sources = \
	properties/nm-fortisslvpn-editor-plugin.c \
	properties/nm-fortisslvpn-editor-plugin.h

editor_sources = \
	properties/resources.c \
	properties/resources.h \
	properties/nm-fortisslvpn-editor.c \
	properties/nm-fortisslvpn-editor.h

properties_cppflags = \
	-DLOCALEDIR=\"$(datadir)/locale\" \
	-I$(srcdir)/shared \
	$(GLIB_CFLAGS)

CLEANFILES += \
	properties/resources.c \
	properties/resources.h

EXTRA_DIST += \
	properties/gresource.xml

###############################################################################

noinst_LTLIBRARIES += properties/libnm-vpn-plugin-fortisslvpn-utils.la

properties_libnm_vpn_plugin_fortisslvpn_utils_la_SOURCES = \
	$(shared_sources)

properties_libnm_vpn_plugin_fortisslvpn_utils_la_CPPFLAGS = \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_BASE \
	-DNM_PLUGIN_DIR=\"$(NM_PLUGIN_DIR)\" \
	$(properties_cppflags) \
	$(LIBNM_CFLAGS)

properties_libnm_vpn_plugin_fortisslvpn_utils_la_LIBADD = \
	$(LIBNM_LIBS) \
	$(DL_LIBS)

noinst_LTLIBRARIES += properties/libnm-vpn-plugin-fortisslvpn-core.la

properties_libnm_vpn_plugin_fortisslvpn_core_la_SOURCES = \
	shared/nm-utils/nm-vpn-plugin-utils.c \
	shared/nm-utils/nm-vpn-plugin-utils.h \
	shared/nm-utils/nm-vpn-plugin-macros.h \
	$(plugin_sources)

properties_libnm_vpn_plugin_fortisslvpn_core_la_CPPFLAGS = \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_BASE \
	-DNM_PLUGIN_DIR=\"$(NM_PLUGIN_DIR)\" \
	$(properties_cppflags) \
	$(LIBNM_CFLAGS)

properties_libnm_vpn_plugin_fortisslvpn_core_la_LIBADD = \
	properties/libnm-vpn-plugin-fortisslvpn-utils.la \
	$(LIBNM_LIBS) \
	$(DL_LIBS)

plugin_LTLIBRARIES += properties/libnm-vpn-plugin-fortisslvpn.la

properties_libnm_vpn_plugin_fortisslvpn_la_SOURCES =
properties_libnm_vpn_plugin_fortisslvpn_la_LIBADD = \
	properties/libnm-vpn-plugin-fortisslvpn-core.la
properties_libnm_vpn_plugin_fortisslvpn_la_LDFLAGS = \
	-avoid-version \
	-Wl,--version-script=$(srcdir)/properties/libnm-vpn-plugin-fortisslvpn.ver

###############################################################################

if WITH_GNOME
plugin_LTLIBRARIES += properties/libnm-vpn-plugin-fortisslvpn-editor.la
endif

properties_libnm_vpn_plugin_fortisslvpn_editor_la_SOURCES = \
	$(editor_sources)

properties_libnm_vpn_plugin_fortisslvpn_editor_la_CPPFLAGS = \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_EDITOR \
	$(properties_cppflags) \
	$(GTK_CFLAGS) \
	$(LIBNM_CFLAGS) \
	$(LIBNMA_CFLAGS)

properties_libnm_vpn_plugin_fortisslvpn_editor_la_LIBADD = \
	properties/libnm-vpn-plugin-fortisslvpn-utils.la \
	$(GLIB_LIBS) \
	$(GTK_LIBS) \
	$(LIBNM_LIBS) \
	$(LIBNMA_LIBS)

properties_libnm_vpn_plugin_fortisslvpn_editor_la_LDFLAGS = \
	-avoid-version \
	-Wl,--version-script=$(srcdir)/properties/libnm-vpn-plugin-fortisslvpn-editor.ver

###############################################################################

if WITH_LIBNM_GLIB
noinst_LTLIBRARIES += properties/libnm-fortisslvpn-properties-core.la
endif

properties_libnm_fortisslvpn_properties_core_la_SOURCES = \
	$(shared_sources) \
	$(plugin_sources) \
	$(editor_sources)

properties_libnm_fortisslvpn_properties_core_la_CPPFLAGS = \
	-DNM_VPN_OLD \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
	$(properties_cppflags) \
	$(GTK_CFLAGS) \
	$(LIBNM_GLIB_CFLAGS) \
	$(LIBNM_GTK_CFLAGS)

properties_libnm_fortisslvpn_properties_core_la_LIBADD = \
	$(GLIB_LIBS) \
	$(GTK_LIBS) \
	$(LIBNM_GLIB_LIBS) \
	$(LIBNM_GTK_LIBS)


if WITH_LIBNM_GLIB
plugin_LTLIBRARIES += properties/libnm-fortisslvpn-properties.la
endif

properties_libnm_fortisslvpn_properties_la_SOURCES =
properties_libnm_fortisslvpn_properties_la_LIBADD = \
	properties/libnm-fortisslvpn-properties-core.la
properties_libnm_fortisslvpn_properties_la_LDFLAGS = \
	-avoid-version \
	-Wl,--version-script=$(srcdir)/properties/libnm-fortisslvpn-properties.ver

EXTRA_DIST += \
	properties/libnm-vpn-plugin-fortisslvpn.ver \
	properties/libnm-vpn-plugin-fortisslvpn-editor.ver \
	properties/libnm-fortisslvpn-properties.ver \
	properties/nm-fortisslvpn-dialog.ui

###############################################################################

if WITH_GNOME
libexec_PROGRAMS += auth-dialog/nm-fortisslvpn-auth-dialog
endif

auth_dialog_nm_fortisslvpn_auth_dialog_SOURCES = \
	$(shared_sources) \
	auth-dialog/main.c
auth_dialog_nm_fortisslvpn_auth_dialog_CPPFLAGS = \
	-I$(srcdir)/shared \
	$(GLIB_CFLAGS) \
	$(GTK_CFLAGS) \
	$(LIBNM_CFLAGS) \
	$(LIBNMA_CFLAGS) \
	$(LIBSECRET_CFLAGS)
auth_dialog_nm_fortisslvpn_auth_dialog_LDADD = \
	$(GLIB_LIBS) \
	$(GTK_LIBS) \
	$(LIBNM_LIBS) \
	$(LIBNMA_LIBS) \
	$(LIBSECRET_LIBS)

###############################################################################

if WITH_LIBNM_GLIB
# Install a file with full path to plugins for an old gnome-shell
# https://bugzilla.gnome.org/show_bug.cgi?id=693590
install-compat-name-file:
	mkdir -p $(DESTDIR)$(sysconfdir)/NetworkManager/VPN
	sed -e "1s|^|# This file is obsoleted by a file in $(NM_VPN_SERVICE_DIR)\n\n|" \
	    -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|g' \
	    -e 's|[@]PLUGINDIR[@]|@NM_PLUGIN_DIR@|g' \
	    <$(srcdir)/nm-fortisslvpn-service.name.in \
	    >$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-fortisslvpn-service.name

uninstall-hook:
	 rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-fortisslvpn-service.name
else
install-compat-name-file:
	@:
endif

install-data-hook: install-compat-name-file
	$(mkinstalldirs) -m 0700 $(DESTDIR)$(fortisslvpn_statedir)

appdatadir = $(datadir)/appdata
appdata_files = $(appdata_in_files:.xml.in=.xml)
if WITH_GNOME
appdata_DATA = $(appdata_files)
endif
appdata_in_files = appdata/network-manager-fortisslvpn.metainfo.xml.in
@INTLTOOL_XML_RULE@

nm-fortisslvpn-service.name: $(srcdir)/nm-fortisslvpn-service.name.in
	$(AM_V_GEN) sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|g' \
	    -e 's|[@]PLUGINDIR[@]/|@NM_PLUGIN_DIR_NAME_FILE@|g' \
	    $^ >$@

EXTRA_DIST += \
	nm-fortisslvpn-service.name.in \
	$(dbusservice_DATA) \
	$(appdata_in_files) \
	$(appdata_files) \
	intltool-extract.in \
	intltool-merge.in \
	intltool-update.in \
	\
	shared/README \
	shared/nm-utils/gsystem-local-alloc.h \
	shared/nm-utils/nm-glib.h \
	shared/nm-utils/nm-macros-internal.h \
	shared/nm-utils/nm-shared-utils.c \
	shared/nm-utils/nm-shared-utils.h \
	shared/nm-default.h \
	shared/nm-service-defines.h \
	$(NULL)

CLEANFILES += \
	$(nmvpnservice_DATA) \
	$(appdata_files)

DISTCLEANFILES = \
	intltool-extract \
	intltool-merge \
	intltool-update

ACLOCAL_AMFLAGS = -I m4