8 Star 34 Fork 22

itfriday / CBase

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
蚂也先生 提交于 2019-11-22 10:34 . 新增库函数
########################################################################
# This makefile is created by python script, please not edit it :) #
########################################################################
include Makefile.rules
LIB_SRC = $(wildcard ${SRC_DIR}/comm/*.c) \
$(wildcard ${SRC_DIR}/crypt/*.c) \
$(wildcard ${SRC_DIR}/http/*.c) \
$(wildcard ${SRC_DIR}/json/*.c) \
$(wildcard ${SRC_DIR}/list/*.c) \
$(wildcard ${SRC_DIR}/log/*.c) \
$(wildcard ${SRC_DIR}/mem/*.c) \
$(wildcard ${SRC_DIR}/msgq/*.c) \
$(wildcard ${SRC_DIR}/net/*.c) \
$(wildcard ${SRC_DIR}/shm/*.c)
LIB_OBJS = $(patsubst %.c,%.o,${LIB_SRC})
TARGET_SRC = $(wildcard ${SRC_DIR}/*.c) \
$(wildcard ${SRC_DIR}/test/*.c)
TARGET_OBJS = $(patsubst %.c,%.o,${TARGET_SRC})
$(LIB_TARGET): $(LIB_OBJS)
$(LIB) $@ $^
$(TARGET): $(LIB_OBJS) $(TARGET_OBJS)
$(LINK) -o $@ $^ $(CXXLIBS)
${SRC_DIR}/comm/%.o:${SRC_DIR}/comm/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/crypt/%.o:${SRC_DIR}/crypt/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/http/%.o:${SRC_DIR}/http/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/json/%.o:${SRC_DIR}/json/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/list/%.o:${SRC_DIR}/list/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/log/%.o:${SRC_DIR}/log/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/mem/%.o:${SRC_DIR}/mem/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/msgq/%.o:${SRC_DIR}/msgq/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/net/%.o:${SRC_DIR}/net/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/shm/%.o:${SRC_DIR}/shm/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
${SRC_DIR}/%.o:${SRC_DIR}/%.c
$(CPP) $(CXXFLAGS) -c $< -o $@
$(OBJ_DIR)/test/*.o: $(SRC_DIR)/test/*.c
$(CPP) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(LIB_OBJS) $(TARGET_OBJS) $(TARGET) $(LIB_TARGET)
install:
cp $(LIB_TARGET) $(INSTALL_DIR)/lib
C
1
https://gitee.com/itfriday/CBase.git
git@gitee.com:itfriday/CBase.git
itfriday
CBase
CBase
master

搜索帮助