-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kakadu <[email protected]>
- Loading branch information
Showing
9 changed files
with
42 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,42 @@ | ||
EXECUTABLE = src/lamac | ||
.PHONY: all regression | ||
.PHONY: clean test regression regression-expressions regression-all uninstall install build | ||
|
||
INSTALL ?= install -v | ||
MKDIR ?= mkdir | ||
BUILDDIR = build | ||
BUILDDIR = _build | ||
|
||
.PHONY: all regression | ||
|
||
all: | ||
$(MAKE) -C src | ||
$(MAKE) -C runtime | ||
$(MAKE) -C stdlib | ||
|
||
STD_FILES=$(shell ls stdlib/*.[oi] stdlib/*.lama runtime/runtime.a runtime/Std.i) | ||
all: dune test regression | ||
|
||
build: all | ||
mkdir -p $(BUILDDIR) | ||
cp -r runtime/Std.i runtime/runtime.a stdlib/* src/lamac $(BUILDDIR) | ||
build: dune b regression | ||
|
||
install: all | ||
$(INSTALL) $(EXECUTABLE) `opam var bin` | ||
$(MKDIR) -p `opam var share`/Lama | ||
$(INSTALL) $(STD_FILES) `opam var share`/Lama/ | ||
dune b @install --profile=release | ||
dune install --profile=release | ||
$(MKDIR) -p `opam var share`/Lama/x64 | ||
$(INSTALL) $(shell ls _build/default/stdlib/x64/*.[oi] _build/default/stdlib/x64/stdlib/*.lama \ | ||
runtime/runtime.a runtime/Std.i) \ | ||
`opam var share`/Lama/x64 | ||
$(MKDIR) -p `opam var share`/Lama/x32 | ||
$(INSTALL) $(shell ls _build/default/stdlib/x32/*.[oi] _build/default/stdlib/x32/stdlib/*.lama \ | ||
runtime32/runtime.a runtime32/Std.i) \ | ||
`opam var share`/Lama/x32 | ||
|
||
uninstall: | ||
$(RM) -r `opam var share`/Lama | ||
$(RM) `opam var bin`/$(EXECUTABLE) | ||
dune uninstall | ||
|
||
|
||
regression-all: regression regression-expressions | ||
|
||
test: regression | ||
regression: | ||
$(MAKE) clean check -j8 -C regression | ||
$(MAKE) clean check -j8 -C stdlib/regression | ||
dune test regression | ||
|
||
regression-expressions: | ||
$(MAKE) clean check -j8 -C regression/expressions | ||
$(MAKE) clean check -j8 -C regression/deep-expressions | ||
|
||
negative_scenarios_tests: | ||
$(MAKE) -C runtime negative_tests | ||
dune test regression_long | ||
|
||
clean: | ||
$(MAKE) clean -C src | ||
$(MAKE) clean -C runtime | ||
$(MAKE) clean -C stdlib | ||
$(MAKE) clean -C regression | ||
$(MAKE) clean -C byterun | ||
$(MAKE) clean -C bench | ||
rm -rf $(BUILDDIR) | ||
@dune clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
X86_32.ml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters