head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


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

1.5
date	94.12.08.14.29.37;	author monica;	state Exp;
branches;
next	1.4;

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

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

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

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


desc
@@


1.6
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 
#-lcomplex 
#/usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o

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

#.C:
#	$(LINK.cc) -o $@@ $< $(LDLIBS)
#.C.o:
#	$(COMPILE.cc) $(OUTPUT_OPTION) $<
#.c:
#	$(LINK.cc) -o $@@ $< $(LDLIBS)
#.c.o:
#	$(COMPILE.cc) $(OUTPUT_OPTION) $<

# Testing:
#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} $<

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

foo%.o: foo%.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

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} ${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.5
log
@added 2.2 target
@
text
@d28 1
a28 1
IACCDIR = /cis/research/iac++/new
d57 1
a57 1
test%: test%.o 
d70 1
a70 1
	for x in test2??.c ; \
d77 1
a79 16
		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 test249.expected test250.expected test251.expected test252.expected; \
@


1.4
log
@cleaned it up
@
text
@a76 1

d79 16
@


1.3
log
@modified so that all valueset tests would be tested.
@
text
@d83 1
a83 1
			./$$y 1>$$y.out3 2>&1;       \
d85 3
a87 3
			if test -f $$y.out3;	\
			then diff $$y.expected $$y.out3 1> $$y.diff3 2>&1; \
				if test -s $$y.diff3;	\
d89 1
a89 1
				else rm $$y.diff3	;\
a92 10
#			cmp $$y.expected $$y.out; \

compare:
	for x in test2??.out; \
	do \
		echo $$x; \
		y=`basename $$x .out`; \
		diff ./$$x $$y.out2;             \
	done

@


1.2
log
@modified so that only test files with matching .expected files
are subject to compiling and running
@
text
@d79 1
a79 1
	for x in test2??.expected; \
@


1.1
log
@Initial revision
@
text
@d79 1
a79 1
	for x in test2??.c; \
d81 1
a81 1
			y=`basename $$x .c` ;     \
@
