2024-02-27 21:13:56 +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 21:13:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
clear: clean
|
|
|
|
rm -f *.zip $(binary)
|
|
|
|
|
|
|
|
zip: clean
|
|
|
|
zip $(folder) Makefile *.cpp *.h
|
|
|
|
|
|
|
|
profile:
|
|
|
|
g++ -pg *.cpp -o $@ $^
|