1 Star 0 Fork 2

mrw954/SearchEngine

forked from jinglin_zhou/SearchEngine 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 780 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinglin_zhou 提交于 2021-05-19 10:28 . 网页搜索模块init
CC := g++
CPP_FLAGS := -g -Wall
LIBS := -lpthread
INC_DIR := ./include
SRC_DIR := ./source/KeyRecommender ./source/DictionaryProducer ./source/CacheManager ./source/SearchEngineServer ./source/ThreadPool ./source/TcpServer ./source/WebPageSearch ./source/WebPagePreprocesser
INC_FILE := $(addprefix -I, $(INC_DIR))
CPP_FILE := $(wildcard $(addsuffix /*.cc, $(SRC_DIR)))
OBJS := $(patsubst ./source/%.cc, ./objects/%.o, $(CPP_FILE))
TARGET := SearchEngine Client DictionaryProducerTest
all:$(TARGET)
%:$(OBJS) ./objects/%.o
$(CC) $(CPP_FLAGS) -o $@ $^ $(INC_FILE) $(LIBS)
./objects/%.o:./source/%.cc
$(CC) $(CPP_FLAGS) -o $@ -c $^ $(INC_FILE) $(LIBS)
.PHONY:clear rebuild
clear:
$(RM) $(TARGET) $(OBJS) $(patsubst %, ./objects/%.o, $(TARGET))
rebuild:clear all
.SECONDARY:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mrw954/search-engine.git
[email protected]:mrw954/search-engine.git
mrw954
search-engine
SearchEngine
master

搜索帮助