# $Log$
#
#####	Set up necessary directories, libraries, etc. for
#####	using image algebra C++ library code

IACCDIR = /cis/vision/src/iac++
IACCLIBNAME = iac++

IACCINCLUDES = -I${IACCDIR}/include
IACCLIB = ${IACCDIR}/lib/lib${IACCLIBNAME}.a

CCC=/local/bin/CC -pg
INCLUDEFLAGS= -I. ${IACCINCLUDES}
CDEBUGFLAGS=-g
CCFLAGS= ${CDEBUGFLAGS} ${INCLUDEFLAGS}

LDLIBS = -l${IACCLIBNAME} -lcomplex -lm
LDDIRS = -L${IACCDIR}/lib
LDFLAGS = ${LDDIRS} ${LDLIBS}

LINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDDIRS) $(TARGET_ARCH)

COMPILE.cc=$(CCC) $(CCFLAGS) -c

.c:
	$(LINK.cc) -o $@ $< $(LDLIBS)
	strip $@

.c.o:
	$(COMPILE.cc) $(OUTPUT_OPTION) $<

#####	User program dependencies and rules follow

# Use the following approach when you need to specify the .o files for a target
#
# yourprogram: yourfile1.o yourfile2.o
#	$(LINK.cc) -o yourprogram yourfile1.o yourfile2.o $(LDLIBS)
