home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / globchat / server / makefile < prev    next >
Encoding:
Makefile  |  1996-07-05  |  1.3 KB  |  47 lines

  1. !include <win32.MAK>
  2.  
  3. proj = globchat
  4. mylibs = version.lib
  5.  
  6. all: $(proj).exe
  7.  
  8. # Update the resource if necessary
  9. $(proj).res: $(proj).rc globals.h
  10.     rc -r -fo $(proj).res $(rcvars) $(cvars) $(proj).rc
  11.  
  12.  
  13. # Update the object files if necessary
  14. $(proj).obj: $(proj).c globals.h
  15.     $(cc) $(cflags) $(cvarsmt) $(cdebug) $(proj).c
  16.  
  17. about.obj: about.c globals.h
  18.     $(cc) $(cflags) $(cvarsmt) $(cdebug) about.c
  19.  
  20. dispatch.obj: dispatch.c globals.h
  21.     $(cc) $(cflags) $(cvarsmt) $(cdebug) dispatch.c
  22.  
  23. init.obj: init.c globals.h
  24.     $(cc) $(cflags) $(cvarsmt) $(cdebug) init.c
  25.  
  26. misc.obj: misc.c globals.h
  27.     $(cc) $(cflags) $(cvarsmt) $(cdebug) misc.c
  28.  
  29. winmain.obj: winmain.c globals.h
  30.     $(cc) $(cflags) $(cvarsmt) $(cdebug) winmain.c
  31.  
  32. # Since the link line has some severe differences depending on what
  33. # platform we are running on, we need to special case this so that
  34. # we execute the correct commands:
  35.  
  36. $(proj).exe: $(proj).obj about.obj dispatch.obj init.obj misc.obj winmain.obj $(proj).res
  37.     $(link) $(linkdebug) $(guiflags) $(proj).obj about.obj dispatch.obj init.obj misc.obj winmain.obj $(guilibsmt) $(mylibs) $(proj).res -out:$(proj).exe
  38.  
  39.  
  40. # Clean up everything
  41. clean :
  42.     -del *.res
  43.     -del *.res
  44.     -del *.exe
  45.     -del *.obj
  46. 
  47.