|  |  | @ -9,15 +9,19 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
 |  |  |  | # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | # Path to the root of the LUFA tree to scan
 |  |  |  | # Path to the root of the LUFA tree to scan
 | 
			
		
	
		
		
			
				
					
					|  |  |  | LUFA_ROOT_PATH   = ../../ |  |  |  | LUFA_ROOT_PATH    = ../../ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | # Filenames or directories (including fragments) to exclude from the analysis
 |  |  |  | # Filenames or directories (including fragments) to exclude from the analysis
 | 
			
		
	
		
		
			
				
					
					|  |  |  | EXCLUDE_LIST     = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/ |  |  |  | EXCLUDE_LIST      = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | # Output message template for found warnings and errors
 |  |  |  | # Output message template for found warnings and errors
 | 
			
		
	
		
		
			
				
					
					|  |  |  | MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}" |  |  |  | MESSAGE_TEMPLATE  = "{file}({line}): {severity} ({id}): {message}" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | # Checks to suppress so that generated warnings are discarded
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | all: |  |  |  | all: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	cppcheck -q -f --error-exitcode=1 --inline-suppr --enable=style --suppress=variableScope --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH) |  |  |  | 	cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH) | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 |  |  |  | 	 | 
			
		
	
		
		
			
				
					
					|  |  |  | %: |  |  |  | %: |