当前位置: 首页 > news >正文

门户网站建设方案招标文件网站建设会考什么

门户网站建设方案招标文件,网站建设会考什么,正规的扬中网站建设,网页设计教程书籍推荐Variables Make Makefiles Simpler 一、本节概要 Variables Make Makefiles Simpler #xff08;变量使Makefile更简单#xff09;#xff0c;以下是官方给出的原文#xff0c;接下来会对本节内容进行拆解#xff0c;并给出详细示例代码。 In our example, we had to l…Variables Make Makefiles Simpler 一、本节概要 Variables Make Makefiles Simpler 变量使Makefile更简单以下是官方给出的原文接下来会对本节内容进行拆解并给出详细示例代码。 In our example, we had to list all the object files twice in the rule for edit (repeated here): edit : main.o kbd.o command.o display.o \ insert.o search.o files.o utils.o cc -o edit main.o kbd.o command.o display.o \ insert.o search.o files.o utils.oSuch duplication is error-prone; if a new object file is added to the system, we might add it to one list and forget the other. We can eliminate the risk and simplify the makefile by using a variable. Variables allow a text string to be defined once and substituted in multiple places later (see Chapter 6 [How to Use Variables], page 65). It is standard practice for every makefile to have a variable named objects, OBJECTS, objs, OBJS, obj, or OBJ which is a list of all object file names. We would define such a variable objects with a line like this in the makefile: objects main.o kbd.o command.o display.o \ insert.o search.o files.o utils.o Then, each place we want to put a list of the object file names, we can substitute the variable’s value by writing ‘$(objects)’ (see Chapter 6 [How to Use Variables], page 65). Here is how the complete simple makefile looks when you use a variable for the object files:Chapter 2: An Introduction to Makefiles 7 objects main.o kbd.o command.o display.o \ insert.o search.o files.o utils.o edit : $(objects) cc -o edit $(objects) main.o : main.c defs.h cc -c main.c kbd.o : kbd.c defs.h command.h cc -c kbd.c command.o : command.c defs.h command.h cc -c command.c display.o : display.c defs.h buffer.h cc -c display.c insert.o : insert.c defs.h buffer.h cc -c insert.c search.o : search.c defs.h buffer.h cc -c search.c files.o : files.c defs.h buffer.h command.h cc -c files.c utils.o : utils.c defs.h cc -c utils.c clean : rm edit $(objects)二 、Makefile中使用变量 2.1 未使用变量时的Makefile 在未使用变量时我们需要手动写出每一个依赖的文件名在目标后面的依赖中、编译选项后面、清理项等但是这样很麻烦因为我们可以使用一个变量去定义所有的文件名而在使用的时候我们只需要给出变量名即可这样就不需要在多处重复写入文件名。 # 目标文件 edit : main.o add.o sub.o multiply.o divide.occ -o edit main.o add.o sub.o multiply.o divide.o# 规则定义 main.o : main.c main.hcc -c main.cadd.o : add.c main.hcc -c add.csub.o : sub.c main.hcc -c sub.cmultiply.o : multiply.c main.hcc -c multiply.cdivide.o : divide.c main.hcc -c divide.c# 清理命令 clean :rm -f edit main.o add.o sub.o multiply.o divide.o 2.2 定义变量时的Makefile 如下我们使用变量objects 包含了所有文件名而在使用的时候我们直接给出这个变量名即可替代那些文件名不需要重复填写非常方便。 # 定义变量 objects main.o add.o sub.o multiply.o divide.o# 目标文件 edit : $(objects)cc -o edit $(objects)# 规则定义 main.o : main.c main.hcc -c main.cadd.o : add.c main.hcc -c add.csub.o : sub.c main.hcc -c sub.cmultiply.o : multiply.c main.hcc -c multiply.cdivide.o : divide.c main.hcc -c divide.c# 清理命令 clean :rm -f edit $(objects)
http://www.pierceye.com/news/611555/

相关文章:

  • 网站建设a云世家宋南南网站建设合集
  • 可以网上做单的网站创建全国文明城市的宗旨是什么
  • 北京诚信建设网站成都蓉城最新消息
  • 上市公司网站建设分析评价网页制作的视频教程
  • 网站营运费网站关键字优化工具
  • 上海企业网站建站中山一站式营销推广平台
  • 想做网站策划怎么做苏州seo关键词排名
  • 中小型企业电子商务网站建设seo优化推广公司
  • 网站开发类型什么意思网页制作与设计千年之恋代码
  • 怎么做公司的网站免费网站建设专业的公司
  • 适合这手机浏览器主页的网站wordpress本地上传服务器
  • 济南百度网站开发寮步镇做网站
  • 营销类型的公司网站专注高密做网站哪家好
  • 公司网站建设找谁做网络渠道
  • 网站建设公司 校园网站html5商城网站
  • 自学it做网站厦门网站推广¥做下拉去118cr
  • 汕头市做网站优化国内时事新闻
  • 网站文章来源seowordpress 搜索 分词
  • 网站建设和网络推广微信开发品牌
  • 湛江网站关键词优化百度推广优化技巧
  • 做盗版网站会怎样网页设计规范2018
  • 做个中英文网站多少钱网页设计图片作品
  • iis7 添加php网站网站为什么需要空间
  • 网站到首页排名h5怎么制作的
  • 网站制作教程 pdf下载培训网站制作网站
  • 网站开发文档范例国外服务器租用价格表
  • 六安网站制作费用怎么做百度提交入口网站
  • centos7做网站做pc端网站讯息
  • 驻马店建设网站安徽全过程网站搭建案例
  • 企业网站推广费用wordpress相册汉化版