博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
makefile编写例程
阅读量:4286 次
发布时间:2019-05-27

本文共 696 字,大约阅读时间需要 2 分钟。

OBJS := start.o main.o dev/dev.o lib/lib.o net/net.oCFLAGS := -fno-builtin -I$(shell pwd)/includeexport CFLAGSgboot.bin : gboot.elf    arm-linux-objcopy -O binary gboot.elf gboot.bingboot.elf : $(OBJS)        arm-linux-ld -Tgboot.lds -o gboot.elf $^%.o : %.S    arm-linux-gcc -g -c $^%.o : %.c    arm-linux-gcc $(CFLAGS) -c $^lib/lib.o :     make -C lib alldev/dev.o :    make -C dev allnet/net.o :    make -C net all.PHONY: cleanclean:    make -C lib clean    make -C dev clean    make -C net clean    rm -f *.o *.elf *.bin *.bak

在C语言标准中,有些通用函数被定义为built-in function(内建函数),像printf,strchr,memset等等,这些函数不需要包含头文件中的声明,就可以编译连接该函数的。但有时候你想自己实现,就会出现冲突的提示。解决办法:在编译时加上-fno-builtin或者-fno-builtin-FUNCTION 选项

转载地址:http://eeigi.baihongyu.com/

你可能感兴趣的文章
Python格式化输出
查看>>
python numpy.shape 和 numpy.reshape函数
查看>>
matplotlib绘图实例:pyplot、pylab模块及作图参数
查看>>
BeautifulSoup4 UserWarning
查看>>
python group()
查看>>
Python中re(正则表达式)模块学习
查看>>
Python中用format函数格式化字符串的用法
查看>>
详解Python中的join()函数的用法
查看>>
python List与String 转化问题
查看>>
Python 读取csv的某列
查看>>
Python 模块学习:os模块
查看>>
Python collections模块实例讲解
查看>>
python项目内import其他内部package的模块的正确方法
查看>>
Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
查看>>
pl/sql与oracle 连接问题
查看>>
ORA-12560: TNS: 协议适配器错误的解决方法
查看>>
shapley值法初学入门详细介绍
查看>>
聚类系数(clustering coefficient)计算
查看>>
看看大牛们是怎样获得英文综述(reviews)的?(干细胞论坛)
查看>>
拉普拉斯平滑处理 Laplace Smoothing
查看>>