New Makefile variables $(RANLIB) and $(PERL).
[openssl.git] / crypto / cast / Makefile.ssl
index 3911b6c11819ab822546c41224bb6608d105bfe3..a976ea1ff1266c902648d0fdcf7e408d4767d68f 100644 (file)
@@ -45,7 +45,7 @@ all:  lib
 
 lib:   $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
-       sh $(TOP)/util/ranlib.sh $(LIB)
+       $(RANLIB) $(LIB)
        @touch lib
 
 # elf
@@ -67,10 +67,10 @@ asm/cx86bsdi.o: asm/cx86unix.cpp
        $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
 
 asm/cx86unix.cpp: asm/cast-586.pl
-       (cd asm; perl cast-586.pl cpp >cx86unix.cpp)
+       (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp)
 
 files:
-       perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
+       $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
 
 links:
        @$(TOP)/util/point.sh Makefile.ssl Makefile
@@ -97,7 +97,7 @@ depend:
        $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
 
 dclean:
-       perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
+       $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
        mv -f Makefile.new $(MAKEFILE)
 
 clean:
@@ -108,7 +108,7 @@ errors:
 # DO NOT DELETE THIS LINE -- make depend depends on it.
 
 c_cfb64.o: cast.h cast_lcl.h
-c_ecb.o: cast.h cast_lcl.h
+c_ecb.o: ../opensslv.h cast.h cast_lcl.h
 c_enc.o: cast.h cast_lcl.h
 c_ofb64.o: cast.h cast_lcl.h
 c_skey.o: cast.h cast_lcl.h cast_s.h