Ai
3 Star 0 Fork 0

Gitee 极速下载/ejscript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/embedthis/ejscript
克隆/下载
Makefile 4.28 KB
一键复制 编辑 原始数据 按行查看 历史
Michael O'Brien 提交于 2023-06-25 23:59 +08:00 . DEV: update paks and regen
#
# Makefile - Embedthis Ejscript Makefile wrapper for per-platform makefiles
#
# This Makefile is for Unix/Linux and Cygwin. On windows, it can be invoked via make.bat.
#
# You can use this Makefile and build via "make" with a pre-selected configuration. Alternatively,
# you can build using the MakeMe tool for for a fully configurable build. If you wish to
# cross-compile, you should use MakeMe.
#
# See projects/$(OS)-$(ARCH)-$(PROFILE)-me.h for configuration default settings. Can override
# via make environment variables. For example: make ME_COM_SQLITE=0. These are converted to
# DFLAGS and will then override the me.h default values. Use "make help" for a list of available
# make variable options.
#
NAME := ejscript
OS := $(shell uname | sed 's/CYGWIN.*/windows/;s/Darwin/macosx/' | tr '[A-Z]' '[a-z]')
PROFILE := default
ifeq ($(ARCH),)
ifeq ($(OS),windows)
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
ARCH?=x64
else
ARCH?=x86
endif
else
ARCH:= $(shell uname -m | sed 's/i.86/x86/;s/x86_64/x64/;s/mips.*/mips/')
endif
endif
ifeq ($(OS),windows)
MAKE := MAKEFLAGS= projects/windows.bat $(ARCH) nmake -nologo
EXT := nmake
else
MAKE := $(shell if which gmake >/dev/null 2>&1; then echo gmake ; else echo make ; fi) --no-print-directory
EXT := mk
endif
BIN := $(OS)-$(ARCH)-$(PROFILE)/bin
PATH := $(PWD)/build/$(BIN):$(PATH)
.EXPORT_ALL_VARIABLES:
all compile:
@if [ ! -f projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) ] ; then \
echo "The build configuration projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) is not supported" ; exit 255 ; \
fi
@$(MAKE) -f projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) $@
@echo ; echo 'You can now install via "sudo make $(MAKEFLAGS) install", then run via: "ejs"'
@echo " [Info] To run locally, put $(OS)-$(ARCH)-$(PROFILE)/bin in your path."
@echo ""
clean clobber install installBinary uninstall run:
@$(MAKE) -f projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) $@
@echo ' [Info] $@ complete'
deploy:
@echo ' [Deploy] $(MAKE) ME_ROOT_PREFIX=$(OS)-$(ARCH)-$(PROFILE)/deploy -f projects/$(NAME)-$(OS)-$(PROFILE). $(EXT) installBinary'
@$(MAKE) ME_ROOT_PREFIX=$(OS)-$(ARCH)-$(PROFILE)/deploy -f projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) installBinary
version:
@$(MAKE) -f projects/$(NAME)-$(OS)-$(PROFILE).$(EXT) $@
help:
@echo '' >&2
@echo 'usage: make [clean, compile, deploy, install, run, uninstall]' >&2
@echo '' >&2
@echo 'The default configuration can be modified by setting make variables' >&2
@echo 'Set to 0 to disable and 1 to enable:' >&2
@echo 'variables. Set to 0 to disable and 1 to enable:' >&2
@echo '' >&2
@echo ' ME_MPR_LOGGING # Enable application logging' >&2
@echo ' ME_MPR_TRACING # Enable debug tracing' >&2
@echo ' ME_COM_MBEDTLS # Enable the mbed TLS stack' >&2
@echo ' ME_COM_OPENSSL # Enable the OpenSSL SSL stack' >&2
@echo ' ME_COM_SQLITE # Enable the SQLite database' >&2
@echo '' >&2
@echo 'For example, to disable MBEDTLS:' >&2
@echo '' >&2
@echo ' ME_COM_MBEDTLS=0 make' >&2
@echo '' >&2
@echo 'Other make environment variables:' >&2
@echo ' ARCH # CPU architecture (x86, x64, ppc, ...)' >&2
@echo ' OS # Operating system (linux, macosx, windows, vxworks, ...)' >&2
@echo ' CC # Compiler to use ' >&2
@echo ' LD # Linker to use' >&2
@echo ' CONFIG # Output directory for built items. Defaults to OS-ARCH-PROFILE' >&2
@echo ' CFLAGS # Add compiler options. For example: -Wall' >&2
@echo ' DEBUG # Set to "debug" for symbols, "release" for optimized builds' >&2
@echo ' DFLAGS # Add compiler defines. For example: -DCOLOR=blue' >&2
@echo ' IFLAGS # Add compiler include directories. For example: -I/extra/includes' >&2
@echo ' LDFLAGS # Add linker options' >&2
@echo ' LIBPATHS # Add linker library search directories. For example: -L/libraries' >&2
@echo ' LIBS # Add linker libraries. For example: -lpthreads' >&2
@echo ' PROFILE # Set to "static" for static linking or "default" for dynamic' >&2
@echo '' >&2
@echo 'Use "SHOW=1 make" to show executed commands.' >&2
@echo '' >&2
LOCAL_MAKEFILE := $(strip $(wildcard ./.local.mk))
ifneq ($(LOCAL_MAKEFILE),)
include $(LOCAL_MAKEFILE)
endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/ejscript.git
git@gitee.com:mirrors/ejscript.git
mirrors
ejscript
ejscript
master

搜索帮助