home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / crackunx.txt / Sources / Makefile < prev    next >
Encoding:
Makefile  |  1992-06-25  |  1.9 KB  |  82 lines

  1. ###
  2. # Revised Makefile for Crack v4.1 - AEM, Feb 14 1992
  3. ###
  4.  
  5. LIBS=
  6. CFLAGS=        -O
  7. PWC=         crack-pwc
  8. FCRYPT=     crack-fcrypt.o
  9. OBJS=         crack-lib.o crack-glob.o crack-supp.o crack-sort.o
  10. UFCLIB=        ../ufc-crypt/libufc.a
  11. TRUNS=        1000
  12.  
  13. ###
  14. # The reason for the direct reference to libufc.a is to get round
  15. # obnoxious problems with ranlibbing a file after copying it on some
  16. # architectures. 
  17. ###
  18.  
  19. $(PWC).which:
  20.     @echo Choosing between Crack.fcrypt and Crack.ufc
  21.     -((../Scripts/do_ufc && make $(PWC).ufc) || make $(PWC).fcrypt)
  22.  
  23. $(PWC).fcrypt:    $(OBJS) $(FCRYPT) $(PWC).o
  24.         $(CC) $(CFLAGS) -o $(PWC) $(PWC).o $(OBJS) $(FCRYPT) $(LIBS)
  25.  
  26. $(PWC).ufc:    $(OBJS) $(PWC).o
  27.         $(CC) $(CFLAGS) -o $(PWC) $(PWC).o $(OBJS) $(UFCLIB) $(LIBS)
  28.  
  29. testrule:    testrule.o crack-lib.o
  30.         $(CC) $(CFLAGS) -o $@ testrule.o crack-lib.o
  31.  
  32. tester:        tester.o $(OBJS) $(FCRYPT)
  33.         $(CC) $(CFLAGS) -o $@ tester.o $(OBJS) $(FCRYPT)
  34.  
  35. speedufc:    speeds.c $(OBJS) $(UFC)
  36.         ../Scripts/do_ufc
  37.         $(CC) $(CFLAGS) -DT1 -o $@ speeds.c $(OBJS) $(UFCLIB)
  38.  
  39. speedfcrypt:    speeds.c $(OBJS) $(FCRYPT)
  40.         $(CC) $(CFLAGS) -DT1 -o $@ speeds.c $(OBJS) $(FCRYPT)
  41.  
  42. speedxform:    speeds.c $(OBJS) $(FCRYPT)
  43.         $(CC) $(CFLAGS) -DT2 -o $@ speeds.c $(OBJS) $(FCRYPT)
  44.  
  45. speedcrypt:    speeds.c $(OBJS) $(FCRYPT)
  46.         $(CC) $(CFLAGS) -o $@ speeds.c $(OBJS) $(FCRYPT)
  47.  
  48. tests:        tester speedcrypt speedfcrypt speedxform speedufc
  49.         -tester $(TRUNS)
  50.         -speedcrypt
  51.         -speedfcrypt
  52.         -speedxform
  53.         -speedufc
  54.  
  55. bytesex:     bytesex.o
  56.         $(CC) $(CFLAGS) -o $@ bytesex.o
  57.  
  58. $(FCRYPT):    crack-fcrypt.c crack.h bytesex
  59.         $(CC) $(CFLAGS) `./bytesex` -c crack-fcrypt.c
  60.  
  61. $(PWC).o:    crack.h conf.h
  62.  
  63. crack-glob.o:    crack.h
  64.  
  65. crack-lib.o:    crack.h conf.h
  66.  
  67. crack-sort.o:    crack.h
  68.  
  69. crack-supp.o:    crack.h conf.h
  70.  
  71. testrule.o:    crack.h
  72.  
  73. crack.h:    crack-glob.h
  74.         touch crack.h
  75.  
  76. conf.h:
  77.  
  78. clean:
  79.         -rm -f *.o *.u *.a *.pixie *.Addrs *.Counts
  80.         -rm -f $(PWC) tester bytesex testrule
  81.         -rm -f speedcrypt speedfcrypt speedxform speedufc
  82.