Add Makefile bits for geoclue provider to properly link against geoclue

and dbus-glib.
This commit is contained in:
Mathieu Trudel-Lapierre
2011-02-09 23:36:14 -05:00
parent 3bf1f85267
commit d4472d291b
+10 -1
View File
@@ -20,7 +20,8 @@ EXTRA_redshift_SOURCES = \
gamma-randr.c gamma-randr.h \
gamma-vidmode.c gamma-vidmode.h \
gamma-w32gdi.c gamma-w32gdi.h \
location-gnome-clock.c location-gnome-clock.h
location-gnome-clock.c location-gnome-clock.h \
location-geoclue.c location-geoclue.h
AM_CFLAGS =
redshift_LDADD = @LIBINTL@
@@ -54,3 +55,11 @@ redshift_LDADD += \
$(GLIB_LIBS) $(GLIB_CFLAGS) \
$(GCONF_LIBS) $(GCONF_CFLAGS)
endif
if ENABLE_GEOCLUE
redshift_SOURCES += location-geoclue.c location-geoclue.h
AM_CFLAGS += $(GLIB_CFLAGS) $(GCONF_CFLAGS) $(GEOCLUE_LIBS) $(GEOCLUE_CFLAGS)
redshift_LDADD += \
$(GLIB_LIBS) $(GLIB_CFLAGS) \
$(GEOCLUE_LIBS) $(GEOCLUE_CFLAGS)
endif