my makefile for CPP v2.0
来源:互联网 发布:知彼网络 编辑:程序博客网 时间:2024/05/22 00:54
this is my second makefile for my Cpp project!
It's designed for multi folders!
It's direction:
warrior@warrior-ThinkPad:~/CreazyCode/CPPproject/Mdemo$ tree
.
├── inc
│ ├── demo.h
│ └── main.h
├── log
│ └── info.log
├── makefile
├── obj
├── src
│ ├── demo.cc
│ ├── main.cc
│ └── out.cc
└── tags
The makefile content:
It's designed for multi folders!
It's direction:
warrior@warrior-ThinkPad:~/CreazyCode/CPPproject/Mdemo$ tree
.
├── inc
│ ├── demo.h
│ └── main.h
├── log
│ └── info.log
├── makefile
├── obj
├── src
│ ├── demo.cc
│ ├── main.cc
│ └── out.cc
└── tags
The makefile content:
点击(此处)折叠或打开
- #makefile demo V2.0
- #author: warrior
- #mail:675979646@qq.com
- #date:2015/5/8
- CXX := g++
- CFLAGS := -c -g -W -Wall
- SRCDIR := ./src
- INCDIR := -I./inc -I.
- OBJDIR := ./obj
- SOURCES := $(shell ls $(SRCDIR)/*.cc)
- OBJS := $(patsubst %.cc,%.o,$(SOURCES))
- TARGET := target
- ${TARGET} : ${OBJS}
- ${CXX} -o $@ $^
- %.o : %.cc
- $(CXX) ${CFLAGS} -o $@ $< $(INCDIR)
- .PHONY : clean
- clean :
- -rm -f $(SRCDIR)/*.o target
0
上一篇:搜索引擎之网络爬虫
下一篇:JAVA 中 extends 与 implements 的前世今生
相关热门文章
- openstack的liberty版本
- oracle rac 11.2.0.4 opatch a...
- oracle rac 11.2.0.3.5 opatch...
- 11.2.0.4 psu到 11.2.0.4.4 au...
- 一个由网络闪断导致的CICS交易...
- test123
- 编写安全代码——小心有符号数...
- 使用openssl api进行加密解密...
- 一段自己打印自己的c程序...
- sql relay的c++接口
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- my makefile for CPP v2.0
- build makefile for my coding!!
- makefile通用文件v2.0
- my makefile
- Makefile之学习总结(3)--- Makefile (v2.0)
- My first limits.cpp
- My First Cpp Programming
- makefile小记v2
- My first Makefile
- My first makefile
- my first makefile
- Kinect for Windows V2.0 新特性
- 编译出现警告Makefile.Release:122: 警告:overriding commands for target `temp/moc/moc_frmcalibrationtool.cpp'
- makefile编译所有cpp文件
- 使用Makefile编译main.cpp
- eclipse for cpp
- Something for my ISTA
- For My First Posting
- define function pointer
- notes of C++
- My start of git
- 对搜索引擎的初了解发展及核心框架
- 搜索引擎之网络爬虫
- my makefile for CPP v2.0
- 常见ddl无刷联动效果
- JAVA 中 extends 与 implements 的前世今生
- QT学习之路
- MySQL的简单count查询(无where子句)
- QT中 QT_BEGIN_NAMESPACE、QT_END_NAMESPACE的应用介绍!!
- Qt标准对话框之QMessageBox
- RelativeLayout与LinearLayout的比较
- android studio logcat异常调试信息解析错误方法
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
公路电话
高速公路网
公路车
公路之歌
青藏公路
公路骑手
新藏公路
公路图片
姜眉公路
苏虞张公路
中国高速公路
环广西公路自行车世界巡回赛
高速公路收费标准
京珠高速公路
高速公路服务区
高速公路免费时间
高速公路电话
高速公路收费
广西高速公路
江苏省高速公路
高速公路限速
郭亮挂壁公路
独库公路开放时间
十一高速公路收费吗
独库公路自驾游攻略
挂壁公路旅游
公路之歌吉他谱
秦岭终南山公路隧道
长深高速公路
沿黄公路自驾攻略
公路监理工程师
高速公路尿尿被拍全球眼
高速公路匝道
高速公路免费
国庆高速公路免费
鄱阳湖水上公路
公路交通标志
二广高速公路
中国高速公路网
河北省高速公路管理局
高速公路收费用标准