-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
667 additions
and
629 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
.ONESHELL: # Applies to every targets in the file! | ||
QUIET := @ | ||
|
||
OS = $(shell uname -s) | ||
ARCH = $(shell uname -m) | ||
|
||
all: setup build yarn | ||
|
||
setup: | ||
cd jsvm && ./setup.sh && cd .. | ||
|
||
build: jsvm qjsc | ||
|
||
jsvm: | ||
echo "Building jsvm.wasm..." | ||
cd jsvm && ./build.sh && cd .. | ||
cp jsvm/jsvm.wasm res/jsvm.wasm | ||
|
||
qjsc: | ||
echo "Building qjsc bytecode compiler" | ||
cd quickjs && ./build.sh && cd .. | ||
cp quickjs/qjsc res/$(OS)-$(ARCH)-qjsc | ||
|
||
yarn: | ||
$(QUIET)yarn | ||
|
||
clean: clean-vendor clean-node | ||
|
||
clean-vendor: | ||
$(QUIET)rm -rf jsvm/vendor | ||
|
||
clean-node: | ||
$(QUIET)rm -rf node_modules | ||
|
||
|
||
.PHONY: all setup build yarn | ||
.PHONY: jsvm qjsc | ||
.PHONY: clean clean-vendor clean-node |
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 was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.