From 8d7fe0bd122cc1cb7ecfbb597efcf4f69fe57e9a Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Wed, 31 Jan 2018 23:30:43 +0100
Subject: [PATCH] Added Makefile to build the xHD client.
The binary is built with Merlin 32 - see https://www.brutaldeluxe.fr/products/crossdevtools/merlin/
The disk image updated with AppleCommander - see https://applecommander.github.io/
---
.gitignore | 2 ++
client/Makefile | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
create mode 100644 client/Makefile
diff --git a/.gitignore b/.gitignore
index 25a7384..41f235e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
*.o
*.exe
+_FileInformation.txt
+prodos.po
diff --git a/client/Makefile b/client/Makefile
new file mode 100644
index 0000000..c758f33
--- /dev/null
+++ b/client/Makefile
@@ -0,0 +1,16 @@
+AC ?= ac.jar
+AS ?= Merlin32
+
+.PHONY: disk
+
+%: %.s
+ $(AS) . $<
+
+z8530/xHD: z8530/xHD.s
+
+xHDClient.po:
+ cp prodos.po xHDClient.po
+
+disk: z8530/xHD | xHDClient.po
+ java -jar $(AC) -d xHDClient.po xHD
+ java -jar $(AC) -p xHDClient.po xHD sys < z8530/xHD