- reorganized project directory structure
[z80comp2] / rom / Makefile
diff --git a/rom/Makefile b/rom/Makefile
new file mode 100644 (file)
index 0000000..aae4716
--- /dev/null
@@ -0,0 +1,25 @@
+src = monitor.asm
+obj = $(src:.asm=.o)
+bin = monitor
+
+romtype = 'AT28C256'
+romsize = 2048
+
+AS = vasmz80_oldstyle
+ASFLAGS = -Fvobj
+LD = vlink
+LDFLAGS = -b rawbin1
+
+$(bin): $(obj)
+       $(LD) -o $@ $(LDFLAGS) -Ttext 0 $(obj)
+
+%.o: %.asm
+       $(AS) -o $@ $(ASFLAGS) -L $*.lst $< >/dev/null
+
+.PHONY: clean
+clean:
+       rm -f $(bin) $(obj)
+
+.PHONY: program
+program: $(bin)
+       minipro -p 'AT28C256E' -s -w $<