https://github.com/chucklu/GitStudy   这链接里面的第一次提交

[chucklu@localhost GitStudy]$ cat Makefile
CFLAGS=-g
CC=gcc

PROG=update-cache show-diff init-db write-tree read-tree commit-tree cat-file

all: $(PROG)

install: $(PROG)
install $(PROG) $(HOME)/bin/

LIBS= -lssl

init-db: init-db.o

update-cache: update-cache.o read-cache.o
$(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)

show-diff: show-diff.o read-cache.o
$(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)

write-tree: write-tree.o read-cache.o
$(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)

read-tree: read-tree.o read-cache.o
$(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)

commit-tree: commit-tree.o read-cache.o
$(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)

cat-file: cat-file.o read-cache.o
$(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)

read-cache.o: cache.h
show-diff.o: cache.h

clean:
rm -f *.o $(PROG) temp_git_file_*

backup: clean
cd .. ; tar czvf dircache.tar.gz dir-cache

最新文章

  1. SQL Server 性能调优之--tempdb 之存放路径
  2. java使用sax解析xml
  3. Install and set JAVA home on MAC OS with commandline
  4. jvm terminated. exit code=13
  5. SAP ALV内嵌(In-place)Excel的问与答
  6. bootstrap学习总结1
  7. Part 95 to 96 Deadlock in a multithreaded program
  8. .net中下载文件的方法(转)
  9. PHP安全外延
  10. Centos学习
  11. SRM 581 D2 L2:SurveillanceSystem,重叠度
  12. servlet规范核心类图
  13. Centos7下安装php7
  14. BZOJ3997: [TJOI2015]组合数学(网络流)
  15. Ceph,TFS,FastDFS,MogileFS,MooseFS,GlusterFS 对比
  16. Mego开发文档 - 数据属性生成值
  17. Winform DevExpress控件库(三) 使用NavBarControl控件定制导航栏
  18. VScode编辑器使用
  19. 牛客网 python 求解立方根
  20. 在VS2010中使用Git

热门文章

  1. JQGrid+Nhibernate+Webservice+Linq
  2. OSI与TCP/IP模型之比较
  3. Flex读文本文件
  4. 1087. All Roads Lead to Rome (30)
  5. 种子填充找连通块 floodfill
  6. 拉链法解决Hash节点冲突问题
  7. WCF 动态生成 不用增加引用两种方式
  8. K-meams文本聚类算法C++实现
  9. ExtJs 自定义Vtype验证
  10. flex toolTip样式设置