CFLAGS = -Wall -Wextra -g
PROGS  = heapdemo heaptest fits translate ptsize sv39

all: $(PROGS)

heapdemo: heapdemo.c mymalloc.c mymalloc.h
	$(CC) $(CFLAGS) -o $@ heapdemo.c mymalloc.c

heaptest: heaptest.c mymalloc.c mymalloc.h
	$(CC) $(CFLAGS) -o $@ heaptest.c mymalloc.c

# Corre las pruebas del asignador.
test: heaptest
	./heaptest

clean:
	rm -f $(PROGS)

.PHONY: all test clean
