kernels.mk
KERNELS = evm_kernel.wasm
SDK_DIR=src/kernel_sdk
EVM_DIR=src/kernel_evm
SEQUENCER_DIR=src/kernel_sequencer
.PHONY: all
all: build-dev-deps check test build
.PHONY: kernel_sdk
kernel_sdk:
@make -C src/kernel_sdk build
@cp src/kernel_sdk/target/$(NATIVE_TARGET)/release/smart-rollup-installer .
evm_kernel.wasm::
@make -C src/kernel_evm build
@cp src/kernel_evm/target/wasm32-unknown-unknown/release/evm_kernel.wasm $@
@wasm-strip $@
.PHONY: kernel_sequencer
kernel_sequencer:
@make -C src/kernel_sequencer build
.PHONY: build
build: ${KERNELS} kernel_sdk kernel_sequencer
.PHONY: build-dev-deps
build-dev-deps: build-deps
@make -C ${SDK_DIR} build-dev-deps
@make -C ${EVM_DIR} build-dev-deps
@make -C ${SEQUENCER_DIR} build-dev-deps
.PHONY: build-deps
build-deps:
@make -C ${SDK_DIR} build-deps
@make -C ${EVM_DIR} build-deps
@make -C ${SEQUENCER_DIR} build-deps
.PHONY: test
test:
@make -C ${SDK_DIR} test
@make -C ${EVM_DIR} test
@make -C ${SEQUENCER_DIR} test
.PHONY: check
check:
@make -C ${SDK_DIR} check
@make -C ${EVM_DIR} check
@make -C ${SEQUENCER_DIR} check
.PHONY: publish-sdk-deps
publish-sdk-deps: build-deps
@make -C ${SDK_DIR} publish-deps
.PHONY: publish-sdk
publish-sdk:
@make -C ${SDK_DIR} publish
.PHONY: clean
clean:
@rm -f ${KERNELS}
@make -C ${SDK_DIR} clean
@make -C ${EVM_DIR} clean
@make -C ${SEQUENCER_DIR} clean