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


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

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

$(DOBJ)Misc.o: 	Misc.C \
			Algorithm.h \
			Circle.h \
			Coords2D.h \
			External.h \
			ExternalObj_id.h \
			Line2D.h \
			List.h \
			Misc.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 \
			tools.h \
			utilities.h
	$(CC) $(CFLAGS) -c Misc.C -o $(DOBJ)Misc.o

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





