#
# Makefile for CS 70 Assignment 3, Spring 2003
# 
# You do not need to understand this file to use it.  To build your
# software just type:
#
#     make
#

# ----- Make Macros -----

CXX      = g++3
CXXFLAGS = -g -pedantic -Wall -W
OBJECTS  = course.o dbmanager.o regdb.o regsystem.o student.o

# ----- Make rules -----

all:	regsystem

regsystem:	$(OBJECTS)
	$(CXX) $(CXXFLAGS) -o regsystem $(OBJECTS)

clean:
	rm -f regsystem $(OBJECTS)

course.o: course.cpp course.hpp student.hpp
dbmanager.o: dbmanager.cpp dbmanager.hpp course.hpp student.hpp regdb.hpp
regdb.o: regdb.cpp course.hpp regdb.hpp student.hpp
regsystem.o: regsystem.cpp regdb.hpp dbmanager.hpp
student.o: student.cpp course.hpp student.hpp
