MAKEFILE
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- TARGETOS=BOTH
- !include <win32.MAK>
- proj = ping
- mylibs = ..testlibtestlib.lib
- all: $(proj).exe
- # Update the object files if necessary
- $(proj).obj: $(proj).c ..testlibtestlib.lib
- $(cc) $(cflags) $(cvarsmt) $(cdebug) $(proj).c
- # Create library if necessary.
- ..testlibtestlib.lib :
- cd ..testlib
- $(MAKE) /A
- cd ..ping
- # Since the link line has some severe differences depending on what
- # platform we are running on, we need to special case this so that
- # we execute the correct commands:
- $(proj).exe: $(proj).obj
- $(link) $(linkdebug) $(conlflags) $(proj).obj $(conlibs) $(mylibs) -out:$(proj).exe
- # Clean up everything
- clean :
- -del *.exe
- -del *.obj