Makefile for out of source build
来源:互联网 发布:淘宝闺蜜网址 编辑:程序博客网 时间:2024/05/21 11:38
PROJECT=abc
MYLIB=
SYSLIB=
CFLAG=-g
CC=gcc
GCC=gcc
OBJDIR=./obj
SRCS=$(wildcard *.cpp)
OBJS=$(patsubst %.cpp,$(OBJDIR)/.o,$(SRCS))
$(PROJECT):$(OBJS)
$(GCC) -o $@ $^ $(CFLAG) $(SYSLIB) $(MYLIB)
$(OBJDIR)/%.o:%.cpp
$(GCC) -c -o $@ $<
clean:
rm -f $(OBJDIR)/*.o $(PROJECT)
MYLIB=
SYSLIB=
CFLAG=-g
CC=gcc
GCC=gcc
OBJDIR=./obj
SRCS=$(wildcard *.cpp)
OBJS=$(patsubst %.cpp,$(OBJDIR)/.o,$(SRCS))
$(PROJECT):$(OBJS)
$(GCC) -o $@ $^ $(CFLAG) $(SYSLIB) $(MYLIB)
$(OBJDIR)/%.o:%.cpp
$(GCC) -c -o $@ $<
clean:
rm -f $(OBJDIR)/*.o $(PROJECT)
0 0
- Makefile for out of source build
- CMake out-of-source build does not work?
- 养成喜欢进行外部编译(out-of-source build) 而不是in-source build
- eclipse build out of memory
- build makefile for my coding!!
- tensorflow build source shell __ for ubuntu
- tensorflow build source shell __ for centos
- Qt for IOS:build from source
- webbrowser is enabled only for out-of。。。。
- Out of range value adjusted for column
- IDL out of the for loop
- 解决eclipse总提示out of build path的问题
- android release build error: String index out of range: -125
- Caffe build for denoising of deep learning
- Build or Compile Linphone from Source for iPhone and iPad
- Makefile.build
- example of Makefile to compile a c source file
- MySQL5错误 #1264 "Out of range value adjusted for column ..."
- 关于 httpUrlConnection 的 setDoOutput 与 setDoInput
- setPartitionerClass, setOutputKeyComparatorClass and setOutputValueGroupingComparator
- 把程序源代码的文件编码统一为UTF8,行结束符使用\n,不要再用Windows下的记事本工具。
- 01背包
- 减少GC开销的5个编码技巧
- Makefile for out of source build
- C++11 Synchronization Benchmark
- linux驱动学习之内核线程分析
- java公开密钥(N,e)的生成算法
- 整理:国内主流云计算方案比较
- 适合创业型团队的云计算方案
- VPS添加SWAP
- CentOS base setup
- ubuntu配置源