summaryrefslogtreecommitdiffstats
path: root/xorg/server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/server/Makefile')
-rw-r--r--xorg/server/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/xorg/server/Makefile b/xorg/server/Makefile
index ad82975a..793334c7 100644
--- a/xorg/server/Makefile
+++ b/xorg/server/Makefile
@@ -1,3 +1,4 @@
+moduledir := $(shell pkg-config xorg-server --variable moduledir)
all: allmake
@@ -16,7 +17,20 @@ allclean:
cd xrdpmouse; $(MAKE) clean
xinstall:
+ strip module/libxorgxrdp.so
+ strip xrdpdev/xrdpdev_drv.so
+ strip xrdpmouse/xrdpmouse_drv.so
+ strip xrdpkeyb/xrdpkeyb_drv.so
+
+ mkdir -p $(HOME)/xorg-modules/drivers $(HOME)/xorg-modules/input
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 --directory $(DESTDIR)$(moduledir) $(DESTDIR)$(moduledir)/drivers $(DESTDIR)$(moduledir)/input
+ install --mode=0644 --strip module/libxorgxrdp.so $(DESTDIR)$(moduledir)
+ 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/