Ferdig med 10

This commit is contained in:
2024-02-27 18:37:22 +01:00
parent 34f9986a54
commit 1fcf466144
10 changed files with 237 additions and 0 deletions

18
lab_2/10_memleak/Makefile Normal file
View File

@@ -0,0 +1,18 @@
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