build makefile for my coding!!
来源:互联网 发布:知彼网络 编辑:程序博客网 时间:2024/05/23 12:58
I learn how to build makefile from below:
http://www.chinaunix.net/old_jh/23/408225.html
http://blog.chinaunix.net/uid-23089249-id-2855999.html
This is my first makefile demo!!It's so simple and crube, but i will make if better gradually!!
It's direction:
warrior@warrior:~/CreazyCode/Cproject/test$ ls
demo.c demo.h main.c main.h makefile
And it's content:
#makefile demo V1.0
#author: warrior
#mail:675979646@qq.com
#date:2015/3/21
CC := gcc
CFLAGS := -c -g -W -Wall
DIR := ./
SOURCES := $(shell ls *.c)
OBJS := $(patsubst %.c,%.o,$(SOURCES))
TARGET := target
${TARGET} : ${OBJS}
${CC} ${CFLAGS} -o $@ $^
%.o : %.c
$(CC) ${CFLAGS} -o $@ $<
.PHONY : clean
clean :
-rm -f *.o target
http://www.chinaunix.net/old_jh/23/408225.html
http://blog.chinaunix.net/uid-23089249-id-2855999.html
This is my first makefile demo!!It's so simple and crube, but i will make if better gradually!!
It's direction:
warrior@warrior:~/CreazyCode/Cproject/test$ ls
demo.c demo.h main.c main.h makefile
#makefile demo V1.0
#author: warrior
#mail:675979646@qq.com
#date:2015/3/21
CC := gcc
CFLAGS := -c -g -W -Wall
DIR := ./
SOURCES := $(shell ls *.c)
OBJS := $(patsubst %.c,%.o,$(SOURCES))
TARGET := target
${TARGET} : ${OBJS}
${CC} ${CFLAGS} -o $@ $^
%.o : %.c
$(CC) ${CFLAGS} -o $@ $<
.PHONY : clean
clean :
-rm -f *.o target
0
上一篇:没有了
下一篇:My understand of "iptables"
相关热门文章
- linux 常见服务端口
- xmanager 2.0 for linux配置
- 【ROOTFS搭建】busybox的httpd...
- openwrt中luci学习笔记
- 什么是shell
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- build makefile for my coding!!
- my makefile for CPP v2.0
- Makefile for out of source build
- my makefile
- My coding future
- My coding way (1)
- My coding way (2)
- My coding way (3)
- My coding way (4)
- My coding way (5)
- My coding way (6)
- My coding way (7)
- My coding way (8)
- My coding way (9)
- My coding way (10)
- My Java Coding Style
- Makefile.build
- huffmanTree build and huffman Coding
- [Andorid开发艺术探索 读书笔记]View的事件体系(二)
- NYoj18 The Triangle
- Centos7操作系统下修改yum源的方法
- apktool反编译详细使用教程
- hdu3377plan【哈密顿路径插头Dp】
- build makefile for my coding!!
- My understand of "iptables"
- shell 编程语法总结(I/O 逻辑控制结构)
- My understand of stack and queue
- My understand of KMP describe in C
- My first CXX problem:"aggregate has incomplete type and cannot be defined"
- define function pointer
- notes of C++
- My start of git
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
分选机图片
土豆分选机
鸡蛋分选机
螺旋分选机
制粉机
黄豆分选机
光电分选机
自动饺子皮机
粗煤泥分选机
煤矸石自动分选机
大米分选机
胶囊分选机
半自动装袋机
全自动滚圆机
全自动饺子皮机价格
女皇之刃梅露法那集ji
分配器
专业音频分配器
洗衣房分配器
hdmi分配器一分二
递进式分配器
hdmi一分二分配器
有线电视分配器接法图
翻转犁分配器
天线分配器
分配器图片
电视分配器
音频分配器一分二
分配律
乘法分配律题200道
乘法分配律和结合律
乘法结合律和分配律
乘法分配律计算题
除法有没有分配律
分配律和结合律
乘法律分配律
除法有分配律吗
乘法分配律公式
除法没有分配律
除法分配律公式
乘法分配律顺口溜