diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-01 12:34:33 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-01 12:34:33 +0000 |
commit | 99aab1619f02b184f140150c72276bf55716cc42 (patch) | |
tree | 4a242345579d7fddff7371432170b6081a3cfd8f /crypto/des | |
parent | 6b01fa64904749537db5dcf948a9a094d63cfc16 (diff) | |
download | openssl-99aab1619f02b184f140150c72276bf55716cc42.tar.gz |
New Makefile variables $(RANLIB) and $(PERL).
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/Makefile.ssl | 10 | ||||
-rw-r--r-- | crypto/des/Makefile.uni | 20 | ||||
-rw-r--r-- | crypto/des/ranlib.sh | 23 |
3 files changed, 9 insertions, 44 deletions
diff --git a/crypto/des/Makefile.ssl b/crypto/des/Makefile.ssl index c7b5dc4502..46be0c8f89 100644 --- a/crypto/des/Makefile.ssl +++ b/crypto/des/Makefile.ssl @@ -54,7 +54,7 @@ all: lib lib: $(LIBOBJ) $(AR) $(LIB) $(LIBOBJ) - sh $(TOP)/util/ranlib.sh $(LIB) + $(RANLIB) $(LIB) @touch lib # elf @@ -90,13 +90,13 @@ asm/yx86bsdi.o: asm/yx86unix.cpp $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o asm/dx86unix.cpp: asm/des-586.pl - (cd asm; perl des-586.pl cpp >dx86unix.cpp) + (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp) asm/yx86unix.cpp: asm/crypt586.pl - (cd asm; perl crypt586.pl cpp >yx86unix.cpp) + (cd asm; $(PERL) crypt586.pl cpp >yx86unix.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 @@ -126,7 +126,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: diff --git a/crypto/des/Makefile.uni b/crypto/des/Makefile.uni index 8f1759748a..ec19d75b81 100644 --- a/crypto/des/Makefile.uni +++ b/crypto/des/Makefile.uni @@ -51,6 +51,7 @@ CFLAG= -O3 -fomit-frame-pointer CFLAGS=$(OPTS) $(CFLAG) CPP=$(CC) -E AS=as +RANLIB=ranlib # Assember version of des_encrypt*(). DES_ENC=des_enc.o fcrypt_b.o # normal C version @@ -169,9 +170,7 @@ test: all $(DLIB): $(OBJ) /bin/rm -f $(DLIB) ar cr $(DLIB) $(OBJ) - -if test -s /bin/ranlib; then /bin/ranlib $(DLIB); \ - else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(DLIB); \ - else exit 0; fi; fi + $(RANLIB) $(DLIB) des_opts: des_opts.o $(DLIB) $(CC) $(CFLAGS) -o des_opts des_opts.o $(DLIB) @@ -231,25 +230,14 @@ install: des if test $(INSTALLTOP); then \ echo SSL style install; \ cp $(DLIB) $(INSTALLTOP)/lib; \ - if test -s /bin/ranlib; then \ - /bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \ - else \ - if test -s /usr/bin/ranlib; then \ - /usr/bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \ - fi; fi; \ + $(RANLIB) $(DLIB); \ chmod 644 $(INSTALLTOP)/lib/$(DLIB); \ cp des.h $(INSTALLTOP)/include; \ chmod 644 $(INSTALLTOP)/include/des.h; \ else \ echo Standalone install; \ cp $(DLIB) $(LIBDIR)/$(DLIB); \ - if test -s /bin/ranlib; then \ - /bin/ranlib $(LIBDIR)/$(DLIB); \ - else \ - if test -s /usr/bin/ranlib; then \ - /usr/bin/ranlib $(LIBDIR)/$(DLIB); \ - fi; \ - fi; \ + $(RANLIB) $(DLIB); \ chmod 644 $(LIBDIR)/$(DLIB); \ cp des $(BINDIR)/des; \ chmod 711 $(BINDIR)/des; \ diff --git a/crypto/des/ranlib.sh b/crypto/des/ranlib.sh deleted file mode 100644 index 543f712c6b..0000000000 --- a/crypto/des/ranlib.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -cwd=`pwd` -cd /tmp - -if [ -s /bin/ranlib ] ; then - RL=/bin/ranlib -else if [ -s /usr/bin/ranlib ] ; then - RL=/usr/bin/ranlib -fi -fi - -if [ "x$RL" != "x" ] -then - case "$1" in - /*) - $RL "$1" - ;; - *) - $RL "$cwd/$1" - ;; - esac -fi |