# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Makefile to build the  files of IMAGE
# To compile all:
# 		make
# To clean the useless files: *.o 
#               make clean
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# CHANGE THE FOLLOWING SENTENCES ACCORDING TO YOUR SITE:
# Define the c++ compilator:
# ------------------------
CC = CC
#
# Compilation options:
# ----------------------
CFLAGS = -fast
#
AR=ar -rc
#If the ar command fails on your system, consult the ar manpage
#for your system.
# END OF CHANGES
#
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

GDDIR  = ../gd1.2

all :   libImage.a


libImage.a: Image.o GraphicUnit.o Point.o Line.o PointDraw.o Color.o PolyLine.o Box.o Circle.o Arc.o Text.o UText.o
	${AR}  libImage.a Image.o GraphicUnit.o Point.o Line.o PointDraw.o \
	       Color.o PolyLine.o Box.o Circle.o Arc.o Text.o UText.o


Image.o	: Image.cc Image.h
	${CC} -c  ${CFLAGS}  Image.cc -I. -I${GDDIR}

GraphicUnit.o	: GraphicUnit.cc GraphicUnit.h
	${CC} -c  ${CFLAGS}  GraphicUnit.cc   -I. -I${GDDIR}

Point.o	: Point.cc Point.h
	${CC} -c  ${CFLAGS}  Point.cc   -I. -I${GDDIR}

Line.o	: Line.cc Line.h
	${CC} -c  ${CFLAGS}  Line.cc   -I. -I${GDDIR}

PointDraw.o	: PointDraw.cc PointDraw.h
	${CC} -c  ${CFLAGS}  PointDraw.cc   -I. -I${GDDIR}

PolyLine.o	: PolyLine.cc PolyLine.h
	${CC} -c  ${CFLAGS}  PolyLine.cc   -I. -I${GDDIR}

Box.o	: Box.cc Box.h
	${CC} -c  ${CFLAGS}  Box.cc   -I. -I${GDDIR}

Circle.o	: Circle.cc Circle.h
	${CC} -c  ${CFLAGS}  Circle.cc   -I. -I${GDDIR}

Arc.o	: Arc.cc Arc.h
	${CC} -c  ${CFLAGS}  Arc.cc   -I. -I${GDDIR}

Color.o	: Color.cc Color.h
	${CC} -c  ${CFLAGS}  Color.cc   -I. -I${GDDIR}

Text.o	: Text.cc Text.h
	${CC} -c  ${CFLAGS}  Text.cc   -I. -I${GDDIR}

UText.o	: UText.cc UText.h
	${CC} -c  ${CFLAGS}  UText.cc   -I. -I${GDDIR}

clean :: 
	rm -f *.o

 
