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

DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp

all: world

world: base
	$(MAKE) -C sesman

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

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

install:
	mkdir -p $(DESTDIR)
	mkdir -p $(CFGDIR)
	mkdir -p $(PIDDIR)
	mkdir -p $(MANDIR)
	mkdir -p $(DOCDIR)
	$(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 docs install
	if [ -d /etc/pam.d ]; then install instfiles/pam.d/sesman /etc/pam.d/sesman; fi
	install instfiles/xrdp_control.sh $(DESTDIR)/xrdp_control.sh