2014-06-28 23:31:42 +08:00
|
|
|
moduledir := $(shell pkg-config xorg-server --variable moduledir)
|
2013-07-17 02:20:36 +08:00
|
|
|
|
2013-07-17 02:21:57 +08:00
|
|
|
all: allmake
|
2013-07-17 02:20:36 +08:00
|
|
|
|
2013-07-17 02:21:57 +08:00
|
|
|
allmake:
|
2013-07-17 02:20:36 +08:00
|
|
|
cd module; $(MAKE) $(MFLAGS)
|
|
|
|
cd xrdpdev; $(MAKE) $(MFLAGS)
|
|
|
|
cd xrdpkeyb; $(MAKE) $(MFLAGS)
|
|
|
|
cd xrdpmouse; $(MAKE) $(MFLAGS)
|
2013-07-17 02:21:57 +08:00
|
|
|
|
|
|
|
clean: allclean
|
|
|
|
|
|
|
|
allclean:
|
|
|
|
cd module; $(MAKE) clean
|
|
|
|
cd xrdpdev; $(MAKE) clean
|
|
|
|
cd xrdpkeyb; $(MAKE) clean
|
|
|
|
cd xrdpmouse; $(MAKE) clean
|
2013-07-24 14:24:46 +08:00
|
|
|
|
|
|
|
xinstall:
|
2014-03-10 06:50:16 +08:00
|
|
|
strip module/libxorgxrdp.so
|
|
|
|
strip xrdpdev/xrdpdev_drv.so
|
|
|
|
strip xrdpmouse/xrdpmouse_drv.so
|
|
|
|
strip xrdpkeyb/xrdpkeyb_drv.so
|
|
|
|
|
2014-06-29 02:47:20 +08:00
|
|
|
mkdir -p $(HOME)/xorg-modules/drivers $(HOME)/xorg-modules/input
|
2013-07-24 14:24:46 +08:00
|
|
|
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/
|
2014-03-10 06:50:16 +08:00
|
|
|
|
|
|
|
install:
|
2014-06-29 02:47:20 +08:00
|
|
|
install --directory $(DESTDIR)$(moduledir) $(DESTDIR)$(moduledir)/drivers $(DESTDIR)$(moduledir)/input
|
2014-06-28 23:37:29 +08:00
|
|
|
install --mode=0644 --strip module/libxorgxrdp.so $(DESTDIR)$(moduledir)
|
2014-06-29 02:47:20 +08:00
|
|
|
install --mode=0644 --strip xrdpdev/xrdpdev_drv.so $(DESTDIR)$(moduledir)/drivers/
|
|
|
|
install --mode=0644 --strip xrdpmouse/xrdpmouse_drv.so $(DESTDIR)$(moduledir)/input/
|
|
|
|
install --mode=0644 --strip xrdpkeyb/xrdpkeyb_drv.so $(DESTDIR)$(moduledir)/input/
|
2014-10-14 10:59:23 +08:00
|
|
|
install --directory /etc/X11/xrdp
|
|
|
|
install xrdpdev/xorg.conf /etc/X11/xrdp/
|