Get rid of redundant multiplications in bn_div_words.
[openssl.git] / tools / Makefile.ssl
index 23e767c841efd5b0f0084b83d91b12820511ffa0..7e6285b9117d3adea292b2757e32597148637a5d 100644 (file)
@@ -7,6 +7,8 @@ TOP=    ..
 CC=    cc
 INCLUDES= -I.. -I../../include
 CFLAG=-g
 CC=    cc
 INCLUDES= -I.. -I../../include
 CFLAG=-g
+INSTALL_PREFIX=
+OPENSSLDIR=     /usr/local/ssl
 INSTALLTOP=/usr/local/ssl
 MAKE=          make -f Makefile.ssl
 MAKEDEPEND=    $(TOP)/util/domd $(TOP)
 INSTALLTOP=/usr/local/ssl
 MAKE=          make -f Makefile.ssl
 MAKEDEPEND=    $(TOP)/util/domd $(TOP)
@@ -16,19 +18,25 @@ CFLAGS= $(INCLUDES) $(CFLAG)
 
 GENERAL=Makefile.ssl
 TEST=
 
 GENERAL=Makefile.ssl
 TEST=
-APPS= c_hash c_info c_issuer c_name c_rehash
+APPS= c_rehash
+MISC_APPS= c_hash c_info c_issuer c_name
 
 all:
 
 install:
        @for i in $(APPS) ; \
        do  \
 
 all:
 
 install:
        @for i in $(APPS) ; \
        do  \
-       (cp $$i $(INSTALLTOP)/bin/$$i; \
-       chmod 755 $(INSTALLTOP)/bin/$$i ); \
+       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
+       chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
+       done;
+       @for i in $(MISC_APPS) ; \
+       do  \
+       (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
+       chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
        done;
 
 files:
        done;
 
 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
 
 links:
        @$(TOP)/util/point.sh Makefile.ssl Makefile
@@ -42,7 +50,7 @@ errors:
 depend:
 
 dclean:
 depend:
 
 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:
        mv -f Makefile.new $(MAKEFILE)
 
 clean: