diff options
author | Björn Gustavsson <[email protected]> | 2015-05-25 11:35:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-05-25 11:35:41 +0200 |
commit | c12d2dc802df9510ae32ac37ccefeb162767774c (patch) | |
tree | ee319edd72827c0fd7b0d8c32df59169d314bfad /lib/syntax_tools/examples/merl/Makefile | |
parent | ca868041729863845f71b6abadc079c414c18168 (diff) | |
parent | 279fe010040ad1e09f67a509596cf4227afe658d (diff) | |
download | otp-c12d2dc802df9510ae32ac37ccefeb162767774c.tar.gz otp-c12d2dc802df9510ae32ac37ccefeb162767774c.tar.bz2 otp-c12d2dc802df9510ae32ac37ccefeb162767774c.zip |
Merge branch 'richcarl/syntax_tools/add-merl'
* richcarl/syntax_tools/add-merl:
Make merl compatible with OTP 18.0
Add tests for merl in syntax_tools
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 |