2012-11-05 11:35:34 +01:00
|
|
|
SUBDIRS = . tests
|
2011-05-02 22:38:51 -05:00
|
|
|
|
2013-08-22 10:47:21 -04:00
|
|
|
AM_CPPFLAGS = \
|
2015-12-22 12:18:22 +01:00
|
|
|
-I${top_srcdir}/shared \
|
|
|
|
|
-I${top_builddir}/shared \
|
2014-05-19 13:44:02 -04:00
|
|
|
-I${top_srcdir}/libnm-core \
|
|
|
|
|
-I${top_builddir}/libnm-core \
|
2013-08-22 10:47:21 -04:00
|
|
|
$(GLIB_CFLAGS) \
|
2014-07-06 16:53:02 -04:00
|
|
|
-DNETWORKMANAGER_COMPILATION \
|
2013-08-22 10:47:21 -04:00
|
|
|
-DNMCONFDIR=\"$(nmconfdir)\" \
|
|
|
|
|
-DSYSCONFDIR=\"$(sysconfdir)\" \
|
|
|
|
|
-DLIBEXECDIR=\"$(libexecdir)\"
|
|
|
|
|
|
2011-05-02 22:38:51 -05:00
|
|
|
###########################################
|
|
|
|
|
# Test libraries
|
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
|
libtest-dispatcher-envp.la
|
|
|
|
|
|
|
|
|
|
|
2007-08-12 15:21:15 +00:00
|
|
|
dbusservicedir = $(DBUS_SYS_DIR)
|
2008-04-27 14:30:06 +00:00
|
|
|
dbusservice_DATA = \
|
2015-04-02 11:52:00 +02:00
|
|
|
nm-dispatcher.conf
|
2007-08-12 15:21:15 +00:00
|
|
|
|
2008-04-27 14:30:06 +00:00
|
|
|
libexec_PROGRAMS = \
|
2015-04-02 11:52:00 +02:00
|
|
|
nm-dispatcher
|
2008-07-09 14:05:49 +00:00
|
|
|
|
|
|
|
|
|
2014-05-14 14:51:43 -05:00
|
|
|
nm_dispatcher_SOURCES = \
|
|
|
|
|
nm-dispatcher.c \
|
|
|
|
|
nm-dispatcher-api.h \
|
2011-05-02 22:38:51 -05:00
|
|
|
nm-dispatcher-utils.c \
|
|
|
|
|
nm-dispatcher-utils.h
|
2008-04-27 14:30:06 +00:00
|
|
|
|
2014-05-14 14:51:43 -05:00
|
|
|
nm_dispatcher_LDADD = \
|
2014-05-19 13:44:02 -04:00
|
|
|
$(top_builddir)/libnm/libnm.la \
|
2014-09-03 12:27:33 -04:00
|
|
|
libnmdbus-dispatcher.la \
|
2009-08-20 12:31:17 -05:00
|
|
|
$(GLIB_LIBS)
|
2008-04-27 14:30:06 +00:00
|
|
|
|
2014-09-10 13:51:53 -04:00
|
|
|
# See note about gdbus-codegen in introspection/Makefile.am
|
2014-09-03 12:27:33 -04:00
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libnmdbus-dispatcher.la
|
|
|
|
|
|
2014-10-13 21:38:36 +02:00
|
|
|
nodist_libnmdbus_dispatcher_la_SOURCES = \
|
2014-09-03 12:27:33 -04:00
|
|
|
nmdbus-dispatcher.c \
|
|
|
|
|
nmdbus-dispatcher.h
|
|
|
|
|
|
|
|
|
|
libnmdbus_dispatcher_la_CPPFLAGS = $(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(AM_CPPFLAGS))
|
|
|
|
|
|
|
|
|
|
nmdbus-dispatcher.h: nm-dispatcher.xml
|
|
|
|
|
$(AM_V_GEN) gdbus-codegen \
|
|
|
|
|
--generate-c-code $(basename $@) \
|
|
|
|
|
--c-namespace NMDBus \
|
|
|
|
|
--interface-prefix org.freedesktop \
|
|
|
|
|
$<
|
|
|
|
|
|
|
|
|
|
nmdbus-dispatcher.c: nmdbus-dispatcher.h
|
|
|
|
|
@true
|
|
|
|
|
|
2014-10-28 17:40:14 -04:00
|
|
|
BUILT_SOURCES = nmdbus-dispatcher.h nmdbus-dispatcher.c
|
|
|
|
|
|
2011-05-02 22:38:51 -05:00
|
|
|
###########################################
|
|
|
|
|
# dispatcher envp
|
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
|
|
libtest_dispatcher_envp_la_SOURCES = \
|
|
|
|
|
nm-dispatcher-utils.c \
|
|
|
|
|
nm-dispatcher-utils.h
|
|
|
|
|
|
|
|
|
|
libtest_dispatcher_envp_la_CPPFLAGS = \
|
2013-08-22 10:47:21 -04:00
|
|
|
$(AM_CPPFLAGS)
|
2011-05-02 22:38:51 -05:00
|
|
|
|
|
|
|
|
libtest_dispatcher_envp_la_LIBADD = \
|
2014-05-19 13:44:02 -04:00
|
|
|
$(top_builddir)/libnm/libnm.la \
|
2014-09-03 12:27:33 -04:00
|
|
|
$(GLIB_LIBS)
|
2011-05-02 22:38:51 -05:00
|
|
|
|
|
|
|
|
|
2008-05-01 10:11:14 +00:00
|
|
|
dbusactivationdir = $(datadir)/dbus-1/system-services
|
|
|
|
|
dbusactivation_in_files = org.freedesktop.nm_dispatcher.service.in
|
|
|
|
|
dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service)
|
|
|
|
|
|
|
|
|
|
%.service: %.service.in
|
|
|
|
|
$(edit) $< >$@
|
|
|
|
|
|
|
|
|
|
edit = @sed \
|
|
|
|
|
-e 's|@sbindir[@]|$(sbindir)|g' \
|
|
|
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
|
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g'
|
2008-04-27 14:30:06 +00:00
|
|
|
|
2008-08-17 22:54:49 +00:00
|
|
|
dispatcherdir=$(sysconfdir)/NetworkManager/dispatcher.d
|
|
|
|
|
install-data-hook:
|
|
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(dispatcherdir)
|
2014-06-07 01:17:16 +02:00
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(dispatcherdir)/pre-down.d
|
|
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(dispatcherdir)/pre-up.d
|
2015-07-14 18:17:33 +02:00
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(dispatcherdir)/no-wait.d
|
2008-08-17 22:54:49 +00:00
|
|
|
|
2014-10-13 21:38:36 +02:00
|
|
|
CLEANFILES = $(nodist_libnmdbus_dispatcher_la_SOURCES) $(dbusactivation_DATA)
|
2008-04-27 14:30:06 +00:00
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
|
$(dbusservice_DATA) \
|
2008-05-01 10:11:14 +00:00
|
|
|
$(dbusactivation_in_files) \
|
2008-04-27 14:30:06 +00:00
|
|
|
nm-dispatcher.xml
|
2007-08-12 15:21:15 +00:00
|
|
|
|