#
# Name:
# Date:
# 
# Note: Makefiles begin with a captal M
#   Indentation MUST be with a tab
#
# tagets build, test, clean and submit are required.
# 

#COPTS= -Wall
COPTS= 
DEBUG= -d1
#DEBUG=

all:
	@echo "Targets: build, test, clean, submit"

build:
	make boom

boom: boom.c boom.h
	cc ${COPTS} -o $@ $<
	
run: boom
	./boom
	./boom -n -1 >> boom.out

test: boom
	-rm boom.out
	./boom  > boom.out
	./boom -u -n 5 >> boom.out
	diff boom.ref boom.out

clean:
	-rm boom boom.out

submit:
	@echo svn add your work
	svn commit -m "submitted for grading"