Typo in bn-mips3 rule.
[openssl.git] / crypto / bn / Makefile
index a25dd07cf322a7867e7cbb83ef05835211c51454..6926c77799216afe17313059105ec833f44ca05e 100644 (file)
@@ -8,8 +8,6 @@ CC=     cc
 CPP=    $(CC) -E
 INCLUDES= -I.. -I$(TOP) -I../../include
 CFLAG=-g
-MAKEDEPPROG=   makedepend
-MAKEDEPEND=    $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
 MAKEFILE=      Makefile
 AR=            ar r
 
@@ -81,11 +79,15 @@ co86-out.s: asm/co-586.pl ../perlasm/x86asm.pl
        (cd asm; $(PERL) co-586.pl a.out $(CFLAGS) > ../$@)
 
 sparcv8.o:     asm/sparcv8.S
-
+       $(CC) $(CFLAGS) -c asm/sparcv8.S
 sparcv8plus.o: asm/sparcv8plus.S
        $(CC) $(CFLAGS) -c asm/sparcv8plus.S
 
-mips3.o:       asm/mips3.s
+bn-mips3.o:    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
@@ -140,6 +142,7 @@ lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
 depend:
+       @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
 dclean: