mirror of https://github.com/openssl/openssl.git
				
				
				
			Unified - adapt the generation of ripemd assembler to use GENERATE
This gets rid of the BEGINRAW..ENDRAW sections in crypto/ripemd/build.info. This also moves the assembler generating perl scripts to take the output file name as last command line argument, where necessary. Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
		
							parent
							
								
									57c83b3c3a
								
							
						
					
					
						commit
						fe7f8263af
					
				|  | @ -40,7 +40,7 @@ lib:    $(LIBOBJ) | ||||||
| 	@touch lib | 	@touch lib | ||||||
| 
 | 
 | ||||||
| rmd-586.s:	asm/rmd-586.pl ../perlasm/x86asm.pl | rmd-586.s:	asm/rmd-586.pl ../perlasm/x86asm.pl | ||||||
| 	$(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ | 	$(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) $@ | ||||||
| 
 | 
 | ||||||
| files: | files: | ||||||
| 	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||||||
|  |  | ||||||
|  | @ -9,6 +9,9 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; | ||||||
| push(@INC,"${dir}","${dir}../../perlasm"); | push(@INC,"${dir}","${dir}../../perlasm"); | ||||||
| require "x86asm.pl"; | require "x86asm.pl"; | ||||||
| 
 | 
 | ||||||
|  | $output=pop; | ||||||
|  | open STDOUT,">$output"; | ||||||
|  | 
 | ||||||
| &asm_init($ARGV[0],$0); | &asm_init($ARGV[0],$0); | ||||||
| 
 | 
 | ||||||
| $A="ecx"; | $A="ecx"; | ||||||
|  | @ -60,6 +63,8 @@ $KR3=0x7A6D76E9; | ||||||
| &ripemd160_block("ripemd160_block_asm_data_order"); | &ripemd160_block("ripemd160_block_asm_data_order"); | ||||||
| &asm_finish(); | &asm_finish(); | ||||||
| 
 | 
 | ||||||
|  | close STDOUT; | ||||||
|  | 
 | ||||||
| sub Xv | sub Xv | ||||||
| 	{ | 	{ | ||||||
| 	local($n)=@_; | 	local($n)=@_; | ||||||
|  |  | ||||||
|  | @ -2,9 +2,5 @@ LIBS=../../libcrypto | ||||||
| SOURCE[../../libcrypto]=\ | SOURCE[../../libcrypto]=\ | ||||||
|         rmd_dgst.c rmd_one.c {- $target{rmd160_asm_src} -} |         rmd_dgst.c rmd_one.c {- $target{rmd160_asm_src} -} | ||||||
| 
 | 
 | ||||||
| BEGINRAW[Makefile] | GENERATE[rmd-586.s]=asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) | ||||||
| ##### RMD160 assembler implementations | DEPEND[rmd-586.s]=../perlasm/x86asm.pl | ||||||
| 
 |  | ||||||
| {- $builddir -}/rmd-586.s:	{- $sourcedir -}/asm/rmd-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl |  | ||||||
| 	CC="$(CC)" $(PERL) {- $sourcedir -}/asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ |  | ||||||
| ENDRAW[Makefile] |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue