# $OpenBSD: Makefile,v 1.2 1997/06/29 10:41:29 provos Exp $ LIB= des SRCS= cbc_cksm.c cbc_enc.c cbc3_enc.c cfb_enc.c cfb64ede.c cfb64enc.c \ des_enc.c ecb_enc.c ecb3_enc.c ede_enc.c enc_read.c enc_writ.c \ fcrypt.c ncbc_enc.c ofb_enc.c ofb64ede.c ofb64enc.c pcbc_enc.c \ qud_cksm.c rand_key.c read_pwd.c rnd_keys.c rpc_enc.c set_key.c \ str2key.c supp.c xcbc_enc.c # If you are on a DEC Alpha, edit des.h and change the DES_LONG # define to 'unsigned int'. I have seen this give a %20 speedup. .if ${MACHINE} == "alpha" CFLAGS+= -DDES_LONG=u_int .endif #.if ${MACHINE} == "i386" #OBJS+= asm/dx86-out.o #.else #SRCS+= des_enc.c #.endif #asm/dx86-out.o: # $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o #asm/dx86-out.po: # $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.po.o # $(LD) -X -r asm/dx86-out.po.o -o asm/dx86-out.po # rm -f asm/dx86-out.po.o #asm/dx86-out.so: # $(CPP) -DOUT asm/dx86unix.cpp | as -k -o asm/dx86-out.so.o # $(LD) -x -r -d asm/dx86-out.so.o -o asm/dx86-out.so # rm -f asm/dx86-out.so.o MAN= des_crypt.3 MLINKS+=des_crypt.3 des_read_password.3 des_crypt.3 des_read_2password.3 \ des_crypt.3 des_string_to_key.3 des_crypt.3 des_string_to_2key.3 \ des_crypt.3 des_read_pw_string.3 des_crypt.3 des_random_key.3 \ des_crypt.3 des_set_key.3 \ des_crypt.3 des_ecb_encrypt.3 des_crypt.3 des_3ecb_encrypt.3 \ des_crypt.3 des_cbc_encrypt.3 des_crypt.3 des_3cbc_encrypt.3 \ des_crypt.3 des_pcbc_encrypt.3 des_crypt.3 des_cfb_encrypt.3 \ des_crypt.3 des_ofb_encrypt.3 des_crypt.3 des_cbc_cksum.3 \ des_crypt.3 des_quad_cksum.3 des_crypt.3 des_enc_read.3 \ des_crypt.3 des_enc_write.3 des_crypt.3 des_set_odd_parity.3 \ des_crypt.3 des_is_weak_key.3 .include