linux自动编译的makefile
来源:互联网 发布:会员购淘宝u站 编辑:程序博客网 时间:2024/05/29 12:58
COMPILEER = g++
#COMPILEER = g++
#VER = release
VER = debug
#在这里写你的程序名称
ifeq ($(VER), debug)
OUTPUT = ./yourfilename
else
OUTPUT = ./yourfilename
endif
#头文件目录
INC = -I .\
#在这里写你的程序连接的库名称
NEED_LIB = -lpthread -lpq
#源文件目录
SRC_PATH = ./
#源文件集合
SRCS = $(wildcard $(SRC_PATH)*.cpp)
#define obj
OBJS_PATH = ./
#中间文件集合
OBJS := $(SRCS:%.cpp=%.o)
$(OBJS_PATH)/%.o : $(SRC_PATH)/%.cpp
$(COMPILEER) -c -g "$<" -o "$@" $(INC)
all:$(OBJS)
$(COMPILEER) -o $(OUTPUT) $(OBJS) $(NEED_LIB)
clean:
rm -f ./*.o ./yourfilename ./*.gch
1 0
- linux自动编译的makefile
- Linux Makefile自动编译和链接使用的环境
- Linux Makefile自动编译和链接使用的环境
- Linux Makefile自动编译和链接使用的环境
- Linux编译模块的Makefile
- linux模块编译的makefile
- Linux下的Makefile编译
- 多文件夹下的Makefile自动编译
- 关于Linux的makefile的自动生成,以及.configure及编译选项
- Linux中编写自动编译的makefile的方法,以及详细解析。
- linux下的Makefile的自动生成
- linux下的Makefile的自动生成
- Linux Makefile自动生成的运行步骤
- Linux Makefile自动生成的运行步骤
- Linux下Makefile的自动生成步骤
- linux 下的makefile自动生成
- Linux下Makefile的自动生成步骤
- Linux 编译内核模块的Makefile
- php5 mysqli 连数据库创建表
- AFHTTPRequestOperationManager简单使用
- OJ的runtime error exit code对应SIGTERM代码
- 简单常用的注解
- 类和对象
- linux自动编译的makefile
- RabbitMq应用在发送短信
- PHP cURL抓取华师学生个人课表
- Codeforces Round #325 (Div. 2) D. Phillip and Trains (BFS)
- C#的哈希
- 循环获取文件夹中子文件夹中的文件
- Leetcode101: Kth Smallest Element in a BST
- cas单点登录系统多个系统容易超时
- 适配