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


1.7
date	94.10.14.04.17.43;	author rjj;	state Exp;
branches;
next	1.6;

1.6
date	94.10.14.04.13.25;	author rjj;	state Exp;
branches;
next	1.5;

1.5
date	94.09.03.19.59.01;	author rjj;	state Exp;
branches;
next	1.4;

1.4
date	94.08.29.21.28.30;	author rjj;	state Exp;
branches;
next	1.3;

1.3
date	94.08.27.06.44.39;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.06.23.04.12.40;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.06.22.17.17.27;	author rjj;	state Exp;
branches;
next	;


desc
@Initial version of the Otsu algorithm, with debug msgs intact.
@


1.7
log
@Corrected spelling of stripped.
@
text
@# GNUmakefile          Section: 3.7
# Threshold Selection by Maximizing Between Class Variance
#      Copyright 1994, Center for Computer Vision and Visualization,
#      University of Florida.  All rights reserved.
#
# See comments in  gnumake.iah for description of symbols.

#######################################################################
# Modify the following symbols to control compilation
#######################################################################

BLASTABLE_PTFILES = IA_  ___ls  _normalized_histogram
CLOSUREOBJS       = closure-otsu.o otsu.o

HEADERS = otsu.h  otsu-image.h
LOBJS   = otsu-image.o

SOURCES	= otsu.h otsu.c  otsu-image.h otsu-image.c  test-otsu.c \
	  closure-otsu.c
TESTS	= test-otsu

ARL =

EXTRAINCLUDES =
CPPFLAGS      =
OTHERLIBS     =
OUTPUT_OPTION =

TARGET_ARCH =
XTRAFLAGS   =
XTRACCFLAGS =

# Make this nothing if you do not want programs stripped.
STRIPPROGRAMS = anystring-means-strip--no-string-means-do-not-strip

#######################################################################
include	../../gnumake.iah
#######################################################################

#######################################################################
#####	User program dependencies and rules follow
#######################################################################

otsu.srcs:	otsu.h  otsu.c

otsu-image.o:	otsu-image.h otsu-image.c

closure-otsu.o:	closure-otsu.c  otsu.srcs  otsu-image.o

ifeq (${LIBTEST},)
test-otsu.o:	test-otsu.c  otsu-image.o  otsu.srcs

test-otsu:	test-otsu.o
	${LINK.cc} -o $@@ $@@.o otsu-image.o ${LDLIBS}
	strip $@@

else
test-otsu.o:	test-otsu.c

endif
@


1.6
log
@Added algorithm to standard header.  Comment and style changes.
@
text
@d33 1
a33 1
# Make this nothing if you do not want programs striped.
@


1.5
log
@Added  _normalized_histogram  prefix to list of blastable files,
  this is necessary because the definition of histogram is
  utilized by the otsu algorithm, but the iah library is not
  available durning the closure build process.
@
text
@d2 1
a7 5
# NOTE: The  closure  target requires access to histogram.h
#      I will provide this by include a histogram.h  target
#      that will create a link to ../../include/histogram.h
#      this will be claimed as a 'source'

d19 1
a19 1
	  closure-otsu.c  histogram.h
d44 1
a44 3
# This is only for the closure target
histogram.h:
	ln ../../include/histogram.h
d46 1
a46 1
closure-otsu.o:	closure-otsu.c  histogram.h
d48 1
a48 1
otsu-image.o:	otsu-image.h otsu-image.c
d50 2
a51 1
otsu.o:	otsu.h otsu.c  otsu-image.o
d53 2
a54 2
test-otsu:	test-otsu.o  otsu-image.o  otsu.o
	${LINK.cc} -o $@@ $@@.o otsu-image.o otsu.o ${LDLIBS}
d56 5
@


1.4
log
@Corrected comment, added otsu-image.o to otsu.o dependency,
  made test-otsu target link with local versions of the objects.
@
text
@d16 1
a16 1
BLASTABLE_PTFILES = IA_  ___ls
@


1.3
log
@Removed TOP, general cleanup.
Added link to ../../include/histogram.h to support that dependency
  when building  closure target.
@
text
@d8 1
a8 1
#      I will provide this by include a histogram.[ch] target
d50 1
a50 1
	ln ../../include/histogram.h histogram.h
d54 1
a54 1
otsu.o:	otsu.h otsu.c
d56 1
a56 1
otsu-image.o:	otsu-image.h otsu-image.c
d58 3
a60 1
test-otsu:	test-otsu.c otsu-image.o otsu.c otsu.h
@


1.2
log
@First version of Otsu without debug stmts.  Seems to work, however the
  closure still had problems, it generates spurious iac++ instantiations.
@
text
@d1 4
a4 2
# Sample GNUMakefile to be used to compile the IAH algorithms.
# Initial revision
d7 5
a15 4
TOP = ${HOME}/iacc/iah-src

IACCVERSION = iac++

d17 1
a17 1
CLOSUREOBJS       = closure-otsu.o
d22 3
a24 1
SIMPLETESTS =
a39 1

d41 1
a41 3

include ${TOP}/gnumake.iah

a43 2


d48 3
a50 5
otsu-image.o:	otsu-image.h otsu-image.c

#test-otsu:   test-otsu.o otsu-image.o otsu.c otus.h
#	$(LINK.cc) -o $@@ test-otsu.o otsu-image.o $(LDLIBS)
#	strip $@@
d52 1
a52 1
HANDBOOK =
d54 1
a54 1
TESTS = test-otsu
d56 1
a56 2

tests: $(TESTS)
d58 1
@


1.1
log
@Initial revision
@
text
@d13 2
a14 2
BLASTABLE_PTFILES =
CLOSUREOBJS       =
d17 1
a17 1
LOBJS   = 
d48 1
d50 3
a52 3
test-otsu:   test-otsu.o otsu-image.o otsu.c
	$(LINK.cc) -o $@@ test-otsu.o otsu-image.o $(LDLIBS)
	strip $@@
@
