18 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| CC=clang
 | |
| CFLAGS="-g -Wall -Werror "
 | |
| 
 | |
| XORSHIFT_SRC="xorshift.c ppm.c"
 | |
| XORSHIFT_OUT=xorshift
 | |
| 
 | |
| echo "Cleaning outputs dir..."
 | |
| rm -rf "./outputs/*"
 | |
| 
 | |
| echo -e "\nBuilding xorshift generators..."
 | |
| (set -x ; $CC $CFLAGS $XORSHIFT_SRC -o $XORSHIFT_OUT)
 | |
| 
 | |
| echo -e "\nTesting xorshift generators..."
 | |
| ./xorshift
 | |
| echo "Generated"
 |