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 / gina / makefile < prev    next >
Makefile  |  1997-10-13  |  965b  |  42 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <win32.mak>
  4.  
  5. all: gina.dll
  6.  
  7. # Define the compiler flags conditional on NODEBUG
  8. !IFDEF NODEBUG
  9. ginaflags= $(cflags) -DUNICODE -D_UNICODE
  10. !ELSE
  11. ginaflags= $(cflags) -DUNICODE -D_UNICODE -DDBG
  12. !ENDIF
  13.  
  14.  
  15. # Update the resource if necessary
  16. gina.res: res.rc
  17.   rc -r -fo gina.res res.rc
  18.  
  19.  
  20. # Inference rule for updating the object files
  21. .c.obj:
  22.   $(cc) $(cdebug) $(cvarsdll) $(ginaflags) -I. $*.c
  23.  
  24.  
  25. # Update the DLL
  26. gina.DLL:              \
  27.           gina.obj     \
  28.           debug.obj    \
  29.       welcome.obj    \
  30.           shutdown.obj \
  31.           options.obj  \
  32.           logon.obj    \
  33.           util.obj     \
  34.           gina.res
  35.   $(link) $(dlllflags)             \
  36.       -ignore:4078             \
  37.           -subsystem:native,4.0      \
  38.           -def:gina.def              \
  39.           -out:$*.dll                \
  40.           $**                        \
  41.           $(guilibsdll) comctl32.lib
  42.