v8plus must be specified.
[openssl.git] / crypto / bn / Makefile.ssl
index 521381f0d4a17cad5a4ae418f8825093850a65be..d5071b9f47f8b8e39091bda10fb17fcfabd2556c 100644 (file)
@@ -7,6 +7,8 @@ TOP=    ../..
 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)
@@ -97,7 +99,12 @@ asm/co86unix.cpp: asm/co-586.pl
        (cd asm; $(PERL) co-586.pl cpp >co86unix.cpp )
 
 asm/sparcv8.o: asm/sparcv8.S
-       $(CC) -c -o asm/sparcv8.o asm/sparcv8.S
+
+asm/sparcv8plus.o: asm/sparcv8plus.S
+       $(CC) -xarch=v8plus -c asm/sparcv8plus.S -o asm/sparcv8plus.o
+
+asm/sparcv8plus-gcc.o: asm/sparcv8plus.S
+       gcc -E asm/sparcv8plus.S | as -xarch=v8plus /dev/fd/0 -o asm/sparcv8plus-gcc.o
 
 # MIPS 64 bit assember 
 asm/mips3.o: asm/mips3.s
@@ -112,15 +119,15 @@ files:
 
 links:
        @$(TOP)/util/point.sh Makefile.ssl Makefile
-       @$(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
-       @$(TOP)/util/mklink.pl ../../test $(TEST)
-       @$(TOP)/util/mklink.pl ../../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:
        @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;
 
 exptest: