# CSE 333 Makefile for Section 2 (simplestring.c) CC = gcc CFLAGS = -std=c17 -g -Wall EXEC_1 = reverse EXEC_2 = simplestring # Compiles simplestring and reverse; this is the default rule that # fires if a user just types "make" in the same directory as this # Makefile. all: reverse simplestring reverse: $(EXEC_1).c $(CC) $(CFLAGS) -o $(EXEC_1) $(EXEC_1).c simplestring: $(EXEC_2).c $(CC) $(CFLAGS) -o $(EXEC_2) $(EXEC_2).c clean: rm -f *.o *~ $(EXEC_1) $(EXEC_2)