[经验总结]结合Visual Studio 2005编写的Makefile

# 依赖cygwin包(http://zh.wikipedia.org/wiki/Cygwin)
# Makefile for Visual Studio 2005 project.
# Creator: thinkhy
# Date:    2009-12-29 星期二
# Makefile 文件和源代码放在一个目录里
 
VS = devenv.com
DEBUG = /build "Debug|Win32"
RELEASE = /build "Release|Win32"
PROJECT = CDMakeTool.sln
 
DE_PATH =debug
RE_PATH =release
 
all: de
 
de:
         cd ..&&$(VS) $(PROJECT) $(DEBUG)
 
re:
         cd ..&&$(VS) $(PROJECT) $(RELEASE)
 
clean:
         cd ..
         -rm $(DE_PATH)/CDMakeTool.exe
         -rm $(DE_PATH)/CDMakeTool.pdb

你可能感兴趣的:(Date,Path,makefile)