1 Star 0 Fork 0

中国人/svncount

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 2.74 KB
一键复制 编辑 原始数据 按行查看 历史
Admin 提交于 2019-03-16 14:37 . [ADD]增加svncount开源代码
#-----------------------------------------------------
# Makefile for DiffCount (CORE and CLI)
# for Linux and Cygwin (share this Makefile)
# C.YANG 2006 Licensed under GPL
#------------------------------------------------------
# This file is part of HikSvnCount.
# SVN Count Part developed by Haiyuan.Qian 2013
# Software Configuration Management of HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO.,LTD.
# email:qianhaiyuan@hikvision.com
#
# HikSvnCount is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation;
#------------------------------------------------------
DELETE = @rm -f
GNU_LIB=lib
CORE_SRC=src
CORE_LIB=$(CORE_SRC)/libdiffcount.a
CLI_EXE=./diffcount
CC=gcc
CFLAGS = -DHAVE_CONFIG_H -I. -I$(GNU_LIB) -I$(CORE_SRC) -w -O2 -c -I/usr/include/mysql
LFLAG = -g -O2 -L/usr/lib64/mysql -lmysqlclient -o
AR = ar
ARFLAG = cru
RANLIB = ranlib
#diffcount and static library objects
GNU_OBJS = $(GNU_LIB)/basename.o $(GNU_LIB)/c-stack.o $(GNU_LIB)/cmpbuf.o $(GNU_LIB)/error.o $(GNU_LIB)/fnmatch.o\
$(GNU_LIB)/exclude.o $(GNU_LIB)/exitfail.o $(GNU_LIB)/freesoft.o $(GNU_LIB)/getopt.o \
$(GNU_LIB)/getopt1.o $(GNU_LIB)/hard-locale.o $(GNU_LIB)/imaxtostr.o $(GNU_LIB)/offtostr.o \
$(GNU_LIB)/prepargs.o $(GNU_LIB)/posixver.o $(GNU_LIB)/quotesys.o $(GNU_LIB)/setmode.o \
$(GNU_LIB)/strftime.o $(GNU_LIB)/umaxtostr.o $(GNU_LIB)/xmalloc.o $(GNU_LIB)/xstrtoumax.o \
$(GNU_LIB)/strtoumax.o $(GNU_LIB)/regex.o
CORE_OBJS = $(CORE_SRC)/analyze.o $(CORE_SRC)/diffcount.o $(CORE_SRC)/dir.o $(CORE_SRC)/io.o \
$(CORE_SRC)/count.o $(CORE_SRC)/util.o $(CORE_SRC)/version.o
EXE_OBJS = $(CORE_SRC)/cmd.o
all:$(CLI_EXE)
#build final EXE
$(CLI_EXE): $(CORE_LIB) $(EXE_OBJS)
$(DELETE) $(CLI_EXE)
$(CC) $(LFLAG) $(CLI_EXE) $(EXE_OBJS) $(CORE_LIB)
@echo " ----------------------------------------------------- "
@echo " diffcount command compiled successful in ./src"
@echo " libdiffcount core and head file in ./src "
@echo " ----------------------------------------------------- "
#build static support library
$(CORE_LIB): $(GNU_OBJS) $(CORE_OBJS)
$(DELETE) $(CORE_LIB)
$(AR) $(ARFLAG) $(CORE_LIB) $(GNU_OBJS) $(CORE_OBJS)
$(RANLIB) $(CORE_LIB)
clean:
$(DELETE) $(GNU_OBJS) $(CORE_OBJS) $(EXE_OBJS) $(CORE_LIB) $(CLI_EXE)
$(GNU_LIB)/%.o:$(GNU_LIB)/%.c
$(CC) $(CFLAGS) $< -o $@
$(CORE_SRC)/%.o:$(CORE_SRC)/%.c
$(CC) $(CFLAGS) $< -o $@
include make.deps.linux
install:
@cp -f $(CLI_EXE) /_cmcenter/svncount
@echo " ----------------------------------------------------- "
@echo " diffcount command installed in /_cmcenter/svncount "
@echo " ----------------------------------------------------- "
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wst021sh/svncount.git
git@gitee.com:wst021sh/svncount.git
wst021sh
svncount
svncount
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385