#
# comments start with a # sign
#
# each item in the make file consists of
# three things:  a product, its ingredients and how to make it
#
# gcc -o test test.c -lcurses


CC = gcc -g -Wall

pong: pong.o alarmlib.o paddle.o ball.o
	$(CC) pong.o alarmlib.o paddle.o ball.o -lcurses -o pong

pong.o: pong.c pong.h
	$(CC) -c pong.c
        
alarmlib.o: alarmlib.c alarmlib.h
	$(CC) -c alarmlib.c

paddle.o: paddle.c paddle.h
	$(CC) -c paddle.c

ball.o: ball.c ball.h
	$(CC) -c ball.c
