代码拉取完成,页面将自动刷新
同步操作将从 tboox/tbox 强制同步,此操作会覆盖自 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
$(MAKE) -C $(SRC_DIR)
# make install
install : .null
-$(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) -C $(SRC_DIR)
$(MAKE) -C $(SRC_DIR) install
# make clean
clean : .null
$(MAKE) -C $(SRC_DIR) clean
.null :
else
# #####################################################
# no-config
# #
all :
@echo "please make config..."
endif
# #####################################################
# config
# #
# default args
ifeq ($(PLAT),)
PLAT := linux_x86
endif
ifeq ($(DEBUG),)
DEBUG := n
endif
PRO_DIR := ${shell pwd}
PRO_NAME := ${shell basename ${shell pwd}}
# is debug?
ifeq ($(DEBUG),y)
IS_DEBUG = 1
else
IS_DEBUG = 0
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 "" >> 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。