Added example that prints a multi-digit number. Added library functions in support.
[vvhitespace] / examples / print-number-from-stack / Makefile
diff --git a/examples/print-number-from-stack/Makefile b/examples/print-number-from-stack/Makefile
new file mode 100644 (file)
index 0000000..de5bfc0
--- /dev/null
@@ -0,0 +1,17 @@
+# (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com>
+# All rights reserved.
+
+include ../config.mk
+
+all: printnum
+
+printnum:
+       $(CPP) $(CPP_FLAGS) -o temp.pvvs printnum.pvvs
+       $(VVS_COMPILER) -i temp.pvvs -o printnum.vvs
+       @rm -f temp.pvvs
+
+run: printnum
+       $(VVS_INTERPRETER) -i printnum.vvs
+
+clean:
+       @rm -f printnum.vvs temp.pvvs