diff options
author | Andy Polyakov <appro@openssl.org> | 2005-06-23 16:23:06 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-06-23 16:23:06 +0000 |
commit | 88ebf53577021d66889432da79efe5a2255555b0 (patch) | |
tree | 1bc29a8c6456ba38af6224c4d6a9059e2c8f7835 /crypto | |
parent | a41b0aade202705fdf829433a8e19a33049f412c (diff) |
Rename mips3.o to bn-mips3.o [it's better in long run] and adjust the
rule to accomodate gcc4, which no longer support SGI as.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/bn/Makefile b/crypto/bn/Makefile index f864a05f39..7f7b3a0bfb 100644 --- a/crypto/bn/Makefile +++ b/crypto/bn/Makefile @@ -83,7 +83,11 @@ sparcv8.o: asm/sparcv8.S sparcv8plus.o: asm/sparcv8plus.S $(CC) $(CFLAGS) -c asm/sparcv8plus.S -mips3.o: asm/mips3.s +bn-mips3.s: asm/mips3.s + @if [ "$(CC)" = "gcc" ]; then \ + ABI=`expr "$(CFLAGS)" : ".*-mabi=\([n3264]*\)"` && \ + as -$$ABI -O -o $@ asm/mips3.s; \ + else $(CC) $(CFLAGS) -o $@ asm/mips3.s; fi x86_64-gcc.o: asm/x86_64-gcc.c $(CC) $(CFLAGS) -c -o $@ asm/x86_64-gcc.c |