代码拉取完成,页面将自动刷新
同步操作将从 tboox/ts 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# main makefile
# #####################################################
# includes
# #
${shell if [ ! -f "config.mak" ]; then touch config.mak; fi }
include config.mak
# #####################################################
# make projects
# #
ifeq ($(IS_CONFIG), yes)
# include prefix
include prefix.mak
# make all
all : .null
@echo "" > /tmp/$(PRO_NAME).out
@echo make $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR)
# make install
install : .null
@echo "" > /tmp/$(PRO_NAME).out
@echo install $(PRO_NAME)
-@$(RMDIR) $(BIN_DIR)
-@$(MKDIR) $(BIN_DIR)
-@$(RMDIR) $(BIN_DIR)/inc
-@$(RMDIR) $(BIN_DIR)/lib
-@$(RMDIR) $(BIN_DIR)/obj
-@$(MKDIR) $(BIN_DIR)/inc
-@$(MKDIR) $(BIN_DIR)/lib
-@$(MKDIR) $(BIN_DIR)/obj
@$(MAKE) --no-print-directory -C $(SRC_DIR)
@$(MAKE) --no-print-directory -C $(SRC_DIR) install
# make clean
clean : .null
@echo "" > /tmp/$(PRO_NAME).out
@echo clean $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR) clean
# make update
update : .null
@echo "" > /tmp/$(PRO_NAME).out
@echo update $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR) update
@$(MAKE) --no-print-directory -C $(SRC_DIR)
@$(MAKE) --no-print-directory -C $(SRC_DIR) install
# make output
output: .null
@echo output $(PRO_NAME)
@cat /tmp/$(PRO_NAME).out
.null :
else
# #####################################################
# no-config
# #
all :
@echo "please make config..."
endif
# #####################################################
# config
# #
# platform
ifeq ($(PLAT),)
PLAT := linux_x86
endif
# linux, cygwin, mac
ifeq ($(HOST),)
HOST := linux
endif
# debug
ifeq ($(DEBUG),)
DEBUG := n
endif
ifeq ($(DEBUG),y)
IS_DEBUG = 1
else
IS_DEBUG = 0
endif
# project
PRO_DIR := ${shell pwd}
PRO_NAME := ${shell basename ${shell pwd}}
# ccache
ifeq ($(CCACHE),n)
CCACHE :=
else
CCACHE := ${shell if [ -f "/usr/bin/ccache" ]; then echo "ccache"; elif [ -f "/usr/local/bin/ccache" ]; then echo "ccache"; else echo ""; fi }
endif
# distcc
ifeq ($(DISTCC),y)
DISTCC := ${shell if [ -f "/usr/bin/distcc" ]; then echo "distcc"; elif [ -f "/usr/local/bin/distcc" ]; then echo "distcc"; else echo ""; fi }
else
DISTCC :=
endif
config :
# generate config.h
-cp ${shell pwd}/plat/$(PLAT)/config.h ${shell pwd}/src/config.h
# append config.h
@echo "// config" >> ${shell pwd}/src/config.h
@echo "#ifndef $(PRO_NAME)_AUTO_CONFIG_H" >> ${shell pwd}/src/config.h
@echo "#define $(PRO_NAME)_AUTO_CONFIG_H" >> ${shell pwd}/src/config.h
@echo "#define $(PRO_NAME)_CONFIG_DEBUG $(IS_DEBUG)">> ${shell pwd}/src/config.h
@echo "#endif" >> ${shell pwd}/src/config.h
# generate config.mak
@echo "# config" > config.mak
@echo "IS_CONFIG = yes" >> config.mak
@echo "" >> config.mak
@echo "# architecture" >> config.mak
@echo "PLAT =" $(PLAT) >> config.mak
@echo "" >> config.mak
@echo "# root" >> config.mak
@echo "PRO_DIR =" $(PRO_DIR) >> config.mak
@echo "PRO_NAME =" $(PRO_NAME) >> config.mak
@echo "DEBUG =" $(DEBUG) >> config.mak
@echo "SDK =" $(SDK) >> config.mak
@echo "BIN =" $(BIN) >> config.mak
@echo "HOST =" $(HOST) >> config.mak
@echo "CCACHE =" $(CCACHE) >> config.mak
@echo "DISTCC =" $(DISTCC) >> config.mak
@echo "" >> config.mak
@echo "# export" >> config.mak
@echo "export PLAT" >> config.mak
@echo "export PRO_DIR" >> config.mak
@echo "export PRO_NAME" >> config.mak
@echo "export DEBUG" >> config.mak
@echo "export SDK" >> config.mak
@echo "export BIN" >> config.mak
@echo "export HOST" >> config.mak
@echo "export CCACHE" >> config.mak
@echo "export DISTCC" >> config.mak
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。