From 8c93b722cd62dccd61959609c96ce57e53dbe3e3 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 25 Sep 2013 13:28:17 -0400 Subject: [PATCH] Say hi. --- polymorphic-life/001/Makefile | 6 +++++- polymorphic-life/001/src/polymorphic_life.ml | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 polymorphic-life/001/src/polymorphic_life.ml diff --git a/polymorphic-life/001/Makefile b/polymorphic-life/001/Makefile index fa2bbc3..40aae7d 100644 --- a/polymorphic-life/001/Makefile +++ b/polymorphic-life/001/Makefile @@ -5,7 +5,11 @@ EXE_TYPE := native build: $(eval executable_name := polymorphic_life) $(eval executable_name_ext := $(executable_name).$(EXE_TYPE)) - @ocamlbuild src/$(executable_name_ext) + @ocamlbuild \ + -use-ocamlfind \ + -package core \ + -tag thread \ + src/$(executable_name_ext) @mkdir -p bin/ @cp _build/src/$(executable_name_ext) bin/$(executable_name) @rm $(executable_name_ext) diff --git a/polymorphic-life/001/src/polymorphic_life.ml b/polymorphic-life/001/src/polymorphic_life.ml new file mode 100644 index 0000000..e3c233d --- /dev/null +++ b/polymorphic-life/001/src/polymorphic_life.ml @@ -0,0 +1,8 @@ +open Core.Std + + +let main () = + printf "Hi!\n" + + +let () = main () -- 2.20.1