-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
107 lines (83 loc) · 2.56 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
NULL =
EXTRA_DIST = mingw-spice-vdagent.spec
MAINTAINERCLEANFILES = mingw-spice-vdagent.spec
DIST_SUBDIRS = spice-protocol
AM_CXXFLAGS = -flto -fwhole-program
AM_CPPFLAGS = \
-DUNICODE \
-D_UNICODE \
-DOLDMSVCRT \
-I$(top_srcdir)/common \
-I$(top_srcdir)/spice-protocol \
$(NULL)
AM_LDFLAGS = -static
if !ENABLE_DEBUG
AM_LDFLAGS += -s
endif
# -lversion is needed for the GetFileVersion* API which is used by vdlog.cpp
LIBS = -lversion
bin_PROGRAMS = vdagent vdservice
vdagent_LDADD = -lwtsapi32 $(CXIMAGE_LIBS) vdagent_rc.$(OBJEXT)
vdagent_CXXFLAGS = $(AM_CXXFLAGS) $(CXIMAGE_CFLAGS)
vdagent_LDFLAGS = $(AM_LDFLAGS) -Wl,--subsystem,windows
vdagent_SOURCES = \
common/vdcommon.cpp \
common/vdcommon.h \
common/vdlog.cpp \
common/vdlog.h \
vdagent/desktop_layout.cpp \
vdagent/desktop_layout.h \
vdagent/display_setting.cpp \
vdagent/display_setting.h \
vdagent/file_xfer.cpp \
vdagent/file_xfer.h \
vdagent/vdagent.cpp \
vdagent/as_user.cpp \
vdagent/as_user.h \
$(NULL)
vdagent_rc.$(OBJEXT): vdagent/vdagent.rc
$(AM_V_GEN)$(WINDRES) -i $< -o $@
MAINTAINERCLEANFILES += vdagent_rc.$(OBJEXT)
vdservice_LDADD = -lwtsapi32 vdservice_rc.$(OBJEXT)
vdservice_SOURCES = \
common/stdint.h \
common/vdcommon.cpp \
common/vdcommon.h \
common/vdlog.cpp \
common/vdlog.h \
vdservice/vdservice.cpp \
$(NULL)
vdservice_rc.$(OBJEXT): vdservice/vdservice.rc
$(AM_V_GEN)$(WINDRES) -i $< -o $@
MAINTAINERCLEANFILES += vdservice_rc.$(OBJEXT)
deps.txt:
$(AM_V_GEN)rpm -qa | grep $(host_os) | sort | unix2dos > $@
MANUFACTURER = The Spice Project
EXTRA_DIST += spice-vdagent.wxs.in
CONFIG_STATUS_DEPENDENCIES = spice-vdagent.wxs.in
spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi: spice-vdagent.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-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi
CLEANFILES = spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi
.PHONY: msi
EXTRA_DIST += \
$(top_srcdir)/.version \
tests/clipboard.py \
vdagent.sln \
vdagent/resource.h \
vdagent/vdagent.rc \
vdagent/vdagent.vcproj \
vdservice/resource.h \
vdservice/vdservice.rc \
vdservice/vdservice.vcproj
# see git-version-gen
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
-include $(top_srcdir)/git.mk