Makefile.am 3.85 KB
Newer Older
1 2
include $(top_srcdir)/Makefile.decl

Zeeshan Ali's avatar
Zeeshan Ali committed
3 4
libexec_PROGRAMS = geoclue

5
SUBDIRS = public-api agent geocode-glib
6

7 8
interfacedir = $(datadir)/dbus-1/interfaces
interface_DATA = org.freedesktop.GeoClue2.xml
9

10 11 12 13
dbus_built_sources = geoclue-interface.c 	\
		     geoclue-interface.h 	\
		     wpa_supplicant-interface.c \
		     wpa_supplicant-interface.h
Zeeshan Ali's avatar
Zeeshan Ali committed
14
geoclue-interface.c: geoclue-interface.h
15
geoclue-interface.h: Makefile.am $(interface_DATA)
16
	$(AM_V_GEN)$(GDBUS_CODEGEN) \
Zeeshan Ali's avatar
Zeeshan Ali committed
17 18 19
		--interface-prefix org.freedesktop.GeoClue2.	\
		--c-namespace GClue				\
		--generate-c-code geoclue-interface		\
20
    		--generate-docbook=docs				\
21
		$(srcdir)/$(interface_DATA)
Zeeshan Ali's avatar
Zeeshan Ali committed
22

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
wpa_supplicant-interface.c: wpa_supplicant-interface.h
wpa_supplicant-interface.h: Makefile.am fi.w1.wpa_supplicant1.xml
	$(AM_V_GEN)$(GDBUS_CODEGEN) \
		--interface-prefix fi.w1			\
		--annotate "fi.w1.wpa_supplicant1"		\
		org.gtk.GDBus.C.Name WPA_Supplicant		\
		--annotate "fi.w1.wpa_supplicant1.Interface"	\
		org.gtk.GDBus.C.Name WPA_Interface		\
		--annotate "fi.w1.wpa_supplicant1.BSS"		\
		org.gtk.GDBus.C.Name WPA_BSS			\
		--annotate "fi.w1.wpa_supplicant1.BSS:SSID"	\
		org.gtk.GDBus.C.ForceGVariant whatever		\
		--annotate "fi.w1.wpa_supplicant1.BSS:BSSID"	\
		org.gtk.GDBus.C.ForceGVariant whatever		\
		--annotate "fi.w1.wpa_supplicant1.Interface::BSSAdded"	 \
		org.gtk.GDBus.C.Name BSS_Added				 \
		--annotate "fi.w1.wpa_supplicant1.Interface::BSSRemoved" \
		org.gtk.GDBus.C.Name BSS_Removed			 \
		--generate-c-code wpa_supplicant-interface 	\
		$(srcdir)/fi.w1.wpa_supplicant1.xml

44 45 46 47 48 49
gclue-marshal.c: gclue-marshal.list
	$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gclue_marshal $(srcdir)/gclue-marshal.list --header --body > gclue-marshal.c

gclue-marshal.h: gclue-marshal.list
	$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gclue_marshal $(srcdir)/gclue-marshal.list --header > gclue-marshal.h

Zeeshan Ali's avatar
Zeeshan Ali committed
50 51
BUILT_SOURCES = 		\
	$(dbus_built_sources)	\
52 53
	gclue-marshal.c 	\
	gclue-marshal.h		\
Zeeshan Ali's avatar
Zeeshan Ali committed
54 55
	$(NULL)

56 57 58
noinst_LTLIBRARIES = libgeoclue.la

AM_CPPFLAGS = $(GEOCLUE_CFLAGS) 		     	  \
59
	      $(ModemManager_CFLAGS)			  \
60 61 62
	      $(WARN_CFLAGS)			     	  \
	      -DLOCALEDIR="\"$(datadir)/locale\"" 	  \
	      -DG_LOG_DOMAIN=\""Geoclue"\"	     	  \
63 64
	      -DABS_TOP_SRCDIR=\""$(abs_top_srcdir)"\" 	  \
	      -DSYSCONFDIR=\""$(sysconfdir)"\"		  \
65
	      -I$(srcdir)/agent				  \
66 67 68
	      -I$(builddir)/agent			  \
	      -I$(srcdir)/public-api			  \
	      -I$(builddir)/public-api
69 70

libgeoclue_la_SOURCES =	 	 \
Zeeshan Ali's avatar
Zeeshan Ali committed
71
	$(BUILT_SOURCES) 	 \
72 73
	gclue-client-info.h 	 \
	gclue-client-info.c 	 \
74 75
	gclue-config.h 	 	 \
	gclue-config.c 	 	 \
76 77
	gclue-error.h 	 	 \
	gclue-error.c 	 	 \
78 79
	gclue-location-source.h	 \
	gclue-location-source.c	 \
Zeeshan Ali's avatar
Zeeshan Ali committed
80 81
	gclue-locator.h 	 \
	gclue-locator.c 	 \
Zeeshan Ali's avatar
Zeeshan Ali committed
82 83 84 85
	gclue-service-manager.h  \
	gclue-service-manager.c  \
	gclue-service-client.h   \
	gclue-service-client.c   \
86 87
	gclue-service-location.h \
	gclue-service-location.c \
Zeeshan Ali's avatar
Zeeshan Ali committed
88 89
	gclue-web-source.c	 \
	gclue-web-source.h	 \
90 91
	gclue-wifi.h 		 \
	gclue-wifi.c		 \
92 93
	gclue-mozilla.h		 \
	gclue-mozilla.c		 \
Zeeshan Ali's avatar
Zeeshan Ali committed
94
	$(NULL)
95 96

if BUILD_MODEM_SOURCE
97
libgeoclue_la_SOURCES += gclue-modem.c gclue-modem.h
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
endif

if BUILD_3G_SOURCE
libgeoclue_la_SOURCES += gclue-3g.c gclue-3g.h
endif

if BUILD_MODEM_GPS_SOURCE
libgeoclue_la_SOURCES += gclue-modem-gps.c gclue-modem-gps.h
endif

libgeoclue_la_LIBADD = \
	$(GEOCLUE_LIBS)			\
	$(ModemManager_LIBS)		\
	$(LIBS)				\
	$(NULL)
Zeeshan Ali's avatar
Zeeshan Ali committed
113

114 115 116
geoclue_SOURCES =	 	  \
	gclue-main.c	 	  \
	$(NULL)
117 118 119 120 121
geoclue_LDADD = $(GEOCLUE_LIBS) 	  		    	\
		$(LIBS) 		  		    	\
		$(builddir)/libgeoclue.la		    	\
		$(builddir)/agent/libgeoclue-agent.la 		\
		$(builddir)/geocode-glib/libgeocode-glib.la 	\
122
		$(builddir)/public-api/libgeoclue-public-api.la
Zeeshan Ali's avatar
Zeeshan Ali committed
123 124

CLEANFILES = $(BUILT_SOURCES)
125 126 127
EXTRA_DIST = $(interface_DATA) 	       \
	     fi.w1.wpa_supplicant1.xml \
	     gclue-marshal.list
Zeeshan Ali's avatar
Zeeshan Ali committed
128

Zeeshan Ali's avatar
Zeeshan Ali committed
129
pkgconfigdir = $(libdir)/pkgconfig
130
pkgconfig_DATA = geoclue-$(GEOCLUE_API_VERSION).pc
Zeeshan Ali's avatar
Zeeshan Ali committed
131

132 133
DISTCLEANFILES = $(pkgconfig_DATA)

Zeeshan Ali's avatar
Zeeshan Ali committed
134
-include $(top_srcdir)/git.mk