首页 > 代码库 > Makefile for Boost Array Test
Makefile for Boost Array Test
1 INCLUDEPATH=-I/usr/include/c++/4.8.4 2 -I./ 3 -I/home/william/Project/boost_1_59_0 4 SOURCEDIR=./ 5 LIBRARYPATH:= 6 LIBRARY:= 7 SRCS=$(foreach dir,$(SOURCEDIR), $(wildcard $(dir)/*.cpp)) 8 TEMPOUTPUT:=$(foreach dir,$(SOURCEDIR), $(wildcard $(dir)/*.o)) 9 OBJECTS:=$(patsubst %.cpp,%.o,$(SRCS)) 10 TARGETS:=$(notdir $(PWD)) 11 12 .SUFFIXES:.o .cpp 13 %.o:%.cpp 14 $(CXX) $(INCLUDEPATH) -g -c -o $@ $< $(LIBRARYPATH) $(LIBRARY) 15 16 all:$(TARGETS) 17 18 $(TARGETS):$(OBJECTS) 19 $(CXX) $(INCLUDEPATH) -g -o $@ $^ $(LIBRARYPATH) $(LIBRARY) 20 21 run: 22 ./$(TARGETS) 23 24 clean: 25 rm -rf $(TARGETS) 26 rm -rf $(TEMPOUTPUT)
Makefile for Boost Array Test
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。