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


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

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

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

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

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

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


desc
@gnumake all
  to compile all support and iah algorithms provided by this directory
  tree.
@


1.6
log
@Added support to print source files out in a batch.
@
text
@# GNUmakefile          Section: All sections
#      Copyright 1994, Center for Computer Vision and Visualization,
#      University of Florida.  All rights reserved.
#
# GNUmakefile for creating the iah library.
# Each directory, except for support directories, corresponds to a
#   chapter in the IAH.  Each chapter has several sections, each
#   of which describes a separate algorithm.
# Target  all  which should be the first target in the make file
#   will invoke a make in each of the chapter directories.
#   This will invoke a make in each algorithm directory, to build
#   the iah library and headers.
#
# Modify the TOP define below to be the root of the iah directory
#   tree.  It is assumed that include/  and  lib/  should be
#   built below this root.

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

# The support directories should be made first.

SUPPORTDIRS = support


# These chapters include directories that are used by
#   other chapters, hence they should be made after SUPPORTDIRS,
#   but before ALLOTHERCHAPTERS

SUPPORTCHAPTERS = statistical


ALLOTHERCHAPTERS = \
	image-enhancement \
	thresholding \
	thinning-skeletonizing \
	morphological-transforms \
	edge-detection \
	edge-thinning-boundary-finding \
	linear-transforms \
	pattern-matching-shape-detection \
	connected-component \
	image-descriptors \
	neural-networks \
	cellular-automata


ALLDIRS = ${SUPPORTDIRS} ${SUPPORTCHAPTERS} ${ALLOTHERCHAPTERS}

# The  all  target simply calls gnumake in each subdirectory

all: gnumake.iah  puresupport supportchapters allotherchapters


# Force the gnumake.iah to be the most current
${ALLDIRS}:	gnumake.iah  gnumake.iah-chp


clean:	${ALLDIRS}
	for subdir in ${ALLDIRS} ; \
	do  (cd $${subdir}; ${MAKE} clean); done

spotless:	${ALLDIRS}
	for subdir in ${ALLDIRS} ; \
	do  (cd $${subdir}; ${MAKE} spotless); done


# This rule recursively ensures that the most current GNUmakefile
#   is available in each directory.
# The  all  target should, perhaps, be dependent on this rule.

co-gnu: gnumake.iah-chp
	for subdir in ${ALLDIRS} ; \
	do  (cd $${subdir}; \
		if [ ! -w GNUmakefile ] ; then co GNUmakefile; fi; \
		${MAKE} co-gnu); done

print-srcs: GNUmakefile gnumake.iah gnumake.iah-chp
	enscript -2rG GNUmakefile gnumake.iah gnumake.iah-chp
	for subdir in ${ALLDIRS} ; \
	do  (cd $${subdir}; ${MAKE} print-srcs); done


# Make the supporting algorithms...
puresupport: ${SUPPORTDIRS}
	for subdir in ${SUPPORTDIRS} ; \
	do  (cd $${subdir}; ${MAKE}); done

# Make the supporting chapters, used by other algorithms
supportchapters: ${SUPPORTCHAPTERS}
	for subdir in ${SUPPORTCHAPTERS} ; \
	do  (cd $${subdir}; ${MAKE}); done

# Make all other chapters
allotherchapters: ${ALLOTHERCHAPTERS}
	for subdir in ${ALLOTHERCHAPTERS} ; \
	do  (cd $${subdir}; ${MAKE}); done


# These targets have been added for testing the recursive make of
#   individual directories.  However, since directories actually
#   exist with the name I *want* the target to be, e.g. support
#   each target is named  directory-dir, e.g. support-dir

support-dir:
	cd support; ${MAKE} all

statistical-dir:
	cd statistical; ${MAKE} all

image-enhancement-dir:
	cd image-enhancement; ${MAKE} all

thresholding-dir:
	cd thresholding; ${MAKE} all

thinning-skeletonizing-dir:
	cd thinning-skeletonizing; ${MAKE} all

morphological-transforms-dir:
	cd morphological-transforms; ${MAKE} all

edge-detection-dir:
	cd edge-detection; ${MAKE} all

edge-thinning-boundary-finding-dir:
	cd edge-thinning-boundary-finding; ${MAKE} all

linear-transforms-dir:
	cd linear-transforms; ${MAKE} all

pattern-matching-shape-detection-dir:
	cd pattern-matching-shape-detection; ${MAKE} all

connected-component-dir:
	cd connected-component; ${MAKE} all

image-descriptors-dir:
	cd image-descriptors; ${MAKE} all

neural-networks-dir:
	cd neural-networks; ${MAKE} all

cellular-automata-dir:
	cd cellular-automata; ${MAKE} all
@


1.5
log
@Added support to force check out of GNUmakefiles.
@
text
@d79 5
@


1.4
log
@Force co gnumake.iah  whenever gnumake is run here.
@
text
@d53 1
a53 1
all: puresupport supportchapters allotherchapters
d55 1
d57 1
a57 1
${ALLDIRS}:	gnumake.iah
d67 12
@


1.3
log
@Fixed AllOTHER... to be ALLOTHER...
@
text
@d55 5
a59 1
clean:
d63 1
a63 1
spotless:
@


1.2
log
@Cleaned up to better support global gnumake of the IAH library.
@
text
@d49 1
a49 1
ALLDIRS = ${SUPPORTDIRS} ${SUPPORTCHAPTERS} ${AllOTHERCHAPTERS}
@


1.1
log
@Initial revision
@
text
@d1 4
a21 3
#TOP = /cis/homes/rjj/iacc/iah-src
TOP = `pwd`

d31 1
a31 2
SUPPORTCHAPTERS = \
	statistical \
d46 1
a46 1
	cellular-automata \
a50 1

d57 1
a57 4
	do \
		cd $${subdir}; ${MAKE} clean  TOP=${TOP}; \
		cd .. ; \
	done
d61 1
a61 5
	do \
		cd $${subdir}; ${MAKE} spotless  TOP=${TOP}; \
		cd .. ; \
	done

d63 1
d66 1
a66 4
	do \
		cd $${subdir}; ${MAKE} all  TOP=${TOP}; \
		cd .. ; \
	done
d68 1
d71 1
a71 4
	do \
		cd $${subdir}; ${MAKE} all  TOP=${TOP}; \
		cd .. ; \
	done
d73 1
d76 1
a76 4
	do \
		cd $${subdir}; ${MAKE} all  TOP=${TOP}; \
		cd .. ; \
	done
d85 1
a85 1
	cd support; ${MAKE} all  TOP=${TOP}
d88 1
a88 1
	cd statistical; ${MAKE} all  TOP=${TOP}
d91 1
a91 1
	cd image-enhancement; ${MAKE} all  TOP=${TOP}
d94 1
a94 1
	cd thresholding; ${MAKE} all  TOP=${TOP}
d97 1
a97 1
	cd thinning-skeletonizing; ${MAKE} all  TOP=${TOP}
d100 1
a100 1
	cd morphological-transforms; ${MAKE} all  TOP=${TOP}
d103 1
a103 1
	cd edge-detection; ${MAKE} all  TOP=${TOP}
d106 1
a106 1
	cd edge-thinning-boundary-finding; ${MAKE} all  TOP=${TOP}
d109 1
a109 1
	cd linear-transforms; ${MAKE} all  TOP=${TOP}
d112 1
a112 1
	cd pattern-matching-shape-detection; ${MAKE} all  TOP=${TOP}
d115 1
a115 1
	cd connected-component; ${MAKE} all  TOP=${TOP}
d118 1
a118 1
	cd image-descriptors; ${MAKE} all  TOP=${TOP}
d121 1
a121 1
	cd neural-networks; ${MAKE} all  TOP=${TOP}
d124 1
a124 1
	cd cellular-automata; ${MAKE} all  TOP=${TOP}
@
