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