home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Texty / crackme / MAKEFILE < prev    next >
Encoding:
Text File  |  1999-03-04  |  1.3 KB  |  53 lines

  1. #W32DEMO Win32 demo application.
  2. #TASM32.EXE, TLINK32.EXE, BRC32.EXE, MAKE.EXE
  3. #are from TASM v5.0. Make sure the path points to them.
  4. #Path only needs to point to \bin subdirectory, TLINK32 finds
  5. #IMPORT32.LIB in the \lib subdirectory ok.
  6.  
  7. #You should be in a DOS box, by executing the PIF file B32TOOLS.PIF
  8. #(make a shortcut on your desktop).
  9.  
  10. #TLINK32 switches: /Tpa = build 32-bit EXE, /aa = target Windows 32-bit
  11. #application, /v = include debug info.
  12. #TASM32 switches: /Zi = include debug info.
  13. #the last parameter is the resource file to be bound to the executable.
  14. #the 2nd last param. is the definition file.
  15.  
  16. #    make -B         Will build .EXE
  17. #    make -B -DDEBUG     Will build the debug version.
  18.  
  19. NAME = key
  20. OBJS = $(NAME).obj
  21. DEF  = $(NAME).def
  22.  
  23. !if $d(DEBUG)
  24. TASMDEBUG=/zi
  25. LINKDEBUG=/v
  26. !else
  27. TASMDEBUG=
  28. LINKDEBUG=
  29. !endif
  30.  
  31. !if $d(MAKEDIR)
  32. IMPORT=$(MAKEDIR)\..\lib\import32
  33. !else
  34. IMPORT=import32
  35. !endif
  36.  
  37.  
  38. $(NAME).EXE: $(OBJS) $(DEF)
  39.   tlink32 /Tpe /aa /c $(LINKDEBUG) $(OBJS),$(NAME),, $(IMPORT), $(DEF), $(NAME)
  40.  
  41. .asm.obj:
  42.    tasm32 $(TASMDEBUG) /ml $&.asm
  43.    brc32 -r $(NAME).rc
  44.  
  45. clean:
  46.         del *.obj
  47.         del *.exe
  48.         del *.map
  49.         del *.res
  50.         del *.zip
  51. pack:
  52.         pkzip -a hf2key.zip key.asm makefile hell.nfo key.exe w32.inc key.def key.txt key.rc
  53.