# Very simple Makefile for talk/speak/shout program
# CSE333 demo, 4/17 HP

# default target
talk: main.o speak.o shout.o
	gcc -Wall -g -std=c11 -o talk main.o speak.o shout.o

# individual source files
speak.o: speak.c speak.h
	gcc -Wall -g -std=c11 -c speak.c

shout.o: shout.c shout.h speak.h
	gcc -Wall -g -std=c11 -c shout.c

main.o: main.c speak.h shout.h
	gcc -Wall -g -std=c11 -c main.c

# phony target - delete built files (including OS X debug files)
clean:
	rm -rf talk *.o *~ talk.dSYM