From b94acce656db4f0b129cd939765c0ca451f6a538 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 28 Feb 2015 14:14:18 +0100 Subject: Nim: step1 --- nim/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nim/Makefile (limited to 'nim/Makefile') diff --git a/nim/Makefile b/nim/Makefile new file mode 100644 index 0000000..5fba42c --- /dev/null +++ b/nim/Makefile @@ -0,0 +1,35 @@ +##################### + +SOURCES_BASE = types.nim reader.nim printer.nim +#SOURCES_LISP = env.nim core.nim stepA_interop.nim +SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) + +##################### + +SRCS = step0_repl.nim step1_read_print.nim +BINS = $(SRCS:%.nim=%) + +##################### + +all: $(BINS) mal + +mal: $(word $(words $(BINS)),$(BINS)) + #nimble build + cp $< $@ + +define dep_template +$(1): $(SOURCES_BASE) $(1).nim + nim c $$@ +endef +$(foreach b,$(BINS),$(eval $(call dep_template,$(b)))) + +clean: + rm -rf nimcache/ $(BINS) + rm -f mal + +.PHONY: stats stats-lisp + +stats: $(SOURCES) + @wc $^ +#stats-lisp: $(SOURCES_LISP) +# @wc $^ -- cgit v1.2.3 From c9d2371f7f0a97efe464565fdf8ebc8405eb8780 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 28 Feb 2015 15:20:37 +0100 Subject: Nim: step2 --- nim/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nim/Makefile') diff --git a/nim/Makefile b/nim/Makefile index 5fba42c..8f85496 100644 --- a/nim/Makefile +++ b/nim/Makefile @@ -6,7 +6,7 @@ SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) ##################### -SRCS = step0_repl.nim step1_read_print.nim +SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim BINS = $(SRCS:%.nim=%) ##################### -- cgit v1.2.3 From 4ce9e165bafb4f14b03624f515066c3c42719dd9 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 1 Mar 2015 21:46:19 +0100 Subject: Nim: stepA --- nim/Makefile | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 nim/Makefile (limited to 'nim/Makefile') diff --git a/nim/Makefile b/nim/Makefile deleted file mode 100644 index 8f85496..0000000 --- a/nim/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -##################### - -SOURCES_BASE = types.nim reader.nim printer.nim -#SOURCES_LISP = env.nim core.nim stepA_interop.nim -SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) - -##################### - -SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim -BINS = $(SRCS:%.nim=%) - -##################### - -all: $(BINS) mal - -mal: $(word $(words $(BINS)),$(BINS)) - #nimble build - cp $< $@ - -define dep_template -$(1): $(SOURCES_BASE) $(1).nim - nim c $$@ -endef -$(foreach b,$(BINS),$(eval $(call dep_template,$(b)))) - -clean: - rm -rf nimcache/ $(BINS) - rm -f mal - -.PHONY: stats stats-lisp - -stats: $(SOURCES) - @wc $^ -#stats-lisp: $(SOURCES_LISP) -# @wc $^ -- cgit v1.2.3 From a2cd0a3adae2ccf2566122bcd90230d905ab59dc Mon Sep 17 00:00:00 2001 From: def Date: Wed, 4 Mar 2015 04:17:43 +0100 Subject: Add instructions and makefile for Nim --- nim/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nim/Makefile (limited to 'nim/Makefile') diff --git a/nim/Makefile b/nim/Makefile new file mode 100644 index 0000000..1da1ae6 --- /dev/null +++ b/nim/Makefile @@ -0,0 +1,33 @@ +##################### + +SOURCES_BASE = types.nim reader.nim printer.nim +SOURCES_LISP = env.nim core.nim stepA_interop.nim +SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) + +##################### + +SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim step3_env.nim \ + step4_if_fn_do.nim step5_tco.nim step6_file.nim step7_quote.nim \ + step8_macros.nim step9_try.nim stepA_interop.nim +BINS = $(SRCS:%.nim=%) + +##################### + +all: $(BINS) mal + +mal: $(word $(words $(BINS)),$(BINS)) + cp $< $@ + +$(BINS): + nim -d:release c $@ + +clean: + rm -rf nimcache/ $(BINS) + rm -f mal + +.PHONY: stats stats-lisp + +stats: $(SOURCES) + @wc $^ +stats-lisp: $(SOURCES_LISP) + @wc $^ -- cgit v1.2.3