!IF 0
******************************************************************************
W k D k S a m p l e s                         WIBU-KEY Development-Kit Samples
==============================================================================
GackCont/makefile           Build WIBU-KEY Windows example using MS Visual C++
==============================================================================

To build the release example for Win32 enter:
  nmake

To build the debugging variant, add DEBUG=1, for example:
  nmake DEBUG=1

To delete all built files except the target files (EXE, DLL etc), enter:
  nmake clean

==============================================================================

Copyright  2001 by WIBU-SYSTEMS AG
           Rueppurrer Strasse 52-54, D-76137 Karlsruhe, Germany/Europe
           Website: http://www.wibu.com, Email: support@wibu.com
           Phone: +49-721-93172-0, Fax: +49-721-93172-22
           All rights reserved.

Version .. 3.01 of 2001Mar18
Project .. wibu/wk/dev/samples
Author ... Marcellus Buchheit (mabu)
System ... Windows 95/98/Me, Windows NT 4.0-5.0
Tools .... Microsoft NMAKE 6.00

******************************************************************************
!ENDIF

# WIBU-KEY specific definitions
FirmCode = 10
UserCode = 13

all: WkDmHC.exe

WkDmHC.obj: $*.cpp resource.h
# Compiler options 32 bit Windows
# /c         = compile only, do not link
# /G3        = optimize for 80386
# /Gf        = enable string pooling
# /Gy        = separate functions for linker
# /nologo    = supress copyright message
# /Od        = disable optimizing
# /O2        = maximize speed
# /Oa        = assume cross function aliasing
# /W3        = warning level 3
# /WX        = treat warnings as errors
# /YX        = automatic precompiled headers
# /Zi        = prepare for debugging
!IFDEF DEBUG
  cl /c /G3 /Gf /Gy /nologo /Od /W3 /WX /YX /Zi $*.cpp
!ELSE
  cl /c /G3 /Gf /Gy /nologo /O2a /W3 $*.cpp
!ENDIF


WkDmHC.res: WkDmHC.rc WkDmHC.ico resource.h
  rc /r WkDmHC.rc

# Linker options 32 bit Windows
# user32.lib         = Window NT library
# /Incremental:no    = required for proper AXAN function code encryption
# /Out:WkDmHC.exe    = output file name
# /Debug             = for debugging
# /DebugType:CV      = for debugging

WkDmHC.exe: WkDmHC.obj WkDmHC.res
!IFDEF DEBUG
 link WkDmHC.obj WkDmHC.res user32.lib /incremental:no /Out:WkDmHC.exe \
   /Debug /DebugType:CV /Map
!ELSE
 link WkDmHC.obj WkDmHC.res user32.lib /incremental:no /Out:WkDmHC.exe /Map
!ENDIF

!IFDEF NOCRYPT
# set FirmCode/UserCode 10/13 only, program remains unencrypted
  wkcrypt /F$(FirmCode) /U$(UserCode) /CX /V WkDmHC.exe
!ELSE
# set FirmCode/UserCode 10/13 and activate AXAN encryption
  wkcrypt /F$(FirmCode) /U$(UserCode) /CX /CH:wkbaxhMain /V WkDmHC.exe
!ENDIF

clean:
  -erase *.pch
  -erase *.map
  -erase *.obj
  -erase *.res
  -erase *.bak
  -erase *.err
  -erase *.pdb
  -erase *.ilk
  -erase *.bsc
  -erase *.sbr
  -erase *.vcw
  -erase *.wsp
  -erase *.vcp


# =============================================
# wibu/wk/dev/samples: end of HackCont/makefile
# =============================================

