summaryrefslogtreecommitdiffstats
path: root/sesman/Makefile.am
blob: 68dba28e8e2fc5af3dd35d1da37810193ae3ba0d (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
AM_CPPFLAGS = \
  -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
  -DXRDP_SBIN_PATH=\"${sbindir}\" \
  -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
  -DXRDP_PID_PATH=\"${localstatedir}/run\" \
  -I$(top_srcdir)/common \
  -I$(top_srcdir)/sesman/libscp

if SESMAN_NOPAM
AUTH_C = verify_user.c
AUTH_LIB = -lcrypt
else
if SESMAN_BSD
AUTH_C = verify_user_bsd.c
AUTH_LIB = 
else
if SESMAN_PAMUSERPASS
AUTH_C = verify_user_pam_userpass.c
AUTH_LIB = -lpam -lpam_userpass
else
if SESMAN_KERBEROS
AUTH_C = verify_user_kerberos.c
AUTH_LIB = -lkrb5
else
AUTH_C = verify_user_pam.c
AUTH_LIB = -lpam
endif
endif
endif
endif

sbin_PROGRAMS = \
  xrdp-sesman

xrdp_sesman_SOURCES = \
  access.c \
  access.h \
  auth.h \
  config.c \
  config.h \
  env.c \
  env.h \
  scp.c \
  scp.h \
  scp_v0.c \
  scp_v0.h \
  scp_v1.c \
  scp_v1.h \
  scp_v1_mng.c \
  scp_v1_mng.h \
  sesman.c \
  sesman.h \
  session.c \
  session.h \
  sig.c \
  sig.h \
  $(AUTH_C)

xrdp_sesman_LDADD = \
  $(top_builddir)/common/libcommon.la \
  $(top_builddir)/sesman/libscp/libscp.la \
  $(AUTH_LIB) \
  -lpthread

sesmansysconfdir=$(sysconfdir)/xrdp

dist_sesmansysconf_DATA = \
  sesman.ini

dist_sesmansysconf_SCRIPTS = \
  startwm.sh

SUBDIRS = \
  libscp \
  tools \
  sessvc \
  chansrv