免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1669 | 回复: 5
打印 上一主题 下一主题

看makefile 的一点疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-24 23:16 |只看该作者 |倒序浏览
其中有一句


  1. docs:
  2.         doxygen *.c

复制代码

请问这句是什么意识?

论坛徽章:
0
2 [报告]
发表于 2004-06-25 00:07 |只看该作者

看makefile 的一点疑问

我也不懂,正学习,不介意把所有的makefile 都贴出来看看。

论坛徽章:
0
3 [报告]
发表于 2004-06-25 10:27 |只看该作者

看makefile 的一点疑问

我看的libbt-1.02\src里面的makefile

  1. # -*- makefile -*-

  2. srcdir := .
  3. top_srcdir := ..


  4. CC:=gcc
  5. AR:=ar
  6. RANLIB:=ranlib

  7. PROGRAMS:=btlist btget btcheck
  8. LIBBT:=libbt.a
  9. SRCS:=\
  10.         benc.c \
  11.         bts.c \
  12.         types.c \
  13.         random.c \
  14.         strbuf.c \
  15.         stream.c \
  16.         peer.c \
  17.         segmenter.c \
  18.         util.c \
  19.         bitset.c \
  20.         context.c \
  21.         bterror.c
  22. OBJS:= ${SRCS:.c=.o}

  23. CPPFLAGS:=
  24. CFLAGS:=-g -Wall -I../include -I$(top_srcdir)/include

  25. LIBS:=-luuid -lssl -lcurl  `curl-config --libs` -lm
  26. LDFLAGS:=-g -L.
  27. VERSION=1.02
  28. MAKEDEPEND=makedepend

  29. all: ${LIBBT} ${PROGRAMS}
  30. docs:
  31.         doxygen *.c
  32. depend:
  33.         ${MAKEDEPEND} -- ${CFLAGS} - ${SRCS}
  34. btcheck: libbt.a btcheck.c
  35.         ${CC} ${CFLAGS} -DVERSION=${VERSION} ${LDFLAGS} -o btcheck btcheck.c -lbt ${LIBS}

  36. btlist: ${LIBBT} btlist.c
  37.         ${CC} ${CFLAGS} -DVERSION=${VERSION} ${LDFLAGS} -o btlist btlist.c -lbt ${LIBS}

  38. btget: ${LIBBT} btget.c
  39.         ${CC} ${CFLAGS} -DVERSION=${VERSION} ${LDFLAGS} -o btget btget.c -lbt ${LIBS}

  40. clean:
  41.         rm -f ${OBJS} btcheck.o btlist.o btget.o

  42. distclean: clean
  43.         rm -f ${PROGRAMS} ${LIBBT}
  44.         cp Makefile.default Makefile

  45. libbt.a: ${OBJS}
  46.         ${AR} rc $@ ${OBJS}
  47.         ${RANLIB} $@

  48. .c.o:
  49.         ${CC} -c ${CFLAGS} ${CPPFLAGS} $< -o $@
  50. # DO NOT DELETE

  51. benc.o: ../include/config.h ../include/benc.h ../include/types.h
  52. benc.o: ../include/util.h ../include/bts.h
  53. bitset.o: ../include/config.h ../include/bitset.h ../include/random.h
  54. bitset.o: ../include/util.h
  55. block.o: ../include/config.h
  56. btcheck.o: ../include/config.h ../include/types.h ../include/util.h
  57. btcheck.o: ../include/benc.h ../include/bts.h ../include/segmenter.h
  58. btcheck.o: ../include/bitset.h ../include/context.h ../include/peer.h
  59. btcheck.o: ../include/stream.h ../include/strbuf.h
  60. bterror.o: ../include/bterror.h
  61. btget.o: ../include/config.h ../include/bts.h ../include/types.h
  62. btget.o: ../include/util.h ../include/benc.h ../include/random.h
  63. btget.o: ../include/peer.h ../include/stream.h ../include/strbuf.h
  64. btget.o: ../include/bitset.h ../include/segmenter.h ../include/context.h
  65. btget.o: ../include/bterror.h
  66. btlist.o: ../include/config.h ../include/bts.h ../include/types.h
  67. btlist.o: ../include/util.h ../include/benc.h
  68. bts.o: ../include/config.h ../include/bts.h ../include/util.h
  69. context.o: ../include/config.h ../include/context.h ../include/types.h
  70. context.o: ../include/util.h ../include/segmenter.h ../include/bitset.h
  71. context.o: ../include/peer.h ../include/stream.h ../include/strbuf.h
  72. context.o: ../include/bts.h ../include/benc.h ../include/random.h
  73. peer.o: ../include/config.h ../include/bterror.h ../include/btmessage.h
  74. peer.o: ../include/peer.h ../include/stream.h ../include/strbuf.h
  75. peer.o: ../include/bitset.h ../include/segmenter.h ../include/util.h
  76. peer.o: ../include/context.h ../include/types.h
  77. random.o: ../include/config.h
  78. segmenter.o: ../include/config.h ../include/util.h ../include/segmenter.h
  79. segmenter.o: ../include/bitset.h
  80. strbuf.o: ../include/config.h ../include/util.h ../include/strbuf.h
  81. stream.o: ../include/config.h ../include/bterror.h ../include/stream.h
  82. stream.o: ../include/strbuf.h ../include/util.h
  83. types.o: ../include/config.h ../include/types.h ../include/util.h
  84. util.o: ../include/config.h ../include/bterror.h ../include/util.h
复制代码


源文件如上

论坛徽章:
0
4 [报告]
发表于 2004-06-28 12:02 |只看该作者

看makefile 的一点疑问

还没人回答:(

论坛徽章:
0
5 [报告]
发表于 2004-06-28 12:25 |只看该作者

看makefile 的一点疑问

http://www.chinaunix.net/cgi-bin/forum/search.cgi

论坛徽章:
0
6 [报告]
发表于 2004-06-28 13:00 |只看该作者

看makefile 的一点疑问

http://www.stack.nl/~dimitri/doxygen/
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP