diff options
author | Richard Carlsson <[email protected]> | 2014-12-23 14:23:35 +0100 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2015-05-22 12:43:53 +0200 |
commit | e533ea29e80a641f247022f321a3bf1a1456c56e (patch) | |
tree | 2681e4a828e5393d1cc5c539efd5285b92419fa2 /lib/syntax_tools/examples/merl/Makefile | |
parent | 9a81b28598fadc44bf506354c9227e41aac786f6 (diff) | |
download | otp-e533ea29e80a641f247022f321a3bf1a1456c56e.tar.gz otp-e533ea29e80a641f247022f321a3bf1a1456c56e.tar.bz2 otp-e533ea29e80a641f247022f321a3bf1a1456c56e.zip |
Include Merl in Syntax Tools
Diffstat (limited to 'lib/syntax_tools/examples/merl/Makefile')
-rw-r--r-- | lib/syntax_tools/examples/merl/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/syntax_tools/examples/merl/Makefile b/lib/syntax_tools/examples/merl/Makefile new file mode 100644 index 0000000000..13a9703733 --- /dev/null +++ b/lib/syntax_tools/examples/merl/Makefile @@ -0,0 +1,22 @@ +EBIN=../../ebin +INCLUDES=../../include +SOURCES=merl_build.erl lisp.erl lispc.erl basic.erl basicc.erl +HEADERS=$(INCLUDES)/merl.hrl +OBJECTS=$(SOURCES:%.erl=%.beam) +ERLC_FLAGS=+debug_info -I$(INCLUDES) -pa $(EBIN) + +all: $(OBJECTS) test + +%.beam: %.erl $(HEADERS) Makefile + erlc $(ERLC_FLAGS) -o ./ $< + +# additional dependencies due to the parse transform +lispc.beam basicc.beam: $(EBIN)/merl_transform.beam $(EBIN)/merl.beam + +clean: + -rm -f $(OBJECTS) + +test: + erl -noshell -pa $(EBIN) \ + -eval 'eunit:test([lisp, lispc, basic, basicc],[])' \ + -s init stop |