# 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)GraphicDemo.o \
		$(DOBJ)GraphicDemo_ui.o \
		$(DOBJ)XString.o

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

$(DOBJ)GraphicDemo.o: 	GraphicDemo.C \
			Algorithm.h \
			Coords2D.h \
			External.h \
			ExternalObj_id.h \
			GraphicDemo.h \
			GraphicDemo_ui.h \
			ICONS/movie.icon \
			List.h \
			Obj.h \
			Point2D.h \
			Segment2D.h \
			String.h \
			World.h \
			XString.h \
			attributes.h \
			basic.h \
			geolab_ui.h \
			global.h \
			handle.h \
			tools.h \
			utilities.h
	$(CC) $(CFLAGS) -c GraphicDemo.C -o $(DOBJ)GraphicDemo.o

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

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

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