代码拉取完成,页面将自动刷新
同步操作将从 Lamdonn/varch 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
##################################################################################
### config
##################################################################################
CC = gcc
BUILT_DIR = built
TARGET = app
##################################################################################
### source locations
##################################################################################
WORKSPACE = source
TESTSPACE = test
APPLICATION_PATH = $(WORKSPACE)/00_application
GENDATA_PATH = $(WORKSPACE)/01_general
VSTD_PATH = $(WORKSPACE)/02_vstd
CONTAINER_PATH = $(WORKSPACE)/03_container
ALGORITHM_PATH = $(WORKSPACE)/04_algorithm
PARSER_PATH = $(WORKSPACE)/05_parser
##################################################################################
### sources and head path
##################################################################################
include $(TESTSPACE)/test.mk
INCLUDE += -I $(APPLICATION_PATH)
INCLUDE += -I $(GENDATA_PATH)
INCLUDE += -I $(VSTD_PATH)
INCLUDE += -I $(CONTAINER_PATH)
INCLUDE += -I $(ALGORITHM_PATH)
INCLUDE += -I $(PARSER_PATH)
SOURCES += $(APPLICATION_PATH)/init.c
SOURCES += $(APPLICATION_PATH)/main.c
SOURCES += $(wildcard $(APPLICATION_PATH)/console/*.c)
SOURCES += $(wildcard $(GENDATA_PATH)/*.c)
SOURCES += $(wildcard $(VSTD_PATH)/*.c)
SOURCES += $(wildcard $(CONTAINER_PATH)/*.c)
SOURCES += $(wildcard $(ALGORITHM_PATH)/*.c)
SOURCES += $(wildcard $(PARSER_PATH)/*.c)
SOURCES += $(TEST_SRC)
##################################################################################
### targets and recipes
##################################################################################
OBJ_PATH = $(BUILT_DIR)/obj
BIN_PATH = $(BUILT_DIR)/bin
OBJS = $(patsubst %.c, $(OBJ_PATH)/%.o, $(SOURCES))
TAR_PATH = $(BIN_PATH)/$(TARGET)
# link
${TAR_PATH}:$(OBJS)
$(shell mkdir -p $(dir $@))
# @ $(CC) $(OBJS) -o $(TAR_PATH) -lm -lX11 -lpthread
@ $(CC) $(CFLAG) $(OBJS) -o $(TAR_PATH) -lm -lpthread
# compile
$(OBJ_PATH)/%.o:%.c
$(shell mkdir -p $(dir $@))
@ echo "compiling $(notdir $<)"
@ $(CC) $(CFLAG) $(INCLUDE) -c $< -o $@
.PHONY:clean
clean:
@echo "remove app and objs files ..."
$(shell rm $(BUILT_DIR)/$(WORKSPACE) -rf)
$(shell rm $(BUILT_DIR)/* -rf)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。