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. # =========================================================================
  4.  
  5. #     Filename: Makefile  -  Last update: 10/07/91  -  Copyright (c) 1991
  6.  
  7. # =========================================================================
  8.  
  9. #   *** LIMITED EDITION !!!!! DO NOT DISTRIBUTE !!!!! LIMITED EDITION ***
  10.  
  11.  
  12.  
  13. # MAKE OPTIONS:
  14.  
  15. #
  16.  
  17. #   make all        Makes Killer Cracker (kc) and Password Preprocesser (pwp)
  18.  
  19. #   make kc         Makes Killer Cracker
  20.  
  21. #   make pwp        Makes Password Preprocesser
  22.  
  23. #   make b_order    Makes b_order, determines byte-order of your compiler
  24.  
  25. #   make int_size   Makes int_size, determines bit-size of your compiler's int
  26.  
  27.  
  28.  
  29. # IMPORTANT NOTES:
  30.  
  31. #
  32.  
  33. #   Byte Order          If your compiler generates non-network byte-order data
  34.  
  35. #                       you MUST add the flag "-DNON_NETORDER=1" into the
  36.  
  37. #                       KC_CFLAGS option of this Makefile.  Failure to do so
  38.  
  39. #                       will result in the improper encryption of each guessed
  40.  
  41. #                       word.  To determine whether or not your compiler
  42.  
  43. #                       generates non-network byte-order data, compile and
  44.  
  45. #                       execute the included program, "b_order.c".
  46.  
  47. #
  48.  
  49. #   32 Bit Integers     If your compiler generates 32 bit (or larger) integers
  50.  
  51. #                       (NORMAL, not long integers), adding the flag
  52.  
  53. #                       "-DINT_32BIT=1" into the KC_CFLAGS option of this
  54.  
  55. #                       Makefile should increase the performance of the bcrypt
  56.  
  57. #                       encryption routines.  To determine the bit-size of
  58.  
  59. #                       your compiler's default integers, compile and execute
  60.  
  61. #                       the included program, "int_size.c".
  62.  
  63. #
  64.  
  65. #   MS/PC-DOS           Turbo/Borland C/C++ and Microsoft C users MUST compile
  66.  
  67. #                       Killer Cracker and its associated encryption routines
  68.  
  69. #                       (not Password Preprocesser) under the COMPACT memory
  70.  
  71. #                       model (or larger memory model, ie: large, huge).  This
  72.  
  73. #                       is necessary for the farmalloc/_fmalloc functions to
  74.  
  75. #                       allocate memory beyond 64k properly.
  76.  
  77.  
  78.  
  79. # SYSTYPE: System type declarations:
  80.  
  81. #
  82.  
  83. #   TURBO       Turbo C, Turbo C++, Borland C++ and compatible compilers
  84.  
  85. #   MICROSOFT   Microsoft C compilers
  86.  
  87. #   DOS32BIT    32 Bit MS/PC-DOS compiles, GCC/G++/NDP/etc...
  88.  
  89. #   SYSV        System V Un*x AND OTHER non-BSD Un*xes
  90.  
  91. #   BSD         BSD Un*x v4.x, Ultrix, Apollo, Mach, and MOST BSD clones
  92.  
  93. #   STRIPPED    If no other system declaration works, try this
  94.  
  95. #
  96.  
  97. SYSTYPE   = DOS32BIT
  98.  
  99.  
  100.  
  101. # OSTYPE: Operating system type declarations:
  102.  
  103. #
  104.  
  105. #   MSDOS       MS/PC-DOS implementation
  106.  
  107. #   UNIX        Any Un*x implementation
  108.  
  109. #
  110.  
  111. OSTYPE    = MSDOS
  112.  
  113.  
  114.  
  115. # Compiler options:
  116.  
  117. #
  118.  
  119. #   CC          Compiler executable name
  120.  
  121. #   PWP_CFLAGS  Compiler flags for Password Preprocesser
  122.  
  123. #   MANDATORY   Mandatory compiler flags for Killer Cracker (DO NOT CHANGE)
  124.  
  125. #   KC_CFLAGS   Compiler flags for Killer Cracker
  126.  
  127. #
  128.  
  129. CC          = gcc
  130.  
  131. PWP_CFLAGS  = -O -o pwp
  132.  
  133. MANDATORY   = -D_$(SYSTYPE)=1 -D_$(OSTYPE)=1
  134.  
  135. KC_CFLAGS   = $(MANDATORY) -DNON_NETORDER=1 -DINT_32BIT=1 -O -o kc
  136.  
  137.  
  138.  
  139. # *remember* if your compiler is NON-NETWORK BYTE ORDER be sure to add the
  140.  
  141. # flag below into your own compiler flags for Killer Cracker to run properly
  142.  
  143. #KC_CFLAGS  = $(MANDATORY) -DNON_NETORDER=1 -O -o kc
  144.  
  145.  
  146.  
  147. # *idea* if your compiler has default 32 bit integers, try adding
  148.  
  149. # flag below into your own compiler flags for Killer Cracker
  150.  
  151. #KC_CFLAGS  = $(MANDATORY) -DINT_32BIT=1 -O -o kc
  152.  
  153.  
  154.  
  155. # *commented* version of the flags used for Turbo/Borland C/C++
  156.  
  157. #PWP_CFLAGS = $(MANDATORY) -O -Z -G -N -ms -d -Ic:\tc\include -Lc:\tc\lib -DNON_NETORDER=1
  158.  
  159. #KC_CFLAGS  = $(MANDATORY) -O -Z -G -N -mc -d -Ic:\tc\include -Lc:\tc\lib -DNON_NETORDER=1
  160.  
  161.  
  162.  
  163. # Actually compile the program
  164.  
  165. #
  166.  
  167. all:        pwp kc
  168.  
  169.  
  170.  
  171. kc:         kc.h kc.c bcrypt.h bcrypt.c
  172.  
  173.         $(CC) $(KC_CFLAGS) kc.c
  174.  
  175.  
  176.  
  177. pwp:        pwp.h pwp.c
  178.  
  179.         $(CC) $(PWP_CFLAGS) pwp.c
  180.  
  181.  
  182.  
  183. b_order:    b_order.c
  184.  
  185.         $(CC) b_order.c
  186.  
  187.  
  188.  
  189. int_size:   int_size.c
  190.  
  191.         $(CC) int_size.c
  192.  
  193.