# Makefile for the wxUtilities used by vuGui
#
# This makefile builds all the utilities for the vuGUi program.
#
# Utilities are classes derived from vuUtilityWindow that should be linked
# in the utilities menu.
#
# These classes are each placed in separate directories, which the makefile
# goes into individually and runs their respective makefiles.  The object
# files from the classes are all compiled into a static library called
#
#                       --- libvuwxUtilities.a ---
#
# for makefile modularity and easy linking to the vuGui program.  When adding
# new utilities, you just have to add them to the variable definition
# below, and the makefile takes care of the rest.
#
# The makefile also builds vuTextGui programs.  This is a  general utility
# for use with the vuGUi program.

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

srcdir = ../..
include $(MAKEBUNDLE)/pre.make
include $(srcdir)/vuGui/makewx.env

#- lib make -------------------------------------------------------------

INCLS    += -I../.. $(WXINCLS)
CPPFLAGS += $(WXFLAGS)

LIB_NAME = vuwxUtilities

SOURCES  = vuBasicUtility.cpp      \

HEADERS  = vuBasicUtility.h        \

include $(MAKEBUNDLE)/lib.make

#- subdir make ----------------------------------------------------------

SUBDIRS = vuSplat                 \
          vuRaycast               \
          vuBccSplat              \
          vuBCCFirstHitRaycaster  \
          vuBCCMarchingTetrahedra \
          vuBCCSheetSplatter      \
          vuBCCRaycaster          \
          vuSlicer                \
          vuFVR                   \
          vuLightfield            \
          vuShearWarp             \
          vuBCCShearWarp          \
          vuFourier               \
          vuCellProjector         \
	  vuMarchingCubes

ifeq ($(DO_SPECTRAL),YES)
  SUBDIRS += vuSpecFVR  \
             vuSpectral

  ifeq ($(NVIDIA_EXT),YES)
  SUBDIRS += vuSpecSplat
  endif
endif

#- tool make ------------------------------------------------------------

TOOL_NAME               = vuTextGui
vuTextGui_SOURCES       = vuTextGui.cpp vuGuiParser.cpp

LIBS    += -lvuGeneral

include $(MAKEBUNDLE)/subdir.make
#include $(MAKEBUNDLE)/tool.make
