INF205/lab_2/10_memleak/Makefile

19 lines
264 B
Makefile
Raw Permalink Normal View History

2024-02-27 17:37:22 +00:00
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