Starta på 13

This commit is contained in:
2024-02-27 22:13:56 +01:00
parent 60235bdaf2
commit 42176e4c76
4 changed files with 178 additions and 0 deletions

21
lab_2/13/Makefile Normal file
View File

@@ -0,0 +1,21 @@
binary = memleak
folder = memleak
objects = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
run: $(binary)
./$(binary) 7 100000000
$(binary): $(objects)
g++ -o $@ $^
clean:
rm -f *.o
clear: clean
rm -f *.zip $(binary)
zip: clean
zip $(folder) Makefile *.cpp *.h
profile:
g++ -pg *.cpp -o $@ $^