#       Makefile gerado automaticamente pelo programa geomkmk.
#       Destina-se a modulos a serem ligados dinamicamente com o GeoLab.
#             projeto: geometry - DCC - Unicamp.



DLIB    = $(GEOLAB_HOME)/lib/
DOBJ    = obj/
CFLAGS  = -I$(GUIDEHOME)/include -I$(OPENWINHOME)/include -PIC
LDFLAGS = -L$(GUIDEHOME)/lib -L$(OPENWINHOME)/lib \
          -lm -ll -lguide -lguidexv 
CC      = CC-3.0.1




OBJS=  \
		$(DOBJ)Arrow2D.o \
		$(DOBJ)PSPM.o \
		$(DOBJ)PSPM1_ui.o \
		$(DOBJ)animation_tools.o


$(DLIB)PSPM.so: $(OBJS)
	ld $(LDFLAGS) -assert pure-text -o $(DLIB)PSPM.so  $(OBJS)

$(DOBJ)Arrow2D.o: 	Arrow2D.C \
			Arrow2D.h \
			Coords2D.h \
			ExternalObj_id.h \
			List.h \
			Obj.h \
			Point2D.h \
			Segment2D.h \
			String.h \
			World.h \
			attributes.h \
			basic.h \
			global.h \
			handle.h \
			tools.h \
			utilities.h
	$(CC) $(CFLAGS) -c Arrow2D.C -o $(DOBJ)Arrow2D.o

$(DOBJ)PSPM.o: 	PSPM.C \
			Algorithm.h \
			Arrow2D.h \
			Circle.h \
			Coords2D.h \
			External.h \
			ExternalObj_id.h \
			ICONS/PSPM1.icon \
			Line2D.h \
			List.h \
			Obj.h \
			PSPM.h \
			PSPM1_ui.h \
			Point2D.h \
			Rectangle.h \
			Segment2D.h \
			Square.h \
			String.h \
			World.h \
			animation.h \
			animation_tools.h \
			attributes.h \
			basic.h \
			global.h \
			handle.h \
			objects.h \
			select.h \
			tools.h \
			trapsignal.h \
			utilities.h
	$(CC) $(CFLAGS) -c PSPM.C -o $(DOBJ)PSPM.o

$(DOBJ)PSPM1_ui.o: 	PSPM1_ui.C \
			PSPM1_ui.h
	$(CC) $(CFLAGS) -c PSPM1_ui.C -o $(DOBJ)PSPM1_ui.o

$(DOBJ)animation_tools.o: 	animation_tools.C \
			Algorithm.h \
			Arrow2D.h \
			Circle.h \
			Coords2D.h \
			External.h \
			ExternalObj_id.h \
			Line2D.h \
			List.h \
			Obj.h \
			Point2D.h \
			Rectangle.h \
			Segment2D.h \
			Square.h \
			String.h \
			World.h \
			animation.h \
			animation_tools.h \
			attributes.h \
			basic.h \
			global.h \
			handle.h \
			objects.h \
			tools.h \
			utilities.h
	$(CC) $(CFLAGS) -c animation_tools.C -o $(DOBJ)animation_tools.o

clean: 
	$(RM) $(DOBJ)* core *~
