forked from GNOME/phodav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
194 lines (157 loc) · 4.46 KB
/
Makefile.am
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
NULL =
EXTRA_DIST =
BUILT_SOURCES =
CONFIG_STATUS_DEPENDENCIES =
ACLOCAL_AMFLAGS = -I m4
makeflags_ = $(makeflags_$(AM_DEFAULT_VERBOSITY))
makeflags_0 = --no-print-directory -s
makeflags_1 =
AM_MAKEFLAGS = $(makeflags_$(V))
SUBDIRS = . po spice libphodav doc
lib_LTLIBRARIES = libphodav-2.0.la
bin_PROGRAMS = chezdav
sbin_PROGRAMS = spice-webdavd
AM_CPPFLAGS = \
-DLOCALEDIR=\""$(localedir)"\" \
-DG_LOG_DOMAIN=\"phodav\" \
$(WARN_CFLAGS) \
$(NULL)
libphodav_includedir = $(includedir)/libphodav-2.0/libphodav
libphodav_include_HEADERS = \
libphodav/phodav-server.h \
libphodav/phodav.h \
$(NULL)
libphodav_2_0_la_SOURCES = \
libphodav/phodav-priv.h \
libphodav/phodav-path.c \
libphodav/phodav-path.h \
libphodav/phodav-lock.c \
libphodav/phodav-lock.h \
libphodav/phodav-if.c \
libphodav/phodav-method-delete.c \
libphodav/phodav-method-get.c \
libphodav/phodav-method-lock.c \
libphodav/phodav-method-mkcol.c \
libphodav/phodav-method-movecopy.c \
libphodav/phodav-method-propfind.c \
libphodav/phodav-method-proppatch.c \
libphodav/phodav-method-unlock.c \
libphodav/phodav-method-put.c \
libphodav/phodav-multistatus.c \
libphodav/phodav-multistatus.h \
libphodav/phodav-server.c \
libphodav/phodav-server.h \
libphodav/phodav-utils.c \
libphodav/phodav-utils.h \
$(NULL)
if BUILD_GUUID
libphodav_2_0_la_SOURCES += \
libphodav/guuid.c \
libphodav/guuid.h \
$(NULL)
endif
libphodav_2_0_la_CFLAGS = \
$(GIO_CFLAGS) \
$(SOUP_CFLAGS) \
$(NULL)
libphodav_2_0_la_LIBADD = \
$(GIO_LIBS) \
$(SOUP_LIBS) \
$(NULL)
libphodav_2_0_la_LDFLAGS = \
-version-info 0:0:0 \
-Wl,--version-script=${srcdir}/libphodav.syms \
-no-undefined \
$(NULL)
libphodav_2_0_la_DEPENDENCIES = libphodav.syms
EXTRA_DIST += libphodav.syms
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libphodav-2.0.pc
spice_webdavd_SOURCES = spice/spice-webdavd.c
spice_webdavd_CFLAGS = \
$(GIO_CFLAGS) \
$(AVAHI_CFLAGS) \
$(PIE_CFLAGS) \
$(NULL)
spice_webdavd_LDADD = \
$(GIO_LIBS) \
$(AVAHI_LIBS) \
$(PIE_LDFLAGS) \
$(NULL)
if OS_WIN32
spice_webdavd_LDADD += -lnetapi32 -lmpr
endif
deps.txt:
$(AM_V_GEN)rpm -qa | grep $(host_os) | sort | unix2dos > $@
MANUFACTURER = The Spice Project
EXTRA_DIST += chezdav.wxs.in
CONFIG_STATUS_DEPENDENCIES += chezdav.wxs.in
chezdav-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi: chezdav.wxs deps.txt all
$(AM_V_GEN)DESTDIR=`mktemp -d`&& \
make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \
MANUFACTURER="$(MANUFACTURER)" wixl -D SourceDir=$(prefix) \
-D DESTDIR=$$DESTDIR$(prefix) \
--arch $(WIXL_ARCH) -o $@ $<
MSI = chezdav-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi
EXTRA_DIST += spice-webdavd.wxs.in
CONFIG_STATUS_DEPENDENCIES += spice-webdavd.wxs.in
spice-webdavd-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi: spice-webdavd.wxs deps.txt all
$(AM_V_GEN)DESTDIR=`mktemp -d`&& \
make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \
MANUFACTURER="$(MANUFACTURER)" wixl -D SourceDir=$(prefix) \
-D DESTDIR=$$DESTDIR$(prefix) \
--arch $(WIXL_ARCH) -o $@ $<
MSI += spice-webdavd-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi
msi: $(MSI)
CLEANFILES = $(MSI)
.PHONY: msi
chezdav_SOURCES = libphodav/chezdav.c
chezdav_CFLAGS = \
-I. \
$(GIO_CFLAGS) \
$(SOUP_CFLAGS) \
$(AVAHI_CFLAGS) \
$(NULL)
chezdav_LDADD = \
libphodav-2.0.la \
$(GLIB_LIBS) \
$(GIO_LIBS) \
$(SOUP_LIBS) \
$(AVAHI_LIBS) \
$(NULL)
if HAVE_SYSTEMD
systemdunitdir = $(SYSTEMDSYSTEMUNITDIR)
dist_systemdunit_DATA = \
$(top_srcdir)/data/spice-webdavd.service \
$(NULL)
endif
if HAVE_UDEV
udevrulesdir = $(UDEVDIR)/rules.d
dist_udevrules_DATA = $(top_srcdir)/data/70-spice-webdavd.rules
endif
BUILT_SOURCES += $(top_srcdir)/.version
$(top_srcdir)/.version:
@echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
EXTRA_DIST += \
$(top_srcdir)/.version \
NEWS \
autogen.sh \
build-aux/git-version-gen \
phodav.doap \
$(NULL)
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
DISTCLEANFILES = \
gtk-doc.make \
m4/gtk-doc.m4 \
m4/intltool.m4
MAINTAINERCLEANFILES = \
$(srcdir)/gtk-doc.make \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL)
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir='$${libdir}/systemd/system-distcheck' \
--with-udevdir='$${libdir}/udev-distcheck'
-include $(top_srcdir)/git.mk