summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-08 21:47:23 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-08 21:47:23 -0400
commitd56a9ce678101d6dc66e0d322d5f33e04bbc98fc (patch)
tree8a3e37f9faa37b27c5f762775367fe03d92b1364 /gdbus
parent792a13279603b2533961a48b778514c805ef39cd (diff)
downloaddconf-d56a9ce678101d6dc66e0d322d5f33e04bbc98fc.tar.gz
massive Makefile reorganisation
Clean up the Makefiles and make them as similar as possible. Move CFLAGS to a common point of definition and stop using -I so much. Replace the 'dbus stub' with libdconf-mock.a in tests/. Fill in some stubs for future mock code for shm and gvdb (just to get things compiling for now).
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/.gitignore5
-rw-r--r--gdbus/Makefile.am23
-rw-r--r--gdbus/dconf-gdbus-filter.c2
-rw-r--r--gdbus/dconf-gdbus-thread.c2
4 files changed, 25 insertions, 7 deletions
diff --git a/gdbus/.gitignore b/gdbus/.gitignore
index 9bc55b6..0269bef 100644
--- a/gdbus/.gitignore
+++ b/gdbus/.gitignore
@@ -1 +1,4 @@
-libdconf-gdbus.a
+libdconf-gdbus-filter.a
+libdconf-gdbus-filter-shared.a
+libdconf-gdbus-thread.a
+libdconf-gdbus-thread-shared.a
diff --git a/gdbus/Makefile.am b/gdbus/Makefile.am
index 2486e90..cee235c 100644
--- a/gdbus/Makefile.am
+++ b/gdbus/Makefile.am
@@ -1,6 +1,21 @@
include $(top_srcdir)/Makefile.gtester
-noinst_LIBRARIES = libdconf-gdbus.a
-INCLUDES = $(glib_CFLAGS) -I$(top_srcdir)/engine -I$(top_srcdir)/common
-libdconf_gdbus_a_CFLAGS = -Wall -fPIC -DPIC
-libdconf_gdbus_a_SOURCES = dconf-gdbus-thread.c
+noinst_LIBRARIES = \
+ libdconf-gdbus-thread.a \
+ libdconf-gdbus-thread-shared.a \
+ libdconf-gdbus-filter.a \
+ libdconf-gdbus-filter-shared.a
+
+libdconf_gdbus_thread_a_CFLAGS = $(gio_CFLAGS)
+libdconf_gdbus_thread_a_SOURCES = \
+ dconf-gdbus-thread.c
+
+libdconf_gdbus_thread_shared_a_CFLAGS = $(libdconf_gdbus_thread_a_CFLAGS) -fPIC -DPIC
+libdconf_gdbus_thread_shared_a_SOURCES = $(libdconf_gdbus_thread_a_SOURCES)
+
+libdconf_gdbus_filter_a_CFLAGS = $(gio_CFLAGS)
+libdconf_gdbus_filter_a_SOURCES = \
+ dconf-gdbus-filter.c
+
+libdconf_gdbus_filter_shared_a_CFLAGS = $(libdconf_gdbus_filter_a_CFLAGS) -fPIC -DPIC
+libdconf_gdbus_filter_shared_a_SOURCES = $(libdconf_gdbus_filter_a_SOURCES)
diff --git a/gdbus/dconf-gdbus-filter.c b/gdbus/dconf-gdbus-filter.c
index 2515a33..e074bce 100644
--- a/gdbus/dconf-gdbus-filter.c
+++ b/gdbus/dconf-gdbus-filter.c
@@ -1,4 +1,4 @@
-#include "dconf-engine.h"
+#include "../engine/dconf-engine.h"
diff --git a/gdbus/dconf-gdbus-thread.c b/gdbus/dconf-gdbus-thread.c
index 3c868b5..47bc6cb 100644
--- a/gdbus/dconf-gdbus-thread.c
+++ b/gdbus/dconf-gdbus-thread.c
@@ -20,7 +20,7 @@
* Author: Ryan Lortie <desrt@desrt.ca>
*/
-#include "dconf-engine.h"
+#include "../engine/dconf-engine.h"
/* We interact with GDBus using a worker thread just for dconf.
*