INF205/lab_2/12/Makefile

21 lines
361 B
Makefile
Raw Normal View History

2024-02-27 17:53:12 +00:00
binary = memleak
folder = memleak
objects = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
run: $(binary)
./$(binary) 7 100000000
$(binary): $(objects)
2024-03-05 09:35:30 +00:00
g++ -Ofast -march=native -flto -fno-signed-zeros -fno-trapping-math -o $@ $^
2024-02-27 17:53:12 +00:00
clean:
rm -f *.o
clear: clean
rm -f *.zip $(binary)
zip: clean
zip $(folder) Makefile *.cpp *.h
2024-02-27 21:10:05 +00:00
profile:
g++ -pg *.cpp -o $@ $^