摘要:
这个makefile可用于编译大多数的c++工程。你可以根据需要修改下面的参数:VPATH: 源文件的文件路径。多个文件夹路径用空格分隔OBJ: 编译目标所需要的.o文件当然,你也可以不改动此文件,而直接在 make 命令的参数中指定如:make VPATH="path1 path2" OBJ="main.o a.o b.o"CC=g++-gCOMPILE.C=$(CC)-cVPATH=../pubCXXFLAGS=-lgcc_sMAKEEXE=$(CC)$(LDFLAGS)OBJ=main.ob.oEXE=winnerall:$(EXE)$(EXE): 阅读全文
posted @ 2008-04-24 18:40
范晨鹏
阅读(6686)
评论(0)
推荐(0)
摘要:
ThevalueofthemakevariableVPATHspecifiesalistofdirectoriesthatmakeshouldsearch.Mostoften,thedirectoriesareexpectedtocontainprerequisitefilesthatarenotinthecurrentdirectory;however,makeusesVPATHasasearchlistforbothprerequisitesandtargetsofrules.--《GNU make》, Version 3.81 4.4.1 《VPATH: Search Path for 阅读全文
posted @ 2008-04-24 10:54
范晨鹏
阅读(2225)
评论(0)
推荐(0)
这是我的页面头部
浙公网安备 33010602011771号