diff examples/Makefile @ 57:2088fd998865

sbc09 directry clean up
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 23 Jul 2018 16:07:12 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/Makefile	Mon Jul 23 16:07:12 2018 +0900
@@ -0,0 +1,65 @@
+#
+# Makefile examples SBC09/Sim6809
+#
+# created 1994 by L.C. Benschop
+# 2013-10-28 - Jens Diemer: add "clean" section
+# 2014-06-25 - J.E. Klasek
+#
+# copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details.
+# license: GNU General Public License version 2, see LICENSE for more details.
+#
+
+ASM=../a09
+
+EXAMPLES=asmtest bench09 bin2dec cond09 crc16 crc32 ef09 erat-sieve input printval test09 uslash
+
+
+
+all: $(ASM) $(EXAMPLES)
+
+$(ASM):
+	$(MAKE) -c ../src a09 install
+
+# ------------------------------------
+# rules
+
+.SUFFIXES: .asm
+
+.asm:
+	$(ASM) -l $@.lst  $<
+
+# ------------------------------------
+
+asmtest: asmtest.asm
+
+bench09: bench09.asm
+
+bin2dec: bin2dec.asm
+
+cond09: cond09.asm
+
+crc16: crc16.asm
+
+crc32: crc32.asm
+
+ef09: ef09.asm
+
+erat-sieve: erat-sieve.asm
+
+printval: printval.asm
+
+input: input.asm
+
+test09: test09.asm
+
+uslash: uslash.asm
+
+
+
+# ------------------------------------
+
+cleanall: clean
+
+clean:
+	rm -f core *.BAK *.lst $(EXAMPLES)
+