summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/Makefile.am
blob: b46fa63dde164aac26b99eb25ba741620a7ec25e (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
EXTRA_DIST = \
  clipboard-notes.txt \
  pcsc \
  pulse \
  wave-format-server.txt

AM_CPPFLAGS = \
  -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
  -DXRDP_SBIN_PATH=\"${sbindir}\" \
  -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
  -DXRDP_PID_PATH=\"${localstatedir}/run\" \
  -DXRDP_SOCKET_PATH=\"${socketdir}\" \
  -I$(top_srcdir)/common

if XRDP_DEBUG
AM_CPPFLAGS += -DXRDP_DEBUG
endif

CHANSRV_EXTRA_LIBS =

if XRDP_FUSE
AM_CPPFLAGS += -DXRDP_FUSE $(FUSE_CFLAGS)
CHANSRV_EXTRA_LIBS += $(FUSE_LIBS)
endif

if XRDP_FDK_AAC
AM_CPPFLAGS += -DXRDP_FDK_AAC $(FDKAAC_CFLAGS)
CHANSRV_EXTRA_LIBS += $(FDKAAC_LIBS)
endif

if XRDP_OPUS
AM_CPPFLAGS += -DXRDP_OPUS
CHANSRV_EXTRA_LIBS += -lopus
endif

if XRDP_MP3LAME
AM_CPPFLAGS += -DXRDP_MP3LAME
CHANSRV_EXTRA_LIBS += -lmp3lame
endif

AM_CFLAGS = $(X_CFLAGS)

sbin_PROGRAMS = \
  xrdp-chansrv

xrdp_chansrv_SOURCES = \
  chansrv.c \
  chansrv.h \
  chansrv_common.c \
  chansrv_common.h \
  chansrv_fuse.c \
  chansrv_fuse.h \
  clipboard.c \
  clipboard.h \
  clipboard_common.h \
  clipboard_file.c \
  clipboard_file.h \
  devredir.c \
  devredir.h \
  drdynvc.c \
  drdynvc.h \
  fifo.c \
  fifo.h \
  irp.c \
  irp.h \
  mlog.h \
  rail.c \
  rail.h \
  smartcard.c \
  smartcard.h \
  smartcard_pcsc.c \
  smartcard_pcsc.h \
  sound.c \
  sound.h \
  xcommon.c \
  xcommon.h

xrdp_chansrv_LDFLAGS = \
  $(X_LIBS)

xrdp_chansrv_LDADD = \
  $(top_builddir)/common/libcommon.la \
  $(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \
  $(CHANSRV_EXTRA_LIBS)