# =============================================================================
# Makefile for CMU 15-213 Lecture 14 (dynamic memory allocation: advanced)
# =============================================================================
#
#   make run      run both demos (01 Python; 02 compiles bugs14.c under ASan)
#   make clean
#
# heap.py / freelists.py are teaching models (Python), NOT the malloclab
# deliverable. 02 needs a compiler with AddressSanitizer.
# -----------------------------------------------------------------------------

.PHONY: run clean
run:
	@python3 01_free_lists.py
	@echo; python3 02_memory_bugs.py

clean:
	rm -rf build __pycache__
