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 / client / makefile < prev    next >
Encoding:
Makefile  |  1996-07-05  |  1.5 KB  |  54 lines

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