⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 linux 下 makefile范本 可以根据此添加编译文件
💻
字号:
#You can add source code file like the following
SOURCE += main.cpp   
SOURCE += robot.cpp
SOURCE += ActionGoto.cpp 
SOURCE += compass.cpp
SOURCE += uart.cpp

##You can add header code file like the following
HEADER += robot.h
HEADER += ActionGoto.h
HEADER += uart.h
HEADER += compass.h
#You can name the executable file like the following
TARGET = run

#You can add include path like the following
INCLUDEPATH += -I/usr/local/Aria/include

#You can library path like the following
LIBPATH += -L/usr/local/Aria/lib

#You can add library like the following
LIBS += -lpthread 
LIBS += -ldl 
LIBS += -lAria 
LIBS += -lArNetworking

#You cant add compile options like the following
OPTION += -Wall  
OPTION += -g
OPTION += -pthread

#You can specify the compiler
CC=gcc

#Don't modify the following code unless you know howto exactly
OBJECTS =$(SOURCE:%.c=%.o)

$(TARGET):$(OBJECTS)
	$(CC) $(OPTION) $(INCLUDEPATH) $(LIBPATH) $(LIBS) -o $(TARGET) $(OBJECTS)
clean:
	-rm -f $(TARGET) *.o *~

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -