OBJECTS = point.o main.o rect.o

all: initconstruct

point.cpp: point.h
rect.cpp: rect.h point.h

%.o: %.cpp
	g++ -Wall -c $<

initconstruct: $(OBJECTS) 
	g++ $(OBJECTS) -o initconstruct

clean:
	rm -f initconstruct *.o

rebuild: clean initconstruct
