# 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)Boolean.o \
		$(DOBJ)Ray2D_test.o

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

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

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

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


