unified build scheme: add a "unified" template for Unix Makefile
[openssl.git] / crypto / chacha / build.info
index 47e0536c939757cf7369734e4109658127d39901..c56c6243e629beddd9500970e9af3e2769029605 100644 (file)
@@ -1,2 +1,14 @@
 LIBS=../../libcrypto
 SOURCE[../../libcrypto]={- $target{chacha_asm_src} -}
+
+BEGINRAW[Makefile(unix)]
+##### CHACHA assembler implementations
+
+{- $builddir -}/chacha-x86.s:          {- $sourcedir -}/asm/chacha-x86.pl
+       $(PERL) {- $sourcedir -}/asm/chacha-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
+{- $builddir -}/chacha-x86_64.s:       {- $sourcedir -}/asm/chacha-x86_64.pl
+       $(PERL) {- $sourcedir -}/asm/chacha-x86_64.pl $(PERLASM_SCHEME) > $@
+
+{- $builddir -}/chacha-%.S:    {- $sourcedir -}/asm/chacha-%.pl
+       $(PERL) $< $(PERLASM_SCHEME) $@
+ENDRAW[Makefile(unix)]