home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0679.ZIP / CCE_0679.PD / DES301 / MAKEFILE.32 < prev    next >
Text File  |  1993-11-10  |  2KB  |  59 lines

  1. # Turn this option on if using a SGI Iris running IRIX.
  2. # IRIX does not appear to define sgttyb anywhere :-(
  3. #OPTS0= -D_IRIX
  4.  
  5. # Version 1.94 has changed the strings_to_key function so that it is
  6. # now compatible with MITs when the string is longer than 8 characters.
  7. # If you wish to keep the old version, uncomment the following line.
  8. # This will affect the -E/-D options on des(1).
  9. #OPTS1= -DOLD_STR_TO_KEY
  10.  
  11. # This #define specifies the use of an alternative D_ENCRYPT macro in
  12. # ecb_encrypt.  The choice of macro can make a %20 difference in the
  13. # speed.  Unfortunatly the choise of the best macro appears to be very
  14. # dependant on the compiler and the machine in question.
  15. # For the following combinations use the ALT_ECB option.
  16. # Sparc 2 (cc -O4), sun 3/260 (cc -O4)
  17. # For the following combinations do not use the ALT_ECB option.
  18. # Sparc 2 (gcc2 -O2), sun 3/260 (cc -O2), mvax2 (cc -O), MSDOS (Turbo Cv2)
  19. # For other machines, experiment with changing the option and run
  20. # ./speed to see which is faster.
  21. # DO NOT TURN THIS OPTION ON WHEN COMPILING THIS CODE ON A 64 BIT MACHINE
  22. OPTS2= -DALT_ECB # is faster with atarist + gcc
  23.  
  24. OPTS= $(OPTS0) $(OPTS1) $(OPTS2)
  25. #CC=cc
  26. #CFLAGS= -g $(OPTS)
  27. AR=gcc-ar
  28. CC=gcc
  29. CFLAGS= -O2 $(OPTS) -fomit-frame-pointer
  30.  
  31.  
  32. OBJS=    cbc_cksm.o cbc_enc.o ecb_enc.o pcbc_enc.o \
  33.     qud_cksm.o rand_key.o read_pwd.o set_key.o str2key.o \
  34.     enc_read.o enc_writ.o fcrypt.o cfb_enc.o \
  35.     3ecb_enc.o ofb_enc.o 3cbc_enc.o
  36.  
  37. LIB=    des.olb
  38.  
  39. all: $(LIB) destest.ttp rpw.ttp des.ttp speed.ttp
  40.  
  41. $(LIB):    $(OBJS)
  42.     rm -f $(LIB)
  43.     $(AR) sr $(LIB) $(OBJS)
  44.  
  45. destest.ttp: destest.o des.olb
  46.     $(CC) $(CFLAGS) -o destest.ttp destest.o des.olb
  47.  
  48. rpw.ttp: rpw.o des.olb
  49.     $(CC) $(CFLAGS) -o rpw.ttp rpw.o des.olb
  50.  
  51. speed.ttp: speed.o des.olb
  52.     $(CC) $(CFLAGS) -o speed.ttp speed.o des.olb
  53.  
  54. des.ttp: des.o des.olb
  55.     $(CC) $(CFLAGS) -o des.ttp des.o des.olb
  56.     xstrip -k $@
  57.  
  58. # DO NOT DELETE THIS LINE -- make depend depends on it.
  59.