makefile: add 'coverage' make target
This commit is contained in:
		
							parent
							
								
									39e348b2e2
								
							
						
					
					
						commit
						036d697caa
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -4,10 +4,12 @@
 | 
				
			|||||||
*.obj
 | 
					*.obj
 | 
				
			||||||
*.gcda
 | 
					*.gcda
 | 
				
			||||||
*.gcno
 | 
					*.gcno
 | 
				
			||||||
 | 
					*.gcov
 | 
				
			||||||
*.lib
 | 
					*.lib
 | 
				
			||||||
Debug/
 | 
					Debug/
 | 
				
			||||||
Release/
 | 
					Release/
 | 
				
			||||||
.libs/
 | 
					.libs/
 | 
				
			||||||
 | 
					.coveralls.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# suppress output of build process and *nix/windows test executables
 | 
					# suppress output of build process and *nix/windows test executables
 | 
				
			||||||
ltmtest
 | 
					ltmtest
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										9
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								makefile
									
									
									
									
									
								
							@ -66,6 +66,15 @@ $(LIBNAME):  $(OBJECTS)
 | 
				
			|||||||
	$(AR) $(ARFLAGS) $@ $(OBJECTS)
 | 
						$(AR) $(ARFLAGS) $@ $(OBJECTS)
 | 
				
			||||||
	$(RANLIB) $@
 | 
						$(RANLIB) $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#make the code coverage of the library
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					coverage: CFLAGS += -fprofile-arcs -ftest-coverage
 | 
				
			||||||
 | 
					coverage: LFLAGS += -lgcov
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					coverage: test_standalone
 | 
				
			||||||
 | 
						./test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#make a profiled library (takes a while!!!)
 | 
					#make a profiled library (takes a while!!!)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This will build the library with profile generation
 | 
					# This will build the library with profile generation
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user