Makefile.am 1.24 KB
Newer Older
1 2 3 4 5
INCLUDES = \
	-I${top_srcdir} \
	-I${top_srcdir}/include \
	-I${top_srcdir}/libnm-util \
	-I${top_srcdir}/src \
6
	-I${top_builddir}/marshallers
7 8 9 10 11 12

noinst_LTLIBRARIES = libppp-manager.la

libppp_manager_la_SOURCES = \
	nm-ppp-manager.c \
	nm-ppp-manager.h \
13
	nm-ppp-status.h
14

15
nm-ppp-manager-glue.h: $(top_srcdir)/introspection/nm-ppp-manager.xml
16
	dbus-binding-tool --prefix=nm_ppp_manager --mode=glib-server --output=$@ $<
17 18 19 20 21

built_sources = nm-ppp-manager-glue.h

$(libppp_manager_la_OBJECTS): $(built_sources)

22
libppp_manager_la_CPPFLAGS = \
23 24 25 26
	$(DBUS_CFLAGS) \
	$(HAL_CFLAGS) \
	-DG_DISABLE_DEPRECATED \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
27
	-DLIBDIR=\"$(libdir)\" \
28
	-DPLUGINDIR=\"$(PPPD_PLUGIN_DIR)\"
29

30 31 32
libppp_manager_la_LIBADD = \
	$(DBUS_LIBS) \
	$(GLIB_LIBS) \
33
	$(top_builddir)/marshallers/libmarshallers.la
34

35 36
pppd_plugindir = $(PPPD_PLUGIN_DIR)
pppd_plugin_LTLIBRARIES = nm-pppd-plugin.la
37

38 39 40
nm_pppd_plugin_la_SOURCES = \
	nm-pppd-plugin.c \
	nm-pppd-plugin.h \
41 42
	nm-ppp-status.h

43 44 45
nm_pppd_plugin_la_CPPFLAGS = \
	$(DBUS_CFLAGS) \
	$(GLIB_CFLAGS)
46

47 48 49
nm_pppd_plugin_la_LDFLAGS = -module -avoid-version

nm_pppd_plugin_la_LIBADD = \
50 51 52 53
	$(DBUS_LIBS) \
	$(GLIB_LIBS) \
	$(top_builddir)/libnm-util/libnm-util.la

Dan Williams's avatar
Dan Williams committed
54
BUILT_SOURCES = nm-ppp-manager-glue.h
55

56 57
CLEANFILES = $(BUILT_SOURCES)