head	1.8;
access
	monica
	thoth
	fjsoria;
symbols;
locks
	monica:1.8; strict;
comment	@// @;


1.8
date	95.01.09.17.39.16;	author monica;	state Exp;
branches;
next	1.7;

1.7
date	94.12.08.14.33.55;	author monica;	state Exp;
branches;
next	1.6;

1.6
date	94.11.10.18.46.53;	author monica;	state Exp;
branches;
next	1.5;

1.5
date	94.11.10.18.44.24;	author fjsoria;	state Exp;
branches;
next	1.4;

1.4
date	94.11.10.18.29.18;	author monica;	state Exp;
branches;
next	1.3;

1.3
date	94.11.02.19.15.23;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.10.06.01.45.52;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	94.08.11.17.14.29;	author monica;	state Exp;
branches;
next	;


desc
@@


1.8
log
@*** empty log message ***
@
text
@#
# this is a GNUmakefile.  It must be processed with GNU make.
#

#TARGET_ARCH=
TOP= ../..

# you should define the make variables LOBJS and HEADERS before the
# include directive.  LOBJS is a list of Library OBJects that belong
# in libiac++.a.  HEADERS is a list of public header files that belong
# in iac++/include.

#LOBJS= ValueSet.o
#HEADERS= ValueSet.h
#REGTESTS= ${basename ${wildcard test2??.c}}

include ${TOP}/src/gnumake.templ

#all: ${REGTESTS}

#WORKLIB= ${TOP}/lib/libiacc++.a

#lib: ${LOBJS}
#	ar r ${WORKLIB} ${LOBJS}
#	ranlib ${WORKLIB}
#	touch lib

IACCDIR = /cis/research/iac++/expbuilds/test

IACCINCLUDES = -I${IACCDIR}/include

INCLUDEFLAGS= -I. ${IACCINCLUDES}
CDEBUGFLAGS=-g
CCFLAGS= ${CDEBUGFLAGS} ${INCLUDEFLAGS} 
LDLIBS= -L${IACCDIR}/lib -liac++ -lm 


COMPILE.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
LINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(TARGET_ARCH)

# Testing:
#LDLIBS= -L${TOP}/lib/ -liac++ -lcomplex -lm /usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
#INCS= -I${TOP}/include

#test%.c: test.h
#	${LINK.cc} -o $@@ $< ${LDLIBS}

test%: test%.o 
	${LINK.cc} -o $@@ $< ${LDLIBS}

test%.o: test%.c test.h
	${COMPILE.cc} ${OUTPUT_OPTION} $<

generic%.o: generic%.c
	${COMPILE.cc} ${OUTPUT_OPTION} $<

point%.o:	point%.c
	${COMPILE.cc} ${OUTPUT_OPTION} $<

create:
	for x in test???.c ; \
		do \
			y=`basename $$x .c` ;    \
			${MAKE} $$y ;            \
			./$$y 1>$$y.expected 2>&1; \
			rm -f $$y ;              \
		done

test:
	for x in test???.expected; \
		do \
			y=`basename $$x .expected` ;     \
			${MAKE} $$y ;             \
			./$$y 1>$$y.out 2>&1;       \
			rm -f $$y ;		  \
			if test -f $$y.out;	\
			then diff $$y.out $$y.expected 1> $$y.diff 2>&1; \
				if test -s $$y.diff;	\
				then echo "DIFFs on TEST $$y" ;	\
				else rm $$y.diff	;\
				fi;	\
			fi;	\
		done

compare:
	for x in test???.expected; \
	do \
		y=`basename $$x .expected`; \
		diff ./$$x $$y.out;            \
	done

clean:
	rm -f *.o *.out *~ *.diff

T2OBJS= test002.o gen-test.o
test002: ${T2OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T2OBJS} ${LDLIBS}

T4OBJS= test004.o gen-test.o pt-util.o
test004: ${T4OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T4OBJS} ${LDLIBS}

T5OBJS= test005.o gen-test.o pt-util.o
test005: ${T5OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T5OBJS} ${LDLIBS}

T7OBJS= test007.o gen-test.o ps-util.o pt-util.o
test007: ${T7OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T7OBJS} ${LDLIBS}

T8OBJS= test008.o ps-util.o pt-util.o
test008: ${T8OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T8OBJS} ${LDLIBS}

T11OBJS= test011.o gen-test.o
test011: ${T11OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T11OBJS} ${LDLIBS}

T13OBJS= test013.o gen-test.o
test013: ${T13OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T13OBJS} ${LDLIBS}

T131OBJS= test131.o gen-test.o ps-util.o pt-util.o
test131: ${T131OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T131OBJS} ${LDLIBS}

T200OBJS= test200.o gen-test.o pt-util.o
test200: ${T200OBJS}
	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T200OBJS} ${LDLIBS}

# sample program target:
# test1 only needs test1.o and the library.  The defaults will
# build this without a rule
#
#all: test1 test2
#
#T2OBJS= test2.o frob.o
#test2: ${T2OBJS}
#	${CCC} -o $@@ ${CCFLAGS} ${CPPFLAGS} ${LDFLAGS} ${T2OBJS} ${LDLIBS}

# the gnumake.templ has a few targets that everyone will use
#
# all: install the header files, build the LOBJS and add them
# to the library
#
# headers-force: force the header files to be copied into include
#
# headers: used by all to install the header files when changed
#
# lib: used by all to add LOBJS to the libwork.a.  libwork.a is
# your own personal copy of the libiac++.a that only contains the
# parts you are working on.
#
# reallib: this puts your LOBJS into the real libiac++ so that
# everyone else can use them.  Make sure they work first.
#
# clean:: removes all .o and ~ files.  You may define additional
# clean targets to remove other files that you may have generated.
#
# spotless:: the same as clean, but more so.  It should remove
# binaries.  You should define additional spotless targets that
# remove your test binaries and other files that aren't deleted
# by clean.



@


1.7
log
@added 2.2 target
@
text
@d28 1
a28 1
IACCDIR = /cis/research/iac++/new
a84 16
test2.2:
	for x in test007.expected test132.expected; \
		do \
			y=`basename $$x .expected` ;     \
			${MAKE} $$y ;             \
			./$$y 1>$$y.out 2>&1;       \
			rm -f $$y ;		  \
			if test -f $$y.out;	\
			then diff $$y.out $$y.expected 1> $$y.diff 2>&1; \
				if test -s $$y.diff;	\
				then echo "DIFFs on TEST $$y" ;	\
				else rm $$y.diff	;\
				fi;	\
			fi;	\
		done

d122 4
@


1.6
log
@modified so that only those tests with a matching .expected file
will be compiled and run
@
text
@d85 16
@


1.5
log
@fixe monicas screw ups
@
text
@d70 1
a70 1
	for x in test???.c; \
d72 1
a72 1
			y=`basename $$x .c` ;     \
@


1.4
log
@*** empty log message ***
@
text
@d6 1
a6 1
TOP= /cis/homes/thoth/work/iac++
d17 1
a17 1
#include /cis/vision/src/iac++/src/gnumake.templ
a31 1
CCC=/local/bin/CC -pg
d34 2
a35 4
CCFLAGS= ${CDEBUGFLAGS} ${INCLUDEFLAGS}
LDDIRS= -L${IACCDIR}/lib
LDLIBS= -liac++ -lcomplex -lm /usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
LDFLAGS= ${LDDIRS} # ${LDLIBS}
d37 1
d39 1
a39 1
LINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
d64 2
a65 2
			gnumake $$y ;            \
			$$y 1>$$y.expected 2>&1; \
d73 2
a74 2
			gnumake $$y ;             \
			$$y 1>$$y.out 2>&1;       \
d89 1
a89 1
		cmp $$x $$y.out;             \
d92 2
a93 6
diffs:
	for x in test???.diff1; \
	do \
		echo $$x;	\
		more $$x;             \
	done
@


1.3
log
@updated to reflect "new" pointer and explicit dependencies for some files
@
text
@d129 4
@


1.2
log
@fixed for DOS filename conventions
@
text
@d5 2
a6 2
TARGET_ARCH=
TOP=../..
d13 3
a15 5
SIMPLETESTS= test003 test006 test012 test014 test015 test016
REGTESTS= ${basename ${wildcard test1??.C}}
UTTESTS = test007 test008 test009 test010 test011 test013
TESTS= ${SIMPLETESTS} test002 test004 test005 ${UTTESTS} \
	${REGTESTS} test200
d17 1
a17 2
OTHERLIBS=/usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
#EXTRAINCLUDES = -I../ia # for the Array
d19 1
a19 1
XTRACCFLAGS=
d21 1
a21 1
include ${TOP}/src/gnumake.templ
d23 4
a26 2
lib: ${WORKLIB}
	touch lib
d28 1
d30 1
d32 7
a38 2
test002: test002.o generic-tests.o lib
	${LINK.cc} -o $@@ test002.o generic-tests.o ${LDLIBS}
d40 2
a41 3
OBJS004= test004.o generic-tests.o point-utils.o
test004: ${OBJS004} lib
	${LINK.cc} -o $@@ ${OBJS004} ${LDLIBS}
d43 3
a45 2
test005: test005.o generic-tests.o lib
	${LINK.cc} -o $@@ test005.o generic-tests.o ${LDLIBS}
d47 2
a48 3
#OBJS014 = test014.o ImageDisplayProtocol.o
#test014: ${OBJS014} lib
#	${LINK.cc} -o $@@ ${OBJS014} ${LDLIBS}
d50 1
a50 10
OBJS200= test200.o generic-tests.o point-utils.o
test200: ${OBJS200} lib
	${LINK.cc} -o $@@ ${OBJS200} ${LDLIBS}


UTOBJS = generic-tests.o point-utils.o pointset-utils.o
${UTTESTS}: %: %.o ${UTOBJS} lib
	${LINK.cc} -o $@@ $@@.o ${UTOBJS} ${LDLIBS}

test1%: test1%.o lib
d53 2
a54 2
.C.s:
	${COMPILE.cc} -S $<
d56 2
d59 2
a60 1
test1%.C: test.h
d62 2
a63 5
test1%.o: test1%.C test.h


create: 
	for x in test1??.C ; \
d65 1
a65 1
			y=`basename $$x .C` ;    \
d71 2
a72 2
test: 
	for x in test1??.C ; \
d74 11
a84 5
			y=`basename $$x .C` ;    \
			gnumake $$y ;            \
			$$y 1>$$y.out 2>&1;      \
                        cmp $$y.expected $$y.out;\
			rm -f $$y ;              \
d87 76
d164 1
a164 86
compare:
	for x in test1??.expected; \
         do \
             y=`basename $$x .expected`; \
             cmp $$x $$y.out;            \
         done

clean::
	rm -f test???.o ptrepository/*.o


# dependencies
generic-tests.o : generic-tests.c ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h 
point-utils.o : point-utils.c ../../include/IntPoint.h ../../include/ia.h ../../include/Point.h \
  pt-util.h 
pointset-utils.o : pointset-utils.c ps-util.h ../../include/IntPointSet.h \
  ../../include/Set.h ../../include/IntPoint.h ../../include/ia.h ../../include/Point.h \
  ../../include/BasePS.h ../../include/SetStructure.h ../../include/Array.h ../../include/with-ia-pointset.h \
  ../../include/PredicatePS.h pt-util.h 
test002.o : test002.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h 
test003.o : test003.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h 
test004.o : test004.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h ../../include/with-ia-pointset.h \
  gen-test.h pt-util.h 
test005.o : test005.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h 
test006.o : test006.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h 
test008.o : test008.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h \
  pt-util.h ps-util.h ../../include/PredicatePS.h tutil.h 
test009.o : test009.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h \
  pt-util.h ps-util.h ../../include/PredicatePS.h tutil.h 
test010.o : test010.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h \
  pt-util.h ps-util.h ../../include/PredicatePS.h tutil.h 
test011.o : test011.c devfrag.h ../../include/IntPoint.h ../../include/ia.h \
  ../../include/Point.h ../../include/IntPointSet.h ../../include/Set.h ../../include/BasePS.h \
  ../../include/SetStructure.h ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h \
  ../../include/FloatPointSet.h ../../include/FloatPoint.h gen-test.h ../../include/with-ia-pointset.h \
  pt-util.h ps-util.h ../../include/PredicatePS.h tutil.h 
test012.o : test012.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h ../../include/FloatPointSet.h \
  ../../include/FloatPoint.h ../../include/with-ia-pointset.h 
test013.o : test013.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h gen-test.h ../../include/with-ia-pointset.h ../../include/FloatPointSet.h \
  ../../include/FloatPoint.h 
test014.o : test014.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h ../../include/FloatPointSet.h \
  ../../include/FloatPoint.h ../../include/ImageDisplayProtocol.h tutil.h ../../include/with-ia-pointset.h 
test015.o : test015.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h ../../include/FloatPointSet.h \
  ../../include/FloatPoint.h ../../include/ImageDisplayProtocol.h tutil.h ../../include/with-ia-pointset.h 
test016.o : test016.c ../../include/IntPointSet.h ../../include/Set.h ../../include/IntPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/BasePS.h ../../include/SetStructure.h \
  ../../include/Array.h ../../include/IPSIter.h ../../include/BaseIPSIter.h ../../include/FloatPointSet.h \
  ../../include/FloatPoint.h ../../include/ImageDisplayProtocol.h tutil.h ../../include/with-ia-pointset.h 
test200.o : test200.c ../../include/FloatPointSet.h ../../include/Set.h ../../include/FloatPoint.h \
  ../../include/ia.h ../../include/Point.h ../../include/IntPoint.h ../../include/BasePS.h \
  pt-util.h gen-test.h ../../include/with-ia-pointset.h ../../include/IntPointSet.h \
  ../../include/SetStructure.h ../../include/Array.h 
@


1.1
log
@Initial revision
@
text
@d101 1
a101 1
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h 
d103 2
a104 2
  point-utils.h 
pointset-utils.o : pointset-utils.c pointset-utils.h ../../include/IntPointSet.h \
d107 2
a108 2
  ../../include/PredicatePS.h point-utils.h 
test002.o : test002.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d111 2
a112 2
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h 
test003.o : test003.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d116 1
a116 1
test004.o : test004.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d120 2
a121 2
  generic-tests.h point-utils.h 
test005.o : test005.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d124 1
a124 1
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h 
d128 1
a128 1
test008.o : test008.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d131 3
a133 3
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h \
  point-utils.h pointset-utils.h ../../include/PredicatePS.h tutil.h 
test009.o : test009.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d136 3
a138 3
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h \
  point-utils.h pointset-utils.h ../../include/PredicatePS.h tutil.h 
test010.o : test010.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d141 3
a143 3
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h \
  point-utils.h pointset-utils.h ../../include/PredicatePS.h tutil.h 
test011.o : test011.c dev-frags.h ../../include/IntPoint.h ../../include/ia.h \
d146 2
a147 2
  ../../include/FloatPointSet.h ../../include/FloatPoint.h generic-tests.h ../../include/with-ia-pointset.h \
  point-utils.h pointset-utils.h ../../include/PredicatePS.h tutil.h 
d154 1
a154 1
  ../../include/Array.h generic-tests.h ../../include/with-ia-pointset.h ../../include/FloatPointSet.h \
d170 1
a170 1
  point-utils.h generic-tests.h ../../include/with-ia-pointset.h ../../include/IntPointSet.h \
@
