home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / programs / kc9_src.arj / MAKEFILE < prev    next >
Encoding:
Text File  |  1991-10-07  |  4.2 KB  |  97 lines

  1. #   Killer Cracker v9.11 LTD - Un*x Password Cracker - By Doctor Dissector
  2. # =========================================================================
  3. #     Filename: Makefile  -  Last update: 10/07/91  -  Copyright (c) 1991
  4. # =========================================================================
  5. #   *** LIMITED EDITION !!!!! DO NOT DISTRIBUTE !!!!! LIMITED EDITION ***
  6.  
  7. # MAKE OPTIONS:
  8. #
  9. #   make all        Makes Killer Cracker (kc) and Password Preprocesser (pwp)
  10. #   make kc         Makes Killer Cracker
  11. #   make pwp        Makes Password Preprocesser
  12. #   make b_order    Makes b_order, determines byte-order of your compiler
  13. #   make int_size   Makes int_size, determines bit-size of your compiler's int
  14.  
  15. # IMPORTANT NOTES:
  16. #
  17. #   Byte Order          If your compiler generates non-network byte-order data
  18. #                       you MUST add the flag "-DNON_NETORDER=1" into the
  19. #                       KC_CFLAGS option of this Makefile.  Failure to do so
  20. #                       will result in the improper encryption of each guessed
  21. #                       word.  To determine whether or not your compiler
  22. #                       generates non-network byte-order data, compile and
  23. #                       execute the included program, "b_order.c".
  24. #
  25. #   32 Bit Integers     If your compiler generates 32 bit (or larger) integers
  26. #                       (NORMAL, not long integers), adding the flag
  27. #                       "-DINT_32BIT=1" into the KC_CFLAGS option of this
  28. #                       Makefile should increase the performance of the bcrypt
  29. #                       encryption routines.  To determine the bit-size of
  30. #                       your compiler's default integers, compile and execute
  31. #                       the included program, "int_size.c".
  32. #
  33. #   MS/PC-DOS           Turbo/Borland C/C++ and Microsoft C users MUST compile
  34. #                       Killer Cracker and its associated encryption routines
  35. #                       (not Password Preprocesser) under the COMPACT memory
  36. #                       model (or larger memory model, ie: large, huge).  This
  37. #                       is necessary for the farmalloc/_fmalloc functions to
  38. #                       allocate memory beyond 64k properly.
  39.  
  40. # SYSTYPE: System type declarations:
  41. #
  42. #   TURBO       Turbo C, Turbo C++, Borland C++ and compatible compilers
  43. #   MICROSOFT   Microsoft C compilers
  44. #   DOS32BIT    32 Bit MS/PC-DOS compiles, GCC/G++/NDP/etc...
  45. #   SYSV        System V Un*x AND OTHER non-BSD Un*xes
  46. #   BSD         BSD Un*x v4.x, Ultrix, Apollo, Mach, and MOST BSD clones
  47. #   STRIPPED    If no other system declaration works, try this
  48. #
  49. SYSTYPE   = DOS32BIT
  50.  
  51. # OSTYPE: Operating system type declarations:
  52. #
  53. #   MSDOS       MS/PC-DOS implementation
  54. #   UNIX        Any Un*x implementation
  55. #
  56. OSTYPE    = MSDOS
  57.  
  58. # Compiler options:
  59. #
  60. #   CC          Compiler executable name
  61. #   PWP_CFLAGS  Compiler flags for Password Preprocesser
  62. #   MANDATORY   Mandatory compiler flags for Killer Cracker (DO NOT CHANGE)
  63. #   KC_CFLAGS   Compiler flags for Killer Cracker
  64. #
  65. CC          = gcc
  66. PWP_CFLAGS  = -O -o pwp
  67. MANDATORY   = -D_$(SYSTYPE)=1 -D_$(OSTYPE)=1
  68. KC_CFLAGS   = $(MANDATORY) -DNON_NETORDER=1 -DINT_32BIT=1 -O -o kc
  69.  
  70. # *remember* if your compiler is NON-NETWORK BYTE ORDER be sure to add the
  71. # flag below into your own compiler flags for Killer Cracker to run properly
  72. #KC_CFLAGS  = $(MANDATORY) -DNON_NETORDER=1 -O -o kc
  73.  
  74. # *idea* if your compiler has default 32 bit integers, try adding
  75. # flag below into your own compiler flags for Killer Cracker
  76. #KC_CFLAGS  = $(MANDATORY) -DINT_32BIT=1 -O -o kc
  77.  
  78. # *commented* version of the flags used for Turbo/Borland C/C++
  79. #PWP_CFLAGS = $(MANDATORY) -O -Z -G -N -ms -d -Ic:\tc\include -Lc:\tc\lib -DNON_NETORDER=1
  80. #KC_CFLAGS  = $(MANDATORY) -O -Z -G -N -mc -d -Ic:\tc\include -Lc:\tc\lib -DNON_NETORDER=1
  81.  
  82. # Actually compile the program
  83. #
  84. all:        pwp kc
  85.  
  86. kc:         kc.h kc.c bcrypt.h bcrypt.c
  87.         $(CC) $(KC_CFLAGS) kc.c
  88.  
  89. pwp:        pwp.h pwp.c
  90.         $(CC) $(PWP_CFLAGS) pwp.c
  91.  
  92. b_order:    b_order.c
  93.         $(CC) b_order.c
  94.  
  95. int_size:   int_size.c
  96.         $(CC) int_size.c
  97.