Complete integration of SPARC assembler DES implementation. Tested on Solaris
[openssl.git] / crypto / des / Makefile.ssl
index 2edb542db967f90a090404b0ba42726630ed4b64..93979d497ae341f5c0ea50317c80a2357b2b25eb 100644 (file)
@@ -23,6 +23,14 @@ DES_ENC=     des_enc.o fcrypt_b.o
 
 CFLAGS= $(INCLUDES) $(CFLAG)
 
+# We let the C compiler driver to take care of .s files. This is done in
+# order to be excused from maintaining a separate set of architecture
+# dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC
+# gcc, then the driver will automatically translate it to -xarch=v8plus
+# and pass it down to assembler.
+AS=$(CC) -c
+ASFLAGS=$(CFLAGS)
+
 GENERAL=Makefile
 TEST=destest.c
 APPS=
@@ -65,6 +73,9 @@ lib:  $(LIBOBJ)
 des: des.o cbc3_enc.o lib
        $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
 
+asm/des_enc-sparc.S:   asm/des_enc.m4
+       m4 -B 8192 asm/des_enc.m4 > asm/des_enc-sparc.S
+
 # elf
 asm/dx86-elf.o: asm/dx86unix.cpp
        $(CPP) -DELF    \