summaryrefslogtreecommitdiffstats
path: root/xorg/server/Makefile
blob: 1aed58addc9139836ebba68ad5de74ad93b9e728 (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

all: allmake

allmake:
	cd module; $(MAKE) $(MFLAGS)
	cd xrdpdev; $(MAKE) $(MFLAGS)
	cd xrdpkeyb; $(MAKE) $(MFLAGS)
	cd xrdpmouse; $(MAKE) $(MFLAGS)

clean: allclean

allclean:
	cd module; $(MAKE) clean
	cd xrdpdev; $(MAKE) clean
	cd xrdpkeyb; $(MAKE) clean
	cd xrdpmouse; $(MAKE) clean

xinstall:
	strip module/libxorgxrdp.so
	strip xrdpdev/xrdpdev_drv.so
	strip xrdpmouse/xrdpmouse_drv.so
	strip xrdpkeyb/xrdpkeyb_drv.so

	cp module/libxorgxrdp.so      $(HOME)/xorg-modules/
	cp xrdpdev/xrdpdev_drv.so     $(HOME)/xorg-modules/drivers/
	cp xrdpmouse/xrdpmouse_drv.so $(HOME)/xorg-modules/input/
	cp xrdpkeyb/xrdpkeyb_drv.so   $(HOME)/xorg-modules/input/

install:
	install --mode=0644 --strip module/libxorgxrdp.so /usr/lib/xorg/modules
	install --mode=0644 --strip xrdpdev/xrdpdev_drv.so /usr/lib/xorg/modules/drivers
	install --mode=0644 --strip xrdpmouse/xrdpmouse_drv.so /usr/lib/xorg/modules/input
	install --mode=0644 --strip xrdpkeyb/xrdpkeyb_drv.so /usr/lib/xorg/modules/input