Makefile文件的编写
2016-08-23 15:11
274 查看
CC = arm-none-linux-gnueabi-gcc objects = statute.o common.o terminal.o serial.o lcd.o matrix.o dlt645.o pulse.o event.o gpio.o eeprom.o variate.o datastyle.o CFLAGS = -DEMBEDDED -Wall -O3 -I../include -I /home/jxs/sqlite_result/include -L/opt/arm-2008q3/arm-none-linux-gnueabi/libc/armv4t/lib -L /home/jxs/sqlite_result/lib rtu698 : $(objects) $(CC) $(CFLAGS) -o terminal $(objects) -lpthread -lsqlite3 -lm -lrt rm -f ../build/terminal ../build/*.o mv terminal *.o ../build/ rm -f /home/jxs/other/9260/terminal cp /home/jxs/Workspace/Terminal/build/terminal /home/jxs/other/9260/ clean : rm -f ../build/terminal ../build/*.o rm -f /home/jxs/other/9260/terminal
CC:交叉编译器名称
objects:需要链接的.obj文件名称
CFLAGS:添加的交叉编译器路径以及sqlit3的头文件路径和库文路径
rtu698:编译产生的文件名及其文件路径
clean:清除之前编译的相关文件
相关文章推荐
- VS.net下编写makefile文件--NMAKE用法
- Linux平台Makefile文件的编写基础篇
- Linux C/C++ 多目标文件的链接及其Makefile编写($<与$^)
- 2010.11.17--如何编写Makefile文件(一)
- Linux平台Makefile文件的编写基础篇
- Linux平台Makefile文件的编写基础篇
- source文件和makefile文件编写
- make 的 makefile 文件编写
- 编写Makefile文件(转)
- Linux平台Makefile文件的编写基础篇
- Makefile文件的编写
- 编写Makefile文件
- 第10章 多模块编译链接 Makefile文件的编写
- 【转贴】Linux平台Makefile文件的编写基础
- Linux平台Makefile文件的编写基础篇
- Makefile文件编写简介
- 编写简单的Makefile文件
- makefile和source文件的编写
- 简单的Makefile文件编写
- Fortran makefile 文件编写实例