Missed -c in IRIX rules.
[openssl.git] / crypto / bn / Makefile
index fe34104caff1a27613c84b72cf15f7efe0ad217c..4afb6a393c962d9a7053649e63b09e013e92ec88 100644 (file)
@@ -8,12 +8,6 @@ CC=    cc
 CPP=    $(CC) -E
 INCLUDES= -I.. -I$(TOP) -I../../include
 CFLAG=-g
-INSTALL_PREFIX=
-OPENSSLDIR=     /usr/local/ssl
-INSTALLTOP=/usr/local/ssl
-MAKE=          make
-MAKEDEPPROG=   makedepend
-MAKEDEPEND=    $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
 MAKEFILE=      Makefile
 AR=            ar r
 
@@ -85,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) -c $(CFLAGS) -o $@ asm/mips3.s; fi
 
 x86_64-gcc.o:  asm/x86_64-gcc.c
        $(CC) $(CFLAGS) -c -o $@ asm/x86_64-gcc.c
@@ -120,6 +118,7 @@ links:
        @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 
 install:
+       @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
        @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
        do  \
        (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
@@ -143,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: