Add commodity targets.
- make run - make cachegrind
This commit is contained in:
		
							parent
							
								
									54e35ff8d0
								
							
						
					
					
						commit
						bb996596e4
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -6,4 +6,10 @@ all: rotation.cpp
 | 
				
			||||||
	$(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation
 | 
						$(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	@rm -f *~ *.o .*.swp
 | 
						@rm -f *~ *.o .*.swp *.ppm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					run: all
 | 
				
			||||||
 | 
						$(BUILD_DIR)/rotation img/lena.ppm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cachegrind: all
 | 
				
			||||||
 | 
						valgrind --tool=cachegrind $(BUILD_DIR)/rotation img/lena.ppm
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue