v8plus must be specified.
[openssl.git] / crypto / bn / Makefile.ssl
index 59506f7f355bf1ada3f25bd369a7397cc3004903..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
@@ -119,8 +126,8 @@ links:
 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: