1 Star 0 Fork 1.2K

单眼皮 / OpenArkCompiler

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Makefile 935 Bytes
Copy Edit Web IDE Raw Blame History
BinaryFZ authored 2019-08-31 14:56 . Initial commit
#
#Makefile for OpenArkCompiler
#
INSTALL_DIR := ${MAPLE_ROOT}/out
BUILD_TYPE := RELEASE
HOST_ARCH := 64
MIR_JAVA := 1
GN := ${MAPLE_ROOT}/tools/gn/gn
NINJA := ${MAPLE_ROOT}/tools/ninja_1.9.0/ninja
GN_OPTIONS := \
GN_INSTALL_PREFIX="$(MAPLE_ROOT)" \
GN_BUILD_TYPE="$(BUILD_TYPE)" \
HOST_ARCH=$(HOST_ARCH) \
MIR_JAVA=$(MIR_JAVA)
.PHONY: default
default: install
.PHONY: mapleall
mapleall:
$(call build_gn, ${GN_OPTIONS}, maple)
.PHONY: install
install: mapleall
$(shell cp -rf $(MAPLE_ROOT)/src/bin/java2jar $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/src/bin/jbc2mpl $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/src/bin/mplcg $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/out/bin/maple $(MAPLE_ROOT)/src/bin/)
.PHONY: clean
clean:
@rm -rf out/
define build_gn
mkdir -p ${INSTALL_DIR}; \
$(GN) gen ${INSTALL_DIR} --args='$(1)'; \
cd ${INSTALL_DIR}; \
$(NINJA) -v $(2);
endef

Comment ( 0 )

Sign in for post a comment

C++
1
https://git.oschina.net/danyanpiwo/OpenArkCompiler.git
git@git.oschina.net:danyanpiwo/OpenArkCompiler.git
danyanpiwo
OpenArkCompiler
OpenArkCompiler
master

Search