21 lines
		
	
	
		
			361 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			361 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| binary = memleak
 | |
| folder = memleak
 | |
| objects = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
 | |
| 
 | |
| run: $(binary)
 | |
| 	./$(binary) 7 100000000
 | |
| 
 | |
| $(binary): $(objects)
 | |
| 	g++ -Ofast -march=native -flto -fno-signed-zeros -fno-trapping-math -o $@ $^
 | |
| 
 | |
| clean:
 | |
| 	rm -f *.o
 | |
| 
 | |
| clear: clean
 | |
| 	rm -f *.zip $(binary)
 | |
| 
 | |
| zip: clean
 | |
| 	zip $(folder) Makefile *.cpp *.h
 | |
| 
 | |
| profile:
 | |
| 	g++ -pg *.cpp -o $@ $^
 |