ligo/test/shell/Makefile

75 lines
1.3 KiB
Makefile
Raw Normal View History

2017-04-05 20:24:26 +04:00
SRCDIR=../../src
TESTS := \
store \
state \
context \
include ../Makefile.shared
SOURCE_DIRECTORIES := ${NODE_SOURCE_DIRECTORIES} ../lib
2017-10-27 21:59:02 +04:00
LIB := ${MINUTILSLIB} ${UTILSLIB} ${COMPILERLIB} ${NODELIB} ${EMBEDDED_NODE_PROTOCOLS} ${TESTLIB}
2017-04-05 20:24:26 +04:00
PACKAGES := \
${NODE_PACKAGES} \
kaputt \
OPENED_MODULES := ${NODE_OPENED_MODULES}
############################################################################
## Store
.PHONY:run-test-store
run-test-store:
@echo
./test-store
TEST_STORE_IMPLS := \
test_store.ml
test-store: ${LIB} ${TEST_STORE_IMPLS:.ml=.cmx}
@echo LINK $(notdir $@)
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
clean::
rm -f test-store
############################################################################
## State
.PHONY:run-test-state
run-test-state:
@echo
./test-state
TEST_STATE_IMPLS := \
test_state.ml
test-state: ${LIB} ${TEST_STATE_IMPLS:.ml=.cmx}
@echo LINK $(notdir $@)
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
clean::
rm -f test-state
############################################################################
## Context
.PHONY:run-test-context
run-test-context:
@echo
./test-context
TEST_CONTEXT_IMPLS := \
test_context.ml
test-context: ${LIB} ${TEST_CONTEXT_IMPLS:.ml=.cmx}
@echo LINK $(notdir $@)
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
clean::
rm -f test-context