# Very simple Makefile for talk/speak/shout program # CSE333 demo, Hal Perkins CC = gcc CFLAGS = -Wall -g -std=c17 # default target talk: main.o speak.o shout.o $(CC) $(CFLAGS) -o talk main.o speak.o shout.o # individual source files speak.o: speak.c speak.h $(CC) $(CFLAGS) -c speak.c shout.o: shout.c shout.h speak.h $(CC) $(CFLAGS) -c shout.c main.o: main.c speak.h shout.h $(CC) $(CFLAGS) -c main.c # phony target - delete built files (including OS X debug files) clean: rm -rf talk *.o *~ talk.dSYM