summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 15b6502a7a8636aeec62505a61a7453bab1eae8f (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

CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
LIBDIR = /usr/local/lib/xrdp
BINDIR = /usr/local/bin
SBINDIR = /usr/local/sbin
SHAREDIR = /usr/local/share/xrdp

all: world

world: base
	$(MAKE) -C sesman

base:
	$(MAKE) -C vnc
	$(MAKE) -C libxrdp
	$(MAKE) -C xrdp
	$(MAKE) -C rdp
	$(MAKE) -C xup
	$(MAKE) -C keygen

nopam: base
	$(MAKE) -C sesman nopam
	$(MAKE) -C sesman tools

kerberos: base
	$(MAKE) -C sesman kerberos
	$(MAKE) -C sesman tools

clean:
	$(MAKE) -C vnc clean
	$(MAKE) -C libxrdp clean
	$(MAKE) -C xrdp clean
	$(MAKE) -C rdp clean
	$(MAKE) -C sesman clean
	$(MAKE) -C xup clean
	$(MAKE) -C keygen clean

install:
	mkdir -p $(CFGDIR)
	mkdir -p $(PIDDIR)
	mkdir -p $(MANDIR)
	mkdir -p $(LIBDIR)
	mkdir -p $(BINDIR)
	mkdir -p $(SBINDIR)
	mkdir -p $(SHAREDIR)
	$(MAKE) -C vnc install
	$(MAKE) -C libxrdp install
	$(MAKE) -C xrdp install
	$(MAKE) -C rdp install
	$(MAKE) -C sesman install
	$(MAKE) -C xup install
	$(MAKE) -C keygen install
	$(MAKE) -C docs install
	if [ -d /etc/pam.d ]; then install instfiles/pam.d/xrdp-sesman /etc/pam.d/xrdp-sesman; fi
	if [ -d /etc/init.d ]; then install instfiles/xrdp.sh /etc/init.d/xrdp.sh; fi
	xrdp-keygen xrdp auto