summary refs log tree commit diff
path: root/examples/C/qt/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C/qt/Makefile.am')
-rw-r--r--examples/C/qt/Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/examples/C/qt/Makefile.am b/examples/C/qt/Makefile.am
index 5f0c6a1e..a0cf8f4d 100644
--- a/examples/C/qt/Makefile.am
+++ b/examples/C/qt/Makefile.am
@@ -1,4 +1,5 @@
-INCLUDES = -I${top_srcdir}/include
+INCLUDES = -I${top_srcdir}/include \
+	   -I${top_builddir}/include
 
 AM_CPPFLAGS = \
 	$(DBUS_CFLAGS) \
@@ -7,7 +8,8 @@ AM_CPPFLAGS = \
 noinst_PROGRAMS = \
 	add-connection-wired \
 	list-connections \
-	change-ipv4-addresses
+	change-ipv4-addresses \
+	monitor-nm-running
 
 add_connection_wired_SOURCES = add-connection-wired.cpp
 add_connection_wired_LDADD = \
@@ -24,8 +26,22 @@ change_ipv4_addresses_LDADD = \
 	$(DBUS_LIBS) \
 	$(QT_LIBS)
 
+monitor_nm_running_SOURCES = monitor-nm-running.cpp
+monitor_nm_running_LDADD = \
+	$(DBUS_LIBS) \
+	$(QT_LIBS)
+
+monitor-nm-running.moc: monitor-nm-running.cpp
+	$(AM_V_GEN) $(MOC) -i $< -o $@
+
+BUILT_SOURCES = \
+	monitor-nm-running.moc
+
 EXTRA_DIST = \
 	add-connection-wired.cpp \
 	list-connections.cpp \
-	change-ipv4-addresses.cpp
+	change-ipv4-addresses.cpp \
+	monitor-nm-running.cpp
+
+CLEANFILES = $(BUILT_SOURCES)