make testapps after the library.
[openssl.git] / crypto / des / Makefile.ssl
index f243a90ddd8f360dd3a9e819619173336dcd7254..789063b3c142217ee4b030bc9ae375937cda0e0c 100644 (file)
@@ -6,13 +6,16 @@ DIR=  des
 TOP=   ../..
 CC=    cc
 CPP=   $(CC) -E
-INCLUDES=
+INCLUDES=-I../../include
 CFLAG=-g
+INSTALL_PREFIX=
+OPENSSLDIR=     /usr/local/ssl
 INSTALLTOP=/usr/local/ssl
 MAKE=          make -f Makefile.ssl
 MAKEDEPEND=    $(TOP)/util/domd $(TOP)
 MAKEFILE=      Makefile.ssl
 AR=            ar r
+RANLIB=                ranlib
 DES_ENC=       des_enc.o fcrypt_b.o
 # or use
 #DES_ENC=      dx86-elf.o yx86-elf.o
@@ -57,6 +60,9 @@ lib:  $(LIBOBJ)
        $(RANLIB) $(LIB)
        @touch lib
 
+des: des.o cbc3_enc.o lib
+       $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
+
 # elf
 asm/dx86-elf.o: asm/dx86unix.cpp
        $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o
@@ -101,17 +107,17 @@ files:
 links:
        @$(TOP)/util/point.sh Makefile.ssl Makefile
        @$(TOP)/util/point.sh ../../perlasm asm/perlasm
-       @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
-       @$(TOP)/util/mklink.sh ../../test $(TEST)
-       @$(TOP)/util/mklink.sh ../../apps $(APPS)
+       @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
+       @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
+       @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 
 install: installs
 
 installs:
        @for i in $(EXHEADER) ; \
        do  \
-       (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
-       chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
+       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
+       chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
        done;
 
 tags:
@@ -130,72 +136,74 @@ dclean:
        mv -f Makefile.new $(MAKEFILE)
 
 clean:
-       rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
+       rm -f asm/dx86unix.cpp asm/yx86unix.cpp *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
 
 # DO NOT DELETE THIS LINE -- make depend depends on it.
 
-cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-cbc_cksm.o: des_locl.h
-cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-cbc_enc.o: des_locl.h
-cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-cfb64ede.o: des_locl.h
-cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-cfb64enc.o: des_locl.h
-cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-cfb_enc.o: des_locl.h
-des_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-des_enc.o: des_locl.h
-ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ecb3_enc.o: des_locl.h
-ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ecb_enc.o: ../../include/openssl/opensslv.h des_locl.h spr.h
-ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ede_cbcm_enc.o: des_locl.h
+cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+cbc_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
+cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+cbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h ncbc_enc.c
+cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+cfb64ede.o: ../../include/openssl/opensslconf.h des_locl.h
+cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+cfb64enc.o: ../../include/openssl/opensslconf.h des_locl.h
+cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+cfb_enc.o: ../../include/openssl/opensslconf.h des_locl.h
+des_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+des_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_locl.h ncbc_enc.c
+ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h
+ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
+ecb_enc.o: des_locl.h spr.h
+ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ede_cbcm_enc.o: ../../include/openssl/opensslconf.h des_locl.h
 enc_read.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
 enc_read.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
-enc_read.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
-enc_read.o: ../../include/openssl/opensslconf.h
+enc_read.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
+enc_read.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
 enc_read.o: ../cryptlib.h des_locl.h
 enc_writ.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
 enc_writ.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
-enc_writ.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
-enc_writ.o: ../../include/openssl/opensslconf.h
-enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
-enc_writ.o: ../cryptlib.h des_locl.h
+enc_writ.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
+enc_writ.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
+enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
+enc_writ.o: ../../include/openssl/stack.h ../cryptlib.h des_locl.h
 fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des.h
+fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/e_os2.h
 fcrypt.o: ../../include/openssl/opensslconf.h
 fcrypt.o: ../../include/openssl/opensslconf.h des_locl.h des_locl.h
-fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-fcrypt_b.o: des_locl.h
-ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ofb64ede.o: des_locl.h
-ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ofb64enc.o: des_locl.h
-ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-ofb_enc.o: des_locl.h
-pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-pcbc_enc.o: des_locl.h
-qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-qud_cksm.o: des_locl.h
-rand_key.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-rand_key.o: des_locl.h
-read2pwd.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-read2pwd.o: des_locl.h
+fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h
+ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h
+ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h
+ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h
+pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h
+qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
+rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+rand_key.o: ../../include/openssl/opensslconf.h des_locl.h
+read2pwd.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+read2pwd.o: ../../include/openssl/opensslconf.h des_locl.h
 read_pwd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
 read_pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
-read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
-read_pwd.o: ../../include/openssl/opensslconf.h
+read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
+read_pwd.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
 read_pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
 read_pwd.o: ../cryptlib.h des_locl.h
-rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-rpc_enc.o: des_locl.h des_ver.h rpc_des.h
-set_key.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-set_key.o: des_locl.h podd.h sk.h
-str2key.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-str2key.o: des_locl.h
-supp.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-supp.o: des_locl.h
-xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/opensslconf.h
-xcbc_enc.o: des_locl.h
+rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
+set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+set_key.o: ../../include/openssl/opensslconf.h des_locl.h podd.h sk.h
+str2key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+str2key.o: ../../include/openssl/opensslconf.h des_locl.h
+supp.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+supp.o: ../../include/openssl/opensslconf.h des_locl.h
+xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
+xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h