MAKEFILE
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- !include <win32.mak>
- CPP = $(cc)
- CPPFLAGS = $(cflags) $(cvars) $(cdebug)
- LINKFLAGS = $(linkdebug) $(conflags) /subsystem:console
- all: server.exe client.exe
- # ----------------------------------------------------------------------------
- # L I N K / R E S C O M M A N D S
- # ----------------------------------------------------------------------------
- server.exe: server.obj comm.obj security.obj collect.obj
- @echo Linking ...
- $(link) $(LINKFLAGS) $** $(conlibs) wsock32.lib -out:$@
- client.exe: client.obj comm.obj security.obj collect.obj
- @echo Linking ...
- $(link) $(LINKFLAGS) $** $(conlibs) -out:$@
- # ----------------------------------------------------------------------------
- # B U I L D R U L E S
- # ----------------------------------------------------------------------------
- .c.obj:
- @echo Compiling $<...
- $(CPP) $(CPPFLAGS) /c -I..include $<
- # ----------------------------------------------------------------------------
- # D E P E N D E N C Y R U L E S
- # ----------------------------------------------------------------------------
- comm.obj : comm.c comm.h
- security.obj : security.c security.h collect.h
- server.obj : server.c security.h comm.h
- client.obj : client.c security.h comm.h
- collect.obj : collect.c collect.h