all: main.cpp foreignStudent.o student.o
	c++ main.cpp student.o foreignStudent.o

foreignStudent.o: foreignStudent.cpp foreignStudent.h
	c++ -c foreignStudent.cpp 

student.o: student.cpp student.h
	c++ -c student.cpp
 
clean:
	rm -f *.o a.out *.*~ *~