编译多个C源代码文件

  当程序文件越来越多,修改了其中的一部分代码文件,我们并不需要全部重新编译,只需要编译其中一部分就可以,下面我们创建了一个launch程序,除了主程序,我们创建了3个功能代码文件reaction.c pitch.c engine.c

 #include <stdio.h>
#include "lac.h" void reaction(){
printf("reaction \n");
}
 #include <stdio.h>
#include "lac.h" void pitch(){
printf("pitch \n");
}
 #include <stdio.h>
#include "lac.h" void engine(){
printf("engine \n");
}
 #include <stdio.h>
#include "lac.h" int main(){
reaction();
pitch();
engine();
return ;
}

  首先将源代码编译为目标文件

  gcc -c *.c

  *.c会匹配当前目录下的所有C源文件,-c会告诉编译器为所有源文件创建目标文件

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAloAAADmCAIAAACCrryaAAAgAElEQVR4nO2dzVMbV5/vezGLLOevSBaznFmEqlncqruc7KbqVm6lam6eW0XNJiRVU3cmqaRcNZtYz5P40QNV8YN9XVgeGzAQBIYGuXkLwpjE4GBhO1doiHlsFAshQSa8SC0JNfguRHeft36RaNQCfT/FAlrntI4OOuej8zut/km3hufxgx/84Ac/+GnyH0nTNE3T4qm8BgBwzctswe8mNAXo5/rQbP0sfL3Q4fnjv/3v/+N3E0DTTR9+gX6uD83Wz9DhReDv/+lf/seN6D/9/j/8bkiz02zTh1+gn+tDs/UzdHju+fv/+dHv/hy5/Gi74/HO/40s+N2cpqbZpg+/QD/Xh2brZ+jwfPPf/9cngZGFyWRufH3/4S+5pc38/Gv813yj2aYPv0A/14dm62foEADPaLbpwy/Qz/Wh2foZOgTAM5pt+vAL9HN9aLZ+hg4B8Ixmmz78Av1cH5qtn89ah8+ufNjR/4v147/MtH34+Xsf9i1o2kLn51cen/oJAfAP6+kj3X/JHAiu3uqP+9pG0uzBk/HC//QZ11CZJz85Q7r/klnyYgwxy35+3PeePuEsdBodTsxCj/vYrrs0s/G4773OZ5qW7r/Uh0vRSNzocGOkw82b+b1LMxuetOksOVMdPrsiGrqVQb4x0kEN419m2j7EexGcbza2LaaPX2baLs30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MBuPvI7bmqpQ+tWkbuDzKJaUVJ8OBU69BnnYCkbKmX+tdVvHnqmw3A4nD84yOdyaj53YsQCbcRyORwOc/U4HfKBy0SwxfCipec01zqs/F2tDh2uU4UOgQE7DO2sJQiW8jpkbMhiXEkqHvuO87pVgQbWYZV7h0QBi1VDRYeijUNsHvqEm71D9gIqq8+TLvFMh4ODg7n9fcqIqmHEYuUriYODg1w9ZuFFxSXlVlZpiWALGe3US8rBYMJtsNTcoeR0aEZNrWpZAh0CTdMs4ojEwGZHqMCOxIpQGG01cbNT4jgl0GtQm2BpLERezOe3IdivmYivLKXRbScohtVhw+FGhxqzGdAoq8Ourq6D/X3KiPl8gTZiV1cXV4+LQwqumjEPtbS2tggOExKs6lIaSx1a1bIEOgSaxl+XSNqKmYrZdR41vMkj1iFAymScZW0XNqICtIAFbbP48qRvuP7e4UnD6S5mOww6bBSshoYJt//QZlxSbVvPAc902N7efrC3d7C/pxvxgDZi4bBUbG9vr7J55wboEJwRbiI+vscuG5WTidUyFtxGfO8QOmx6PNPh5cuX93d3DSPmREa8fPmyl21vJKBDcDbAhgDUCc90+Lk7vGx7IwEdAgDAuQbpf70BvQQAAOca6NAb0EsAAHCugQ69Ab0EAADnmip0iB83P/X6xwEAAPAS6BA6BAAAAB1ChwAAANzoEAAAALjwQIcAAAAAdAgAAABAhwAAAICmaf8f7jpeckZyCPkAAAAASUVORK5CYII=" alt="" />

  然后通过下面的命令,编译器会过滤掉代码文件,将目标文件链接起来,行程launch程序

  gcc *.o -o launch

  如果我们修改了其中一个文件,只需要编译修改的文件,然后再将目标文件连接起来,这样就可以不必编译所有的文件了

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn8AAACOCAIAAADPffk5AAAIZUlEQVR4nO3dUZabuhIFUA8iw8hcMmWGdj9y49BIKhUCV3fae39hEFUS7y3OwtdNHj9+/noAAJWkLwBUk74AUE36AkA16QsA1aQvAFSTvgBQTfoCQLV703f7qD0an3Kq/l1983WeA6bj43nOVkm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/lzkynVHXalV3f+mUb3rguA7yn/976jQ91kGqVLN6jawd36I6MiC/UzpUb1p3Uy1weAt1DwriupAwAf1LxpMnimBIC34z3PAFBN+gJANekLANWkLwBUk74AUC2Tvhd/q+zXzgDwwXL6nkpT6QsAf61983w2TaUvAPy1/1cWRi9HDHZmxj8Gb6MEgDcV/ysL+T1xkX0kC2AA3t2L0jc4JH0BeHfSFwCqXUzf0Yndb55H1QDgvezT9+l5dGu0h/bVMiOlLwDvrn32BQBe6/kXRwIYAIp4zzMAVJO+AFBN+gJANekLANWkLwBUe0X6+vk0AESkLwBU880zAFRr3zT5PDR6x+Tj48sj27dILtTxrAzAG3m+6+r3xyvbT930XagDAN/T4U2T9enr8ReAt3N49t2rfPYFgDey8M3zI/xPuaPBp+oDwHc2/dVVu70Xp/I2+FlWd/yNiwKAL23hL448swLAJWt/7+uZFQDWedsGAFSTvgBQTfoCQDXpCwDVpC8AVJO+AFBN+gJANekLANWkLwBUk74AUE36AkCx/wBWgfE7QKBNKgAAAABJRU5ErkJggg==" alt="" />

用make工具自动化构建

  那么问题来了,如果修改的文件很多,编译的时候我们就很难记得修改了哪些文件,当然也可以把所有文件都重新编译,但是那样效率很低,有没有什么办法让它自动编译呢?下面我们就通过make工具自动化构建

  make编译的文件叫目标,对每个目标它需要知道两件事情:依赖项(生成文件需要用哪些文件)和生成方法(生成该文件时需要哪些指令);依赖项和生成方法合起来就构成了规则,有了规则,make就知道如何生成目标

  比如,要将reaction.c编译成目标文件reaction.o;那么reaction.o就是目标,reaction.c是依赖项,生成方法就是将reaction.c转化为reaction.o的编译命令 gcc -c reaction.c;创建完目标文件后,我们需要将所有目标文件链接在一起,就是通过 gcc *.o -o launch命令,*.o匹配所有目标文件;如果只是需要链接一部分目标文件,就需要将要链接的目标文件逐个列出来,像这样: gcc launch.o reaction.o  -o launch

  现在我们就将所有的目标、依赖项和生成方法保存到makefile(或者是Makefile)文件,然后将该文件放在源程序文件同目录中

 launch.o: launch.c lac.h
gcc -c launch.c
reaction.o: lac.h reaction.c
gcc -c reaction.c
pitch.o: lac.h pitch.c
gcc -c pitch.c
engine.o: lac.h engine.c
gcc -c engine.c
launch: launch.o reaction.o pitch.o engine.o
gcc *.o -o launch

  需要注意的是,生成方法都是tab开头

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdYAAABoCAIAAADDz0a8AAANL0lEQVR4nO3d7W8TyR0H8PtDEoFxYifGMbYTiAX0yjVwCldESjhExTUcfdFzDqRGtSrZUntVdUUq6qs2QiFRXoB0FaqOF3Cv7Ij2ZRP6DnpvHHhxUOl0PatRpahqN8mbvlh7vQ+zsw8zuzM7/lqfF4DjtTO7+2V2djy/tx7ggQceeOAh6PHWx3jggQceeAh6vHXhvXfMcqkhAACIByIYAEAYRDAAgDCkCK41tf6jWRf9EXuWNjTt5cqs6I9hhbaSojWkPDYAfKD1gudX2ogVn9BWQltD6mMDgAIRzAfaSmhrSH1sAFCEjWDXS077yVBvaVr77rz12Xqr99L+U4bZtbax5fbaBfuWqa+lunD3pUbcMgeqtZXrlqNrDZb3Zf99AcQIFcG1ptZaMv5ab5nPJe9Y0TRtozaUS3Uz0dp5WdrQNNPGZ9da/l9LZfv5WrO/Kdu7h+q+KdVWtC1H1xos78v4+wIIw2Mg4sLdl/048xEr5nOsrdnPSdf+i8dr6ZxbJr1XBBGsRFvF0hos78v0+wIIFDKC51f6l4uauQPi7+La5dnZtTal80J/LR1hy3zHK9Vuq1hag+V9WX5fAJHCRPD8StsyThewZ+f/WSuW04y05VozhghWpK1EtEYQiGBIqhAR7OitcIsV9XrBirRVLK2BXjAMIuq348j9RPvhrl9aupxIs2tt/7HiPb4Z+jTzNxbMQOm2iqU1WMeCEcGQRNQItt4tMVhuZPdmellOpN6z3YE/37HieZffx2nmckst4hkRSrUV84yIcK3h732JnxkRDEnlsUaE6eaJeZKmefJms24/37ozhDRjqmaAWBlynxnKGCt+5gUzRLBibcU2Lzhsa/h5X0QwKAXL9AAACIMIBgAQBhEMACAMIh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1hjLC0XQGorsQQDlxRzB9Ns1vIviWOuwMXKLYPbyQnG0RkL3IIDq0Av2i3Itz1heKILWUGQPAihPurFgjkVxOI8tkvvUHMoLuWCNYAX2IIDyopoR4V4yx+N+eviKDBHPiHArfsFeXsjlUzFHcOL2IGZEwOChDETcdZs66l32JjXkVjLH8RTXojje84IZIthy2828cfbyQpFEcCL3IOYFw4DxNxYMCYM9CJAMiGAlYQ8CJAMiWEnYgwDJENUyPQAA4AkRDAAgDCIYAEAYRDAAgDCIYBmggBDAgEIEywAFhAAGFCJYdohgAIXJF8H9IkDttVrQL/tG9/VWluJDKCAEAGT/B21XYk/bo59MAAAAAElFTkSuQmCC" alt="" />

  现在可以打开控制台开始编译代码了;在unix系统中我们可以用make命令,而在windows系统中MinGW版的make写作 mingw32-make

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAABrCAIAAABos6QcAAAIg0lEQVR4nO3dvY8cZx0H8PkPkpjwIhBFGgQSAWIXSIgGidjhTXEiUM7GwXFCQQENEgKFjpYyfovvcGITCpBIggJ3TihYiYYCEZKLQQiJBgmJJk0Qxj7bobCzmZt5nmeemZ2dud39fApr77lnfs/veYr5evdWu8Ud9z91+vlX7/74gwUAMBgBDAAjEMAAMAIBDAAjEMAAMAIBDAAjuOP+k70H8GS3+m/Tl7Sq39e6+XWmExrnp/ts2mXDoj3KOc/5LdpjqTmdT3rRwVYEls2dB0+efv7P3QI4P5xiP9YHK4/T9WOPO6ybf2Hlzhubn5gTWzptTrf7nPMcYOm9Vm1vrggslcwArqROeTA4s37VpCRRpPG+nx8YrdZt7L8ykrlu5kb2iJyzndNye63a3lwRWCp3Hjx55p0AjmVVEQngInQPSidfYn5Q/m/7WjdRp/Kr9PzgnMb+E80nBoNbq7TReCCZfca07T+4/fT8nAZiLbVaNKdOET9bgCzTAI7dmBrFbnDBe1P6LpxTv991EzfoSp3Y+STWjS0R3EW6//SO2j6O/RhsMjazsrXG/hM9ZPaclnPIPT4udh9aq1YBi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oIPBUI+E2HgHc63fts6kpt5k43hj0MYGg5cAsGwaX4IGAPoXewl67L4AYKkN+UEcAMBtAhgARiCAAWAEAhgARiCAAWAEAhgARiCAAWAEAhgARiCAAWAE3xTAADC4/wNQx6BAgrLSkAAAAABJRU5ErkJggg==" alt="" />

  当在我们修改了其中一个源代码文件(pitch.c),重新编译,你会看到make只编译了修改的文件

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoUAAACQCAIAAADxz4aCAAAOGUlEQVR4nO3da4wV5R3H8VP2RtUuF2/4xtjYVBQKVRN1r6JgynJZAWu1yAKLWN4YExNJrH3ji1b2Atbd9QKoLLvLpqJYbYkXsElPmmgDolYRNX3R2ETTmlbpxdbq3vpizs7Omecyz8yZM8/ZM99PnpjZOc/8n/+MZH7O8XA209r7j9be0629p1t7Trf2nP71m19c3npvBgAAJGnlzk9W7Pxkxc6/OuP5E58vWrXddlMAAKTMsp/9edlPP3THs8f+uaDlbttNAQCQMvX3vTs5Ttbfd/Lgq3+bv+xO200BAJAyi+96bfFdry2+61VnHPjtxxc332G7KQAAUuZb7S96x/4jf7qwbqPtpgAASJkLbn7KOx5/4YMLrrw1xvrZfOKr+kNC1Y9rXfM67oTA+fo+g84yYNEYmVzP4i0aY6kiXR/9oomtCKAMzV75xNRY8cRjz588d/FNEeqYZ5XqR3Gnb1tfX7UdYV3zA303YtV8zRzV0npFuvubXM8Eli61aqW5IoByc8bSXu94+Nm35i64UX+IL4S8O6UzxaOyHpoigTFgnh+h1g3s37fHcF3DEykRJte2SMuVWrXSXBFAualu3ukdfc+cmHPpqoz2fT/9fukeaTXNfCnzV+NaV1PH95J+vnROYP+a5jU7pafmayPwghj2qRK2f+np6+ebNKBqKdSiJnUy6msLAKYqGroqGjrd0XPw9VnzV6ruU4FU9zvprUp/UzapH++6mvu1r47q+mjWVS0hPQt9//ozCrut+lHapGqm79QC+9f0YNiznslFjnE7k3/RQrUKADkV9Z3eIeZxWOI9S3WfElcxWdfkqELWNek/KxO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o56gLr80lvAIBl7YNj7YPjk6kcPY/1k63kcagVyWMAgE3tQ+PtQ+NOJLcPjh95b1rmceErkscAAJsmw3jMMI/17z+b7w/1PrY7TTxEWicrCFzXt0RgSwAAxMn7cNw+OH7kvXE3j8Xo0uS0Zqe4P7COvoImTfWdaIp4z5RIBgAkLfd+9WQqH/XksTNB3FY9YmamVR6Hqg8AQHFtycvjMZM81lQjjwEAiGLL0PhUJA8ZPR+L264SzGPD/sljAIBNofLY/VGVf+KrJvtN+pQW0dT3vqSqo5pJHgMAkubk8Zb8PLbdlAQZCQAoZ24ebynhPA77MA0AwDRz+4GJLQcm3EguzTwGAKDMkccAANh3+4EJZ5DHAABYQx4DAGCfJ48nyGMAAOxw89gZRcpjPhoNAIAOeQwAgH2+PH7lfd6vBgAgcao8NvlySm8d707xuycj1OF5GgCQItI8Vn2Zc9htlzSPI9QBAKA8afJYfFRNJo95RAYApE7g87FXks/HAACkSCzvV2e0/0tYNTlUfQAAylmEz3OJ2176nM4qPvAlnR/jaQIAUNJi+ftOPNcCAFCQuP7+Mc+1AABEx/eBAABgH3kMAIB95DEAAPZtJY8BALBu6/DEVvIYAAC7yGMAAOzbOjzhRPJW8hgAAFtyeTxMHgMAYA95DACAfVN5PDyxlTwGAMCKvDweJo8BALCBPAYAwD7yGAAA+8hjAADsI48BALDu/xHyuv9ZaQjLAAAAAElFTkSuQmCC" alt="" />

  使用make工具的目的是快速编译多个源文件程序,如果你写的只是单个源代码文件,那就直接编译来得省事

C语言学习013:通过make编译C源代码的更多相关文章

  1. C语言学习 第八次作业总结

    本次作业其实没有新的内容,主要就是复习上一次的一维数组的相关内容.冯老师布置了5道题目,其中涉及到一些比较简单的排序或者是查找的方法.因为数据很少,所以直接使用for循环遍历就可以了. 关于本次作业, ...

  2. linux 下C语言学习路线

    UNIX/Linux下C语言的学习路线.一.工具篇“公欲善其事,必先利其器”.编程是一门实践性很强的工作,在你以后的学习或工作中,你将常常会与以下工具打交道, 下面列出学习C语言编程常常用到的软件和工 ...

  3. 《C语言入门1.2.3—一个老鸟的C语言学习心得》—清华大学出版社炮制的又一本劣书及伪书

    <C语言入门1.2.3—一个老鸟的C语言学习心得>—清华大学出版社炮制的又一本劣书及伪书 [薛非评] 区区15页,有80多个错误. 最严重的有: 通篇完全是C++代码,根本不是C语言代码. ...

  4. 12天学好C语言——记录我的C语言学习之路(Day 1)

    12天学好C语言--记录我的C语言学习之路 Day 1: 刚刚入门C语言,那么肯定要先把什么是C语言和大家讲清楚,那么大家看下面一段程序(program  1.1): /*//program 1.1 ...

  5. C语言学习_从VC++6.0开始

    前言: C语言是一门博大精深的语言,C语言往往是程序员以及所有软件行业从业者的第一门编程语言. 编程环境: 对于初学者来说,我一开始学习C语言,其实是用的turboc 2.0版本,这个很有历史感,但是 ...

  6. 郝斌老师C语言学习笔记(一)

    在给变量分配内存时,很可能这段内存存在以前其他程序使用留下的值.当使用VC编译器,若编译器发现没有给变量赋值而使用,就会返回一个以“85”开头的很大的数字(此时该段内存中为一个垃圾数,为了避免出现较常 ...

  7. Unix和Linux下C语言学习指南

    转自:http://www.linuxdiyf.com/viewarticle.php?id=174074 Unix和Linux下C语言学习指南 引言 尽管 C 语言问世已近 30 年,但它的魅力仍未 ...

  8. C语言学习笔记---谭浩强

    前段时间有机会去面试了一次,真是备受“打击”(其实是启发),总的来说就是让我意识到了学习工具和学习技术的区别.所以最近在看一些数据结构和算法,操作系统,python中的并行编程与异步编程等东西.然而数 ...

  9. Python学习(二) 运行Python,编译Python

    无论windos还是Linux只要安装了python,配置好了环境变量,则在命令行输入python这个命令的时候就会进入交互模式.在这个模式下可以进行一些简单的python代码编写.退出可以使用exi ...

随机推荐

  1. 用“MEAN”技术栈开发web应用(一)AngularJs前端架构

    前言 不知何时突然冒出“MEAN技术栈”这个新词,听起来很牛逼的样子,其实就是我们已经熟悉了的近两年在前端比较流行的技术,mongodb.express.angularjs.nodejs,由于这几项技 ...

  2. css实现左栏固定右栏自适应,高度自适应的布局

    收集css中的基础知识,所以这并不是什么新鲜的技术,只是作为备忘~本文的内容如题所示,是一个简单的布局,用于左右两栏布局的页面,左侧是固定宽度,右侧占据剩余的宽度.在垂直方向,始终以高度最大的一栏为基 ...

  3. js模版引擎handlebars.js实用教程——each-基本循环使用方法

    返回目录 <!DOCTYPE html> <html> <head> <META http-equiv=Content-Type content=" ...

  4. mysql --prompt

    mysql --prompt修改命令行链接mysql时的提示符,shell脚本示例如下 #!/bin/bash in crm) cmd='mysql -h192.168.1.2 -uroot -pro ...

  5. 让我欲罢不能的node.js

    从我大一接触第一门编程语言C开始,到现在工作三年陆续接触到了C.汇编.C++.C#.Java.JavaScript.PHP,还有一些HTML.CSS神马的,从来没有一门语言让我像对node.js一样的 ...

  6. Winform文件下载之WinINet

    在C#中,除了webclient我们还可以使用一组WindowsAPI来完成下载任务.这就是Windows Internet,简称 WinINet.本文通过一个demo来介绍WinINet的基本用法和 ...

  7. Spring Trasnaction管理(3)- 事务嵌套

    问题导读 Spring 如何管理嵌套的事务 Spring事务传播机制 Nested 和 RequireNew 有何区别 事务传播机制 事务的传播机制应该都比较熟悉 在日常开发中会遇到需要事务嵌套的情况 ...

  8. jdk研究——java.lang

    jdk研究 volatile 是什么意思? 如何看jdk源码? 如何调试源码!---------仔细解读关键类,关键代码,常用的api的解释! 自己有疑问的不懂地方-------- 不懂的太多怎么办. ...

  9. iOS 向模拟器里添加照片

    iOS 向模拟器里添加照片 模拟器里Photos最开始时是没有照片的,有时我们做Demo时需要Photos里面的照片做测试,这时就需要把Mac上的照片导入到模拟器里.步骤如下: 1,打开模拟器 2,选 ...

  10. 知方可补不足~SQL2005使用ROW_NUMBER() OVER()进行数据分页

    回到目录 数据分页是这个经常说的东西,无论在WEBForm还是WinForm中它都会被单独拿出来,或者是公用组件,或者是公用类库,反正对于数据分页这个东西,总是我们关注的一个话题,但事实上,数据分页归 ...