Makefile.am 1.63 KB
Newer Older
1 2 3
bin_PROGRAMS = geoclue-position-server-hostip

geoclue_position_server_hostip_SOURCES = geoclue_position_server_hostip.c \
4 5
				geoclue_position_signal_marshal.c \
				../geoclue_position_error.c
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

service_in_files = org.foinse_project.geoclue.position.hostip.service.in
service_files = $(service_in_files:.service.in=.service)


# D-Bus service descriptor installation
servicedir = $(DBUS_SERVICES_DIR)
service_DATA = $(service_files)
execdir = @bindir@
$(service_DATA): $(service_in_files) Makefile
	for f in $(service_in_files) ; do \
		sed -e 's;@execdir@;$(execdir);' $< > $@ ;\
	done


AM_CPPFLAGS = $(YAHOO_CFLAGS) -I$(top_srcdir)
AM_LDFLAGS = $(YAHOO_LIBS) ../../geoclue/libgeoclue.la

EXTRA_DIST = \
25 26
		geoclue_position_server_hostip.h \
		position_hostip.desc \
27 28 29 30 31 32 33 34 35 36 37 38 39 40
		$(service_in_files)

BUILT_SOURCES = \
	geoclue_position_signal_marshal.c	\
	geoclue_position_signal_marshal.h	\
	geoclue_position_server_glue.h \
		$(service_files)

CLEANFILES = \
	geoclue_position_signal_marshal.c	\
	geoclue_position_signal_marshal.h	\
	geoclue_position_server_glue.h \
		$(service_files)

41
backendregistrationdir = $(datadir)/geoclue/backend
Jussi Kukkonen's avatar
Jussi Kukkonen committed
42
backendregistration_DATA = \
43 44
	position_hostip.desc

45 46 47 48 49 50 51 52 53 54

geoclue_position_server_glue.h:../../geoclue/position_glue.xml
	$(DBUS_BINDING_TOOL) --prefix=geoclue_position --mode=glib-server  $< |  sed 's;\data = user_data;\data = (DBusGAsyncData\*)user_data;g' > $@ 


geoclue_position_signal_marshal.h:../../geoclue/position_signal_marshal.list
	glib-genmarshal --prefix _geoclue_position --header  $< > $@ 
geoclue_position_signal_marshal.c:../../geoclue/position_signal_marshal.list
	glib-genmarshal --prefix _geoclue_position --body  $< > $@