# CSE 333 Makefile for Section 2 (simplestring.c)

CC = gcc
CFLAGS = -std=c17 -g -Wall
EXEC = simplestring

# Compiles simplestring; this is the default rule that fires if a user
# just types "make" in the same directory as this Makefile.
simplestring: $(EXEC).c
	$(CC) $(CFLAGS) -o $(EXEC) $(EXEC).c

val:
	valgrind --leak-check=full ./$(EXEC)

clean:
	rm -f *.o *~ $(EXEC)