home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Tools / ProcDump 1.6.2 / BHRAMA / ASM / BMAKE next >
Encoding:
Text File  |  1999-02-11  |  1.1 KB  |  44 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 = client
  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=F:\TASM\lib\import32
  33. !else
  34. IMPORT=import32
  35. !endif
  36.  
  37.  
  38. $(NAME).EXE: $(OBJS) $(DEF)
  39.   tlink32 /Tpe /aa /c /x /A:9 /V4.0 $(LINKDEBUG) $(OBJS),$(NAME),, $(IMPORT), $(DEF), $(NAME)
  40.  
  41. .asm.obj:
  42.    tasm32 $(TASMDEBUG) /ml /i$(MAKEDIR)\..\include $&.asm
  43.    brc32 -r $(NAME).rc
  44.