home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / security / winnt / httpauth / makefile < prev    next >
Makefile  |  1997-10-15  |  2KB  |  64 lines

  1. # ============================================================================
  2. # File: M A K E F I L E
  3. # NMAKE description file for the HTTPAUTH sample
  4. #
  5. # Copyright 1996-1997 Microsoft Corporation.  All Rights Reserved.
  6. # ============================================================================
  7. #
  8. # Usage:    NMAKE DEBUG=1   (build DEBUG exe)
  9. #           NMAKE NODEBUG=1 (build RELEASE exe)
  10. #
  11. # ============================================================================
  12.  
  13.  
  14. !include <ntwin32.mak>
  15.  
  16. !if "$(CPU)" == "i386"
  17. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  18. !else
  19. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  20. !endif
  21.  
  22. APP       = HTTPAUTH
  23.  
  24. CPP          = $(cc)
  25. CPPFLAGS     = $(cflags) $(cvars) $(cdebug) -I..\include
  26. LINKFLAGS    = $(linkdebug) $(conflags) /subsystem:console 
  27. APP_OBJS     = httpget.obj httpauth.obj get_sock.obj
  28.  
  29. # ----------------------------------------------------------------------------
  30. #                          O V E R A L L    G O A L
  31. # ----------------------------------------------------------------------------
  32.             
  33. goal: $(APP).exe
  34.  
  35.  
  36.                      
  37. # ----------------------------------------------------------------------------
  38. #                      L I N K / R E S   C O M M A N D S
  39. # ----------------------------------------------------------------------------
  40.  
  41. $(APP).exe: $(APP_OBJS)
  42.     @echo Linking ...
  43.      $(link) $(LINKFLAGS) $(APP_OBJS) $(conlibs) -out:$@
  44.  
  45. # ----------------------------------------------------------------------------
  46. #                           B U I L D   R U L E S
  47. # ----------------------------------------------------------------------------
  48.  
  49. {$(SRC_DIR)}.c{}.obj:
  50.     @echo Compiling $<...
  51.     $(CPP) $(CPPFLAGS) /c $<
  52.  
  53.  
  54. # ----------------------------------------------------------------------------
  55. #                       D E P E N D E N C Y   R U L E S
  56. # ----------------------------------------------------------------------------
  57.  
  58. httpget.obj: httpget.c proto.h
  59.  
  60. get_sock.obj: get_sock.c proto.h httpauth.h
  61.  
  62. httpauth.obj: httpauth.c httpauth.h
  63.