304 lines
8.3 KiB
Makefile
304 lines
8.3 KiB
Makefile
AUTOMAKE_OPTIONS = 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 = $(datadir)/dbus-1/system.d
|
|
dbusservice_DATA = nm-pptp-service.conf
|
|
|
|
nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
|
|
nmvpnservice_DATA = nm-pptp-service.name
|
|
|
|
BUILT_SOURCES =
|
|
|
|
###############################################################################
|
|
|
|
shared_sources = \
|
|
shared/nm-default.h \
|
|
shared/nm-utils/gsystem-local-alloc.h \
|
|
shared/nm-utils/nm-macros-internal.h \
|
|
shared/nm-utils/nm-shared-utils.c \
|
|
shared/nm-utils/nm-shared-utils.h
|
|
|
|
EXTRA_DIST += \
|
|
shared/README
|
|
|
|
src_cppflags = \
|
|
$(GLIB_CFLAGS) \
|
|
$(LIBNM_CFLAGS) \
|
|
-I$(top_srcdir)/shared \
|
|
-I$(builddir)/src \
|
|
-DNM_PPTP_LOCALEDIR=\"$(datadir)/locale\" \
|
|
-DNM_PPTP_STATEDIR=\"$(pptp_statedir)\" \
|
|
-DPLUGINDIR=\"$(PPPD_PLUGIN_DIR)\"
|
|
|
|
###############################################################################
|
|
|
|
noinst_LTLIBRARIES += src/libnm-pptp-pppd-service-dbus.la
|
|
|
|
nodist_src_libnm_pptp_pppd_service_dbus_la_SOURCES = \
|
|
src/nm-pptp-pppd-service-dbus.c \
|
|
src/nm-pptp-pppd-service-dbus.h
|
|
|
|
src_libnm_pptp_pppd_service_dbus_la_CPPFLAGS = \
|
|
$(src_cppflags) \
|
|
$(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(AM_CPPFLAGS))
|
|
|
|
src/nm-pptp-pppd-service-dbus.h: $(top_srcdir)/src/nm-pptp-pppd-service.xml
|
|
$(AM_V_GEN) gdbus-codegen \
|
|
--generate-c-code $(basename $@) \
|
|
--c-namespace NMDBus \
|
|
--interface-prefix org.freedesktop.NetworkManager \
|
|
$<
|
|
|
|
src/nm-pptp-pppd-service-dbus.c: src/nm-pptp-pppd-service-dbus.h
|
|
@true
|
|
|
|
BUILT_SOURCES += \
|
|
src/nm-pptp-pppd-service-dbus.h \
|
|
src/nm-pptp-pppd-service-dbus.c
|
|
|
|
CLEANFILES += \
|
|
src/nm-pptp-pppd-service-dbus.h \
|
|
src/nm-pptp-pppd-service-dbus.c
|
|
|
|
EXTRA_DIST += \
|
|
src/nm-pptp-pppd-service.xml
|
|
|
|
###############################################################################
|
|
|
|
libexec_PROGRAMS += src/nm-pptp-service
|
|
|
|
src_nm_pptp_service_SOURCES = \
|
|
$(shared_sources) \
|
|
shared/nm-service-defines.h \
|
|
src/nm-ppp-status.h \
|
|
src/nm-pptp-service.h \
|
|
src/nm-pptp-service.c
|
|
src_nm_pptp_service_CPPFLAGS = $(src_cppflags)
|
|
src_nm_pptp_service_LDADD = \
|
|
src/libnm-pptp-pppd-service-dbus.la \
|
|
$(GLIB_LIBS) \
|
|
$(LIBNM_LIBS)
|
|
|
|
###############################################################################
|
|
|
|
pppd_plugindir = $(PPPD_PLUGIN_DIR)
|
|
pppd_plugin_LTLIBRARIES = src/nm-pptp-pppd-plugin.la
|
|
|
|
src_nm_pptp_pppd_plugin_la_SOURCES = \
|
|
$(shared_sources) \
|
|
src/nm-pptp-pppd-plugin.c \
|
|
src/nm-ppp-status.h
|
|
src_nm_pptp_pppd_plugin_la_CPPFLAGS = $(src_cppflags)
|
|
src_nm_pptp_pppd_plugin_la_LDFLAGS = \
|
|
-module -avoid-version
|
|
src_nm_pptp_pppd_plugin_la_LIBADD = \
|
|
$(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 = \
|
|
shared/nm-utils/nm-vpn-plugin-macros.h \
|
|
properties/nm-pptp-editor-plugin.c \
|
|
properties/nm-pptp-editor-plugin.h
|
|
|
|
editor_sources = \
|
|
$(shared_sources) \
|
|
shared/nm-utils/nm-vpn-plugin-utils.h \
|
|
properties/resources.c \
|
|
properties/resources.h \
|
|
properties/advanced-dialog.c \
|
|
properties/advanced-dialog.h \
|
|
properties/nm-pptp-editor.c \
|
|
properties/nm-pptp-editor.h
|
|
|
|
properties_cppflags = \
|
|
-DLOCALEDIR=\"$(datadir)/locale\" \
|
|
-I$(top_srcdir)/shared
|
|
|
|
CLEANFILES += \
|
|
properties/resources.c \
|
|
properties/resources.h
|
|
|
|
EXTRA_DIST += \
|
|
properties/nm-pptp-dialog.ui \
|
|
properties/gresource.xml \
|
|
properties/libnm-pptp-properties.ver \
|
|
properties/libnm-vpn-plugin-pptp.ver \
|
|
properties/libnm-vpn-plugin-pptp-editor.ver
|
|
|
|
###############################################################################
|
|
|
|
plugin_LTLIBRARIES += properties/libnm-vpn-plugin-pptp.la
|
|
|
|
properties_libnm_vpn_plugin_pptp_la_SOURCES = \
|
|
shared/nm-utils/nm-vpn-plugin-utils.c \
|
|
$(plugin_sources)
|
|
properties_libnm_vpn_plugin_pptp_la_CFLAGS = \
|
|
$(GLIB_CFLAGS) \
|
|
$(LIBNM_CFLAGS)
|
|
properties_libnm_vpn_plugin_pptp_la_CPPFLAGS = \
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_BASE \
|
|
-DNM_PLUGIN_DIR=\"$(NM_PLUGIN_DIR)\" \
|
|
$(properties_cppflags)
|
|
properties_libnm_vpn_plugin_pptp_la_LIBADD = \
|
|
$(GLIB_LIBS) \
|
|
$(LIBNM_LIBS)
|
|
properties_libnm_vpn_plugin_pptp_la_LDFLAGS = \
|
|
-avoid-version \
|
|
-Wl,--version-script="$(srcdir)/properties/libnm-vpn-plugin-pptp.ver"
|
|
|
|
###############################################################################
|
|
|
|
if WITH_GNOME
|
|
plugin_LTLIBRARIES += properties/libnm-vpn-plugin-pptp-editor.la
|
|
endif
|
|
|
|
properties_libnm_vpn_plugin_pptp_editor_la_SOURCES = \
|
|
$(editor_sources)
|
|
properties_libnm_vpn_plugin_pptp_editor_la_CFLAGS = \
|
|
$(GLIB_CFLAGS) \
|
|
$(GTK_CFLAGS) \
|
|
$(LIBNM_CFLAGS) \
|
|
$(LIBNMA_CFLAGS)
|
|
properties_libnm_vpn_plugin_pptp_editor_la_CPPFLAGS = \
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_EDITOR \
|
|
$(properties_cppflags)
|
|
properties_libnm_vpn_plugin_pptp_editor_la_LIBADD = \
|
|
$(GLIB_LIBS) \
|
|
$(GTK_LIBS) \
|
|
$(LIBNM_LIBS) \
|
|
$(LIBNMA_LIBS)
|
|
properties_libnm_vpn_plugin_pptp_editor_la_LDFLAGS = \
|
|
-avoid-version \
|
|
-Wl,--version-script="$(srcdir)/properties/libnm-vpn-plugin-pptp-editor.ver"
|
|
|
|
###############################################################################
|
|
|
|
if WITH_LIBNM_GLIB
|
|
plugin_LTLIBRARIES += properties/libnm-pptp-properties.la
|
|
endif
|
|
|
|
properties_libnm_pptp_properties_la_SOURCES = \
|
|
shared/nm-utils/nm-glib.h \
|
|
$(plugin_sources) \
|
|
$(editor_sources)
|
|
properties_libnm_pptp_properties_la_CFLAGS = \
|
|
$(GLIB_CFLAGS) \
|
|
$(GTK_CFLAGS) \
|
|
$(LIBNM_GLIB_CFLAGS) \
|
|
$(LIBNM_GTK_CFLAGS)
|
|
properties_libnm_pptp_properties_la_CPPFLAGS = \
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
|
|
-DNM_VPN_OLD \
|
|
$(properties_cppflags)
|
|
properties_libnm_pptp_properties_la_LIBADD = \
|
|
$(GLIB_LIBS) \
|
|
$(GTK_LIBS) \
|
|
$(LIBNM_GLIB_LIBS) \
|
|
$(LIBNM_GLIB_LIBS)
|
|
properties_libnm_pptp_properties_la_LDFLAGS = \
|
|
-avoid-version \
|
|
-Wl,--version-script="$(srcdir)/properties/libnm-pptp-properties.ver"
|
|
|
|
###############################################################################
|
|
|
|
if WITH_GNOME
|
|
libexec_PROGRAMS += auth-dialog/nm-pptp-auth-dialog
|
|
endif
|
|
|
|
auth_dialog_nm_pptp_auth_dialog_SOURCES = \
|
|
$(shared_sources) \
|
|
properties/resources.c \
|
|
properties/resources.h \
|
|
auth-dialog/main.c
|
|
auth_dialog_nm_pptp_auth_dialog_CFLAGS = \
|
|
$(GLIB_CFLAGS) \
|
|
$(GTK_CFLAGS) \
|
|
$(LIBNM_CFLAGS) \
|
|
$(LIBNMA_CFLAGS) \
|
|
$(LIBSECRET_CFLAGS)
|
|
auth_dialog_nm_pptp_auth_dialog_CPPFLAGS = \
|
|
-I$(top_srcdir)/shared
|
|
auth_dialog_nm_pptp_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-data-hook:
|
|
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-pptp-service.name.in \
|
|
>$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-pptp-service.name
|
|
|
|
uninstall-hook:
|
|
rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-pptp-service.name
|
|
endif
|
|
|
|
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-pptp.metainfo.xml.in
|
|
@INTLTOOL_XML_RULE@
|
|
|
|
nm-pptp-service.name: $(srcdir)/nm-pptp-service.name.in
|
|
$(AM_V_GEN) sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|g' \
|
|
-e 's|[@]PLUGINDIR[@]/|@NM_PLUGIN_DIR_NAME_FILE@|g' \
|
|
$^ >$@
|
|
|
|
EXTRA_DIST += \
|
|
nm-pptp-service.name.in \
|
|
$(dbusservice_DATA) \
|
|
$(appdata_in_files) \
|
|
$(appdata_files) \
|
|
intltool-extract.in \
|
|
intltool-merge.in \
|
|
intltool-update.in
|
|
|
|
CLEANFILES += \
|
|
$(nmvpnservice_DATA) \
|
|
$(appdata_files)
|
|
|
|
DISTCLEANFILES = \
|
|
intltool-extract \
|
|
intltool-merge \
|
|
intltool-update
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|