#define DevelopmentMode
#undef IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

LOCAL_LIBRARIES = 
INCLUDES = -I. 

#if defined (sun) || defined (sparc) || defined(SunArchitecture)
#if OSMajorVersion < 5
#undef HasSunOSSharedLibraries
INCLUDES = -I. 
CC=acc
#else
#ifndef SVR4
#define SVR4
#endif
INCLUDES = -I. 
SHLIBLDFLAGS = -G
CC=cc
#endif
#endif 

#if defined (convex) || defined(ConvexArchitecture)
INCLUDES = -I. 
DEFINES=-Dconvex
#endif

#if defined (stardent) || defined (titan) || defined(StardentArchitecture)
#ifndef SYSV
#define SYSV
#endif
CC=cc -43
INCLUDES = -I. 
STD_DEFINES=
DEFINES=-DNO_STDLIB
#endif

#include <../../config/skeleton.cf>

SUBDIRS = 
DEPLIBS = libgems.a
SYSLIBS = 
LIBRARY = libgems.a
CDEBUGFLAGS = -O
AR = ar rv
PRIVLIBDIR = $(HOME)/usr/lib/$(ARCH)

OBJECTS =	PntOnLine.o ViewTrans.o AAPolyScan.o Albers.o \
		Interleave.o BoundSphere.o BoxSphere.o CircleRect.o \
		ConcaveScan.o Roots3And4.o Dissolve.o DigitalLine.o \
		FastJitter.o FixedTrig.o HSLtoRGB.o HypotApprox.o LineEdge.o \
		MatrixInvert.o MatrixPost.o Median.o PixelInteger.o \
		TriPoints.o Quaternions.o RGBTo4Bits.o RayBox.o \
		SeedFill.o SquareRoot.o DoubleLine.o TransBox.o GGVecLib.o

SRCS = 		PntOnLine.c ViewTrans.c AAPolyScan.c Albers.c \
		Interleave.c BoundSphere.c BoxSphere.c CircleRect.c \
		ConcaveScan.c Roots3And4.c Dissolve.c DigitalLine.c \
		FastJitter.c FixedTrig.c HSLtoRGB.c HypotApprox.c LineEdge.c \
		MatrixInvert.c MatrixPost.c Median.c PixelInteger.c \
		TriPoints.c Quaternions.c RGBTo4Bits.c RayBox.c \
		SeedFill.c SquareRoot.c DoubleLine.c TransBox.c GGVecLib.c


#ifndef DevelopmentMode
SetPrecious($(LIBRARY))
LibraryFromSrcTarget(gems, $(SRCS))
InstallLibrary(gems,$(PRIVLIBDIR))
#ifdef HasSunOSSharedLibraries
SharedLibraryTarget(gems,1,$(OBJECTS),.,.)
InstallSharedLibrary(gems,1,$(PRIVLIBDIR))
#endif
#else
SetPrecious($(PRIVLIBDIR)/$(LIBRARY))
RemoteLibraryFromSrcTarget(gems, $(SRCS))
#endif
DependTarget()
SoftCleanTarget()

#SoftCleanSubdirs( $(SUBDIRS) )
SoftCleanTarget()

