22 lines
		
	
	
		
			536 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			536 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
CC=clang
 | 
						|
CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined -DDEBUG"
 | 
						|
INCLUDES="\
 | 
						|
	-I$(find ./src -type d | xargs -I{} echo -n "-I{} ") \
 | 
						|
	$(find intern/wizapp/src -type d | xargs -I{} echo -n "-I{} ") \
 | 
						|
	$(pkg-config --cflags sdl2) \
 | 
						|
"
 | 
						|
LIBS="\
 | 
						|
	-lm \
 | 
						|
	-pthread \
 | 
						|
	$(pkg-config --libs sdl2) \
 | 
						|
"
 | 
						|
SRC="\
 | 
						|
	$(find ./src -name *.c | xargs -I{} echo -n "{} ") \
 | 
						|
	$(find intern/wizapp/src -type f -name *.c | xargs -I{} echo -n "{} ") \
 | 
						|
"
 | 
						|
OUT=tiffread
 | 
						|
 | 
						|
( set -x ; $CC $CFLAGS $INCLUDES $LIBS $SRC -o $OUT )
 |