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 / nwlink / dgrecv / makefile < prev   
Makefile  |  1996-07-04  |  716b  |  31 lines

  1. TARGETOS=BOTH
  2. !include <win32.MAK>
  3.  
  4. proj = dgrecv
  5. mylibs = ..\testlib\testlib.lib
  6.  
  7. all: $(proj).exe
  8.  
  9. # Update the object files if necessary
  10. $(proj).obj: $(proj).c ..\testlib\testlib.lib
  11.     $(cc) $(cflags) $(cvarsmt) $(cdebug) $(proj).c
  12.  
  13. # Create library if necessary.
  14. ..\testlib\testlib.lib :
  15.   cd ..\testlib
  16.   $(MAKE) /A
  17.   cd ..\dgrecv
  18.  
  19. # Since the link line has some severe differences depending on what
  20. # platform we are running on, we need to special case this so that
  21. # we execute the correct commands:
  22.  
  23. $(proj).exe: $(proj).obj
  24.     $(link) $(linkdebug) $(conlflags) $(proj).obj  $(conlibs) $(mylibs) -out:$(proj).exe
  25.  
  26.  
  27. # Clean up everything
  28. clean :
  29.     -del *.exe
  30.     -del *.obj
  31.