# Last edited on 1999-12-22 21:04:38 by hcgl

# Current working set
WORKSET = \
  libm3pz \
  PZDrawCandGrids \
  PZDrawCands \
  PZPlotMatchCost \
  PZMapCands \
  PZRefineCands \
  PZCompCands

# Libraries
LIBS = \
  libm3quickio \
  libm3pz

# Images and contours
PKGA = \
  PZSplit \
  PZBoundary \
  PZMapChain \
  PZFilter \
  PZSpectrum \
  PZDraw \
  PZDrawFiltering \
  PZComputeVelAcc \
  PZComputeCurvature \
  PZCurvHistogram \
  PZEncodeCurvature
  
# Segments 
PKGB = \
  PZUpdateSegs \
  PZMapSegs \
  PZDrawSegs \
  PZGetStraightSegs \
  PZCurvHistogram \
  PZMatchImage

# Candidates
PKGC = \
  PZUpdateCands \
  PZConvertSyntheticCands \
  PZGetRandomCands \
  PZGetInitialCands \
  PZMapCands \
  PZDrawCands \
  PZDrawCandGrids \
  PZPrintCands \
  PZDistSqrHistogram \
  PZPlotMatchCost \
  PZRefineCands \
  PZRefineCandsGeometry \
  PZCompCands

# Test programs and other stuff
PKGD = \
  PZTestMatch \
  PZTestSmooth \
  TestLength \
  TestFilter \
  TestQIO \
  TestCurve

PACKAGES = \
  $(LIBS) \
  $(PKGC) \
  $(PKGA) \
  $(PKGB)
  
NOTPACKAGES = \
  $(PKGD)
  
SUBDIRS = \
  BIT

NOTSUBDIRS = \
  DNA \
  MISC
  
.PHONY: all packages subdirs

all: packages subdirs
# all: workset

workset: ; \
  for d in $(WORKSET); do \
    ( here=`pwd` ; cd $$d/src && make -f $$here/Makefile build ; ) \
  done

packages: ; \
  for d in $(PACKAGES); do \
    ( here=`pwd` ; cd $$d/src && make -f $$here/Makefile build ; ) \
  done
  
subdirs: ; \
  for d in $(SUBDIRS); do \
    ( cd $$d && make -f Makefile all ; ) \
  done

build: ; \
  m3build -d ..
