summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: faba8e8f61d31a00a9965722e32eced9b3fdf98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

MARSHALFILES = marshal.c marshal.h
BUILT_SOURCES = $(MARSHALFILES)

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


bin_PROGRAMS= \
	mate-file-share-properties

libexec_PROGRAMS= \
	mate-user-share

noinst_LTLIBRARIES = libuser-share-common.la
libuser_share_common_la_SOURCES = user_share-common.c user_share-common.h

AM_CPPFLAGS=	\
	-DPREFIX=\""$(prefix)"\" 			\
	-DBINDIR=\""$(bindir)"\" 			\
	-DLIBEXECDIR=\""$(libexecdir)"\"		\
	-DUSER_SHARE_PROGRAM=\""$(libexecdir)/mate-user-share"\" \
	-DMATELOCALEDIR=\""$(datadir)/locale"\"	\
	-DDATADIR=\""$(datadir)/mate-user-share/"\"	\
	-DHTTPD_CONFIG_TEMPLATE=\""$(datadir)/mate-user-share/dav_user_%s.conf"\"	\
	-DHTTPD_PROGRAM=\""$(HTTPD)"\"	\
	-DHTTPD_MODULES_PATH=\""$(MODULES_PATH)"\"	\
	-I$(top_srcdir) 				\
	-I$(top_builddir) 				\
	$(EXTENSION_CFLAGS)				\
	$(USER_SHARE_CFLAGS)				\
	$(BLUETOOTH_CFLAGS)				\
	$(USER_SHARE_CONFIG_CFLAGS)			\
	$(X_CFLAGS)

mate_user_share_SOURCES =	\
	user_share.c		\
	user_share.h		\
	user_share-private.h	\
	user_share-private.c	\
	http.c			\
	http.h			\
	$(MARSHALFILES)

mate_user_share_LDADD =	\
	libuser-share-common.la	\
	$(USER_SHARE_LIBS)	\
	$(SELINUX_LIBS)	\
	$(X_LIBS) $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS)

if USE_BLUETOOTH
mate_user_share_SOURCES += \
	obexftp.c		\
	obexftp.h		\
	obexpush.c		\
	obexpush.h
mate_user_share_LDADD += $(BLUETOOTH_LIBS)
endif

mate_file_share_properties_SOURCES =	\
	file-share-properties.c		\
	user_share-private.h		\
	user_share-private.c

mate_file_share_properties_LDADD = \
	$(USER_SHARE_CONFIG_LIBS)

caja_extensiondir = $(CAJADIR)
caja_extension_LTLIBRARIES = libcaja-share-extension.la

libcaja_share_extension_la_SOURCES =	\
	caja-share-bar.c			\
	caja-share-bar.h			\
	share-extension.c			\
	$(NULL)

libcaja_share_extension_la_LIBADD = libuser-share-common.la $(EXTENSION_LIBS)
libcaja_share_extension_la_LDFLAGS = -avoid-version -module -no-undefined

EXTRA_DIST = marshal.list

CLEANFILES = $(BUILT_SOURCES)


-include $(top_srcdir)/git.mk