-#ENABLE_OPTIMIZED = 1
-
-ifdef SHARED_LIBRARY
-# if SHARED_LIBRARY is specified, the default is to build the dynamic lib
-dynamic ::
-endif
-
-# Default Rule: Make sure it's also a :: rule
-all ::
-
-# Default for install is to at least build everything...
-install ::
-
-#--------------------------------------------------------------------
-# Installation configuration options...
-#--------------------------------------------------------------------
-
-#BinInstDir=/usr/local/bin
-#LibInstDir=/usrl/local/lib/xxx
-#DocInstDir=/usr/doc/xxx
-
-BURG = /home/vadve/vadve/Research/DynOpt/Burg/burg
-BURG_OPTS = -I
-
-
-PURIFY = /usr/dcs/applications/purify/bin/purify -cache-dir="$(HOME)/purifycache" -chain-length="30" -messages=all
-
-# Shorthand for commonly accessed directories
-LIBDEBUG = $(LEVEL)/lib/Debug
-LIBRELEASE = $(LEVEL)/lib/Release
-TOOLDEBUG = $(LEVEL)/tools/Debug
-TOOLRELEASE = $(LEVEL)/tools/Release
-
-#---------------------------------------------------------
-# Compilation options...
-#---------------------------------------------------------
-
-# Special tools used while building
-RunBurg = $(BURG) $(BURG_OPTS)
-
-# Enable this for profiling support with 'gprof'
-ifdef ENABLE_PROFILING
-PROFILE = -pg
-else
-PROFILE =
-endif
-
-# -Wno-unused-parameter
-CompileCommonOpts = $(PROFILE) -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include
-
-# Compile a file, don't link...
-Compile = $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
-CompileG = $(Compile) -g -D_DEBUG
-CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnonnull-objects -freg-struct-return -fshort-enums
-
-# Link final executable
-
-ifdef ENABLE_PURIFY # To enable purify, build with 'gmake ENABLE_PURIFY=1'
-Link = $(PURIFY) $(CXX) $(PROFILE) -static
-else
-Link = $(CXX) $(PROFILE)
-endif
-LinkG = $(Link) -g -L $(LIBDEBUG)
-LinkO = $(Link) -O3 -L $(LIBRELEASE)
-
-# Create a .so file from a .o files...
-#MakeSO = $(CXX) -shared $(PROFILE)
-MakeSO = $(CXX) -G $(PROFILE)
-MakeSOO = $(MakeSO) -O3
-
-# Create one .o file from a bunch of .o files...
-Relink = ld -r
-
-# Create dependancy file from CPP file, send to stdout.
-Depend = $(CXX) -MM -I$(LEVEL)/include $(CPPFLAGS)
-
-# Archive a bunch of .o files into a .a file...
-AR = ar cq
-MakeLib = $(AR)
-
-#----------------------------------------------------------
-
-# Source includes all of the cpp files, and objects are derived from the
-# source files...
-# The local Makefile can list other Source files via ExtraSource = ...
-#
-Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
-
-Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
-ObjectsO = $(addprefix Release/,$(Objs))
-ObjectsG = $(addprefix Debug/,$(Objs))
-
-
-#---------------------------------------------------------
-# Handle the DIRS option
-#---------------------------------------------------------
-
-ifdef DIRS # Only do this if we're using DIRS!
-
-all :: $(addsuffix /.makeall , $(DIRS))
-install :: $(addsuffix /.makeinstall, $(DIRS))
-clean :: $(addsuffix /.makeclean , $(DIRS))
-
-%/.makeall %/.makeclean %/.makeinstall:
- cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
-endif
-
-#---------------------------------------------------------
-# Handle the LIBRARYNAME option - used when building libs...
-#---------------------------------------------------------
-#
-# When libraries are built, they are allowed to optionally define the
-# DONT_BUILD_RELINKED make variable, which, when defined, prevents a .o file
-# from being built for the library. This .o files may then be linked to by a
-# tool if the tool does not need (or want) the semantics a .a file provides
-# (linking in only object files that are "needed"). If a library is never to
-# be used in this way, it is better to define DONT_BUILD_RELINKED, and define
-# BUILD_ARCHIVE instead.