summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 5f0c9dc645087c1fe2106ad9ebf9ae992c1143ec (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
NULL =
MAINTAINERCLEANFILES =

INCLUDES =				\
	-I$(top_srcdir)/common		\
	-I$(top_srcdir)/spice-protocol	\
	$(NULL)

AM_CPPFLAGS = -DUNICODE -D_UNICODE
# -lversion is needed for the GetFileVersion* API which is used by vdlog.cpp
LIBS = -lversion

bin_PROGRAMS = vdagent vdservice

vdagent_LDADD = $(CXIMAGE_LIBS) vdagent_rc.$(OBJEXT)
vdagent_CXXFLAGS = $(CXIMAGE_CFLAGS)
vdagent_LDFLAGS = -Wl,--subsystem,windows
vdagent_SOURCES =			\
	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/vdagent.cpp		\
	$(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.h		\
	common/vdlog.cpp		\
	common/vdlog.h			\
	vdservice/pci_vdi_port.cpp	\
	vdservice/pci_vdi_port.h	\
	vdservice/vdi_port.cpp		\
	vdservice/vdi_port.h		\
	vdservice/vdservice.cpp		\
	vdservice/virtio_vdi_port.cpp	\
	vdservice/virtio_vdi_port.h	\
	$(NULL)

vdservice_rc.$(OBJEXT): vdservice/vdservice.rc
	$(AM_V_GEN)$(WINDRES) -i $< -o $@

MAINTAINERCLEANFILES += vdservice_rc.$(OBJEXT)


EXTRA_DIST =			\
	tests/clipboard.py	\
	vdagent.sln		\
	vdagent/resource.h	\
	vdagent/vdagent.rc	\
	vdagent/vdagent.vcproj	\
	vdservice/vdservice.rc	\
	vdservice/vdservice.vcproj


-include $(top_srcdir)/git.mk