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


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

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

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

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

1.4
date	94.09.15.15.56.35;	author fjsoria;	state Exp;
branches;
next	1.3;

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

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

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


desc
@GNUmakefile for test_point directory
@


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}
LDDIRS= -L${IACCDIR}/lib
LDLIBS= -liac++ -lm 
LDFLAGS= ${LDDIRS} ${LDLIBS}

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

# Testing:
#LDLIBS= -L${TOP}/lib/ -liac++ -lm 
#INCS= -I${TOP}/include

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

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

test%.o: test%.c test.h
	${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.expected $$y.out 1> $$y.diff 2>&1; \
				if test -s $$y.diff;	\
				then echo "DIFFs on TEST $$y" ;	\
				else rm $$y.diff	;\
				fi;	\
			fi;	\
		done

test2.2:
	for x in test065.expected test066.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.expected $$y.out 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`; \
		cmp ./$$x $$y.out;             \
	done

diffs:
	for x in test???.diff1; \
	do \
		echo $$x;	\
		more $$x;             \
	done


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

	

# 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
@


1.6
log
@modified so that only those tests with .expected files would
be compiled and run
@
text
@d80 16
@


1.5
log
@added clean and support for g++
@
text
@d65 1
a65 1
	for x in test???.c; \
d67 1
a67 1
			y=`basename $$x .c` ;     \
@


1.4
log
@monica made me do this
@
text
@d6 1
a6 1
TOP= /cis/homes/thoth/work/iac++
d17 1
a17 1
#include /cis/vision/src/iac++/src/gnumake.templ
d28 1
a28 1
IACCDIR = /cis/vision7/fjsoria/iac++
a31 1
CCC=/cis/vision7/fjsoria/gcc-bunker/bin/g++ -pg
a36 1
#-L/cis/vision7/fjsoria/gcc-bunker/lib -lg++
d59 1
a59 1
			gnumake $$y ;            \
d68 1
a68 1
			gnumake $$y ;             \
d93 6
@


1.3
log
@*** empty log message ***
@
text
@d28 1
a28 1
IACCDIR = /cis/research/iac++/new
d32 1
a32 1
CCC=/local/bin/CC -pg
d37 3
a39 2
LDLIBS= -liac++ -lcomplex -lm /usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
LDFLAGS= ${LDDIRS} # ${LDLIBS}
d42 1
a42 1
LINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
d45 1
a45 1
#LDLIBS= -L${TOP}/lib/ -liac++ -lcomplex -lm /usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
d52 1
a52 1
	${LINK.cc} -o $@@ $< ${LDLIBS}
d62 1
a62 1
			$$y 1>$$y.expected 2>&1; \
d71 1
a71 1
			$$y 1>$$y.out 2>&1;       \
d86 1
a86 1
		cmp $$x $$y.out;             \
@


1.2
log
@updated to link to /cis/research/iac++/new
@
text
@d70 1
a70 1
			$$y 1>$$y.out1 2>&1;       \
d72 3
a74 3
			if test -f $$y.out1;	\
			then diff $$y.out $$y.out1 1> $$y.diff1 2>&1; \
				if test -s $$y.diff1;	\
d76 1
a76 1
				else rm $$y.diff1	;\
@


1.1
log
@Initial revision
@
text
@d28 1
a28 1
IACCDIR = /cis/homes/thoth/work/iac++
@
