CXXFLAGS += -IGTK -I. `pkg-config --cflags gtk+-2.0` -g LDFLAGS += `pkg-config --libs gtk+-2.0` all: main$(EXE) OBJECTS = GTK/main.o Face.o VertexBag.o View.o World.o GTK/GTKView.o CommonView.o GTK/Events.o clipper.o Material.o MaterialBag.o main$(EXE): $(OBJECTS) $(CC) -lstdc++ $(LDFLAGS) -o main$(EXE) $(OBJECTS) # TODO depends CommonView.o: CommonView.cc CommonView.h View.h Matrix.h VertexBags.h Face.o: Face.cc Face.h Material.h Matrix.h #Matrix.o: Matrix.cc Matrix.h VertexBag.o: VertexBag.cc VertexBag.h Matrix.h View.o: View.cc View.h World.h MaterialBag.h World.o: World.cc World.h MaterialBag.h VertexBag.h Face.h Material.h VertexBags.h Matrix.h Matrix.cc GTK/GTKView.o: GTK/GTKView.cc GTK/GTKView.h View.h VertexBags.h clipper.h GTK/Events.o: GTK/Events.cc GTK/Events.h GTK/main.o: GTK/main.cc GTK/GTKView.h GTK/Events.h View.h World.h MaterialBag.h clipper.o: clipper.cc clipper.h MaterialBag.o: MaterialBag.cc MaterialBag.h Material.h Reflectivity.h Material.o: Material.cc Material.h Reflectivity.h clean: /bin/rm -f -- *.o GTK/*.o distclean: clean /bin/rm -f -- main