From 1eba55156d0c74752ccd3a8fd131a25ffa5a13b8 Mon Sep 17 00:00:00 2001
From: Nao Pross <naopross@thearcway.org>
Date: Sat, 25 Mar 2017 10:10:24 +0100
Subject: added missing makefile for z80 and fixed gitignore

---
 sw/z80/makefile | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 sw/z80/makefile

(limited to 'sw/z80')

diff --git a/sw/z80/makefile b/sw/z80/makefile
new file mode 100644
index 0000000..94646a9
--- /dev/null
+++ b/sw/z80/makefile
@@ -0,0 +1,27 @@
+####
+# source code settings
+#
+OSNAME := helvetiOS
+
+CSOURCES 	:= $(wildcard *.c)
+BINARY  	:= $(OSNAME).bin
+
+### 
+# compiler settings
+#
+CC 		:= zcc
+CARGS 	:= -Wall -I . -DDEBUG -crt0 loader -asm z80asm -nostdlib
+
+all: $(BINARY)
+
+# build binary
+$(BINARY): $(CSOURCES)
+	cp loader.asm loader.opt
+	$(CC) $(CARGS) $(CSOURCES) -o $@
+
+dis: $(BINARY)
+	z80dasm -a -g 0h $<
+
+clean:
+	- rm $(BINARY)
+	- rm loader.opt
-- 
cgit v1.2.1