# Makefile for the tools in the Tools directory
#
# It builds everything in the Tools directory
#

srcdir = ..
include $(MAKEBUNDLE)/pre.make

#------------------------------------------------------------------------
# make tools in current directory

LIBS     += -lvuVolume -lvuGeneral $(GLLIBS)

TOOL_NAME = convfrez  \
            genhist   \
            cropvud   \
            scalevud  \
            windowvud \
            raw2vud   \
            crlf2lf   \
	    bin2h

convfrez_SOURCES  = convfrez.cpp
genhist_SOURCES   = genhist.cpp
cropvud_SOURCES   = cropvud.cpp
scalevud_SOURCES  = scalevud.cpp
windowvud_SOURCES = windowvud.cpp
raw2vud_SOURCES   = raw2vud.cpp
crlf2lf_SOURCES   = crlf2lf.cpp
bin2h_SOURCES     = bin2h.cpp

include $(MAKEBUNDLE)/tool.make

#------------------------------------------------------------------------
# make tools in sub folders

SUBDIRS = Lightfield  \
          Fourier \
	  MarchingCubes

ifeq ($(DO_SPECTRAL),YES)
  SUBDIRS += SpecPalette
endif

include $(MAKEBUNDLE)/subdir.make

#------------------------------------------------------------------------

#all: strip copy


strip: $(EXELIST)
	strip $?

copy: $(EXELIST)
	cp $? $(HOME)/vismale/
