# Header para Makefile de modulos ligados dinamicamente ao Geolab
#
# Por:
#      Welson R. Jacometti
#

DLIB = $(GEOLAB_HOME)/lib/
DOBJ = obj/
CFLAGS = -I$(GUIDEHOME)/include -I$(OPENWINHOME)/include -PIC
LDFLAGS =
CC = CC-3.0.1

OBJS=  \
		$(DOBJ)Integer.o \
		$(DOBJ)Intersections.o \
		$(DOBJ)intersections.o

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

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

$(DOBJ)Intersections.o: 	Intersections.C \
			Algorithm.h \
			Coords2D.h \
			External.h \
			ExternalObj_id.h \
			Integer.h \
			Intersections.h \
			Line2D.h \
			List.h \
			Obj.h \
			Point2D.h \
			Ray2D.h \
			Segment2D.h \
			String.h \
			World.h \
			attributes.h \
			basic.h \
			global.h \
			handle.h \
			intersections.h \
			tools.h \
			utilities.h
	$(CC) $(CFLAGS) -c Intersections.C -o $(DOBJ)Intersections.o

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

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



