CC = gcc CFLAGS = -std=c99 -Wall -Wextra -g -O0 .PHONY: all test clean all: test_practice test_practice: practice.c practice.h test_practice.c $(CC) $(CFLAGS) practice.c test_practice.c -o $@ test: test_practice @ulimit -c 0; status=0; \ for exercise in arrays pointers strings structs heap; do \ echo "Testing $$exercise"; \ ./test_practice $$exercise || status=1; \ done; exit $$status clean: rm -f test_practice