aboutsummaryrefslogtreecommitdiff
path: root/exp
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-04 15:40:01 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-04 15:40:01 +0200
commitdcd9fff736ca8b3623bf88943e57430581079098 (patch)
treef82b427d1697aa2e74d13f145a7b052a18a32f18 /exp
parent7fab7722bdc67184bff18cc7e70d7f2043f5b057 (diff)
downloaddna-backup-work/cdemu.tar.gz
dna-backup-work/cdemu.zip
add cdemu client and make it funcitonnalwork/cdemu
Diffstat (limited to 'exp')
-rw-r--r--exp/cdemu/Makefile32
1 files changed, 24 insertions, 8 deletions
diff --git a/exp/cdemu/Makefile b/exp/cdemu/Makefile
index 273a99e..33f9c97 100644
--- a/exp/cdemu/Makefile
+++ b/exp/cdemu/Makefile
@@ -1,22 +1,31 @@
-PKGS := vhba-module-20210418 libmirage-3.2.5 cdemu-daemon-3.2.5
+PKGS := vhba-module-20210418 libmirage-3.2.5 cdemu-daemon-3.2.5 cdemu-client-3.2.5
TARS := $(PKGS:%=%.tar.xz)
.PHONY: install
-install: install-cdemu-daemon-3.2.5 install-vhba-module
+install: install-cdemu-daemon-3.2.5 install-cdemu-client-3.2.5 install-vhba-module
+
+.PHONY: install-cdemu-client-3.2.5
+install-cdemu-client-3.2.5: cdemu-client-3.2.5/install_manifest.txt
.PHONY: install-cdemu-daemon-3.2.5
-install-cdemu-daemon-3.2.5: cdemu-daemon-3.2.5/install_manifest.txt
+install-cdemu-daemon-3.2.5: cdemu-daemon-3.2.5/install_manifest.txt install-libmirage-3.2.5
+ sudo install -D -m 644 cdemu-daemon-3.2.5/service-example/cdemu-daemon.service /usr/local/lib/systemd/user/cdemu-daemon.service
+ sudo sed -i 's#/usr/#/usr/local/#' /usr/local/lib/systemd/user/cdemu-daemon.service
+ sudo install -D -m 644 cdemu-daemon-3.2.5/service-example/net.sf.cdemu.CDEmuDaemon.service /usr/local/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
.PHONY: install-libmirage-3.2.5
install-libmirage-3.2.5: libmirage-3.2.5/install_manifest.txt
+ sudo ldconfig
.PHONY: install-vhba-module
install-vhba-module: vhba-module-20210418/vhba.ko
-sudo insmod vhba-module-20210418/vhba.ko
+ sudo chown $$USER /dev/vhba_ctl
.PHONY: uninstall
-uninstall: uninstall-cdemu-daemon-3.2.5 uninstall-libmirage-3.2.5
+uninstall: uninstall-cdemu-daemon-3.2.5 uninstall-cdemu-client-3.2.5 uninstall-libmirage-3.2.5
+ sudo rm -rf /usr/local/lib/systemd/user/cdemu-daemon.service /usr/local/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
-sudo rmmod vhba
.PHONY: uninstall-%
@@ -32,24 +41,31 @@ clean:
rm -f $(TARS)
rm -rf $(PKGS)
+cdemu-client-3.2.5/install_manifest.txt: | cdemu-client-3.2.5/src/cdemu
+ @echo "Don't worry there is an uninstall target"
+ sudo $(MAKE) -C $(@D) install
+
+cdemu-client-3.2.5/src/cdemu: | cdemu-client-3.2.5/Makefile
+ $(MAKE) -C $(@D)
+
cdemu-daemon-3.2.5/install_manifest.txt: | cdemu-daemon-3.2.5/Makefile cdemu-daemon-3.2.5/cdemu-daemon
@echo "Don't worry there is an uninstall target"
sudo $(MAKE) -C $(@D) install
-cdemu-daemon-3.2.5/cdemu-daemon: cdemu-daemon-3.2.5/Makefile
+cdemu-daemon-3.2.5/cdemu-daemon: | cdemu-daemon-3.2.5/Makefile
$(MAKE) -C $(@D)
-cdemu-daemon-3.2.5/Makefile: | install-libmirage-3.2.5 cdemu-daemon-3.2.5
+cdemu-daemon-3.2.5/Makefile: | cdemu-daemon-3.2.5 libmirage-3.2.5/install_manifest.txt
cd $(@D) && cmake .
libmirage-3.2.5/install_manifest.txt: libmirage-3.2.5/libmirage.so
@echo "Please enter your password. Don't worry there is an uninstall target"
sudo $(MAKE) -C $(@D) install
-libmirage-3.2.5/libmirage.so: libmirage-3.2.5/Makefile
+libmirage-3.2.5/libmirage.so: | libmirage-3.2.5/Makefile
$(MAKE) -C $(@D)
-libmirage-3.2.5/Makefile: | libmirage-3.2.5
+%/Makefile: | %
cd $(@D) && cmake .
vhba-module-20210418/vhba.ko: | vhba-module-20210418