代码拉取完成,页面将自动刷新
同步操作将从 xSky/xhttpcache 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
######################################################################
# Makefile #
######################################################################
CC := g++
SRC_DIR := ./src/xHttpd.cpp ./src/xevHtpdFrontend.cpp ./src/xevHtpdBackend.cpp ./src/xHttpCache.cpp
SRC_DIR += ./src/xExpireManager.cpp ./src/xDataBase.cpp ./src/xConfig.cpp ./src/xRedisServer.cpp ./src/xEtagManager.cpp
SRC_DIR += ./common/jsoncpp.cpp ./common/xIniFile.cpp ./common/xLog.cpp ./common/xRedisServerLib.cpp ./common/MurmurHash2.cpp
SRC_DIR += ./common/util.cpp ./common/sds.cpp ./common/sorted_set.cpp ./common/xevHtpdBase.cpp
SRC_DIR += ./common/Exception.cpp ./common/Field.cpp ./common/Parser.cpp
INC_DIR := ./ ./common ./include ./include/evhtp
LIB_DIR := ./lib /usr/local/lib64 /usr/local/lib
INSTALL_PATH := .
# /usr/local/ssl/lib/
SRC_FILES := $(wildcard $(SRC_DIR))
OBJ_FILES := $(SRC_FILES:.cpp=.o)
LD_LIBS := ssl crypto rt pthread dl
AR_LIBS := evhtp event event_pthreads event_openssl rocksdb snappy bz2 z
STATIC_LIBS := -Wl,-Bstatic $(addprefix -l,$(AR_LIBS)) -Wl,-Bdynamic
APP_NAME := xhttpcache
APP_SUFFIX :=
APP_TARGET := $(APP_NAME)$(APP_SUFFIX)
.PHONY: all clean
LDFLAGS := $(addprefix -L,$(LIB_DIR)) $(STATIC_LIBS) $(addprefix -l,$(LD_LIBS)) -Wl,-export-dynamic
CFLAGS := $(addprefix -I,$(INC_DIR)) -D_REENTRANT
CFLAGS += -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing
CFLAGS += -std=c++11 -D__STDC_FORMAT_MACROS
all: $(APP_TARGET);
$(APP_TARGET): $(OBJ_FILES)
$(CC) -o $(APP_TARGET) $(CFLAGS) $(OBJ_FILES) $(LDFLAGS)
@echo *********Build $(APP_TARGET:.a=.so) Successful*********
%.o: %.cpp
$(CC) $(CFLAGS) -c $< -o $@
install:
@echo install...
clean:
@echo clean...
@rm -rf $(OBJ_FILES)
@rm -rf *.orig
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。