TOP = ../../../..

PROGRAM = NetworkEditorTests

# This line includes default values for the variables below
include $(TOP)/build/defaults.cfg

# whether to use double (1) or float (0) for TData
CLAM_DOUBLE = 0

# whether to compile XML dependant code, and link agains Xerces
CLAM_USE_XML = 1

# whether to disable all the CLAM checks, both debug and normal
#CLAM_DISABLE_CHECKS = 0

# whether to simulate release checks being in debug mode
#CLAM_USE_RELEASE_ASSERTS = 0

# external library dependency indicators
# the application uses ALSA development libraries 
USE_ALSA = $(HAS_ALSA)
# the application uses the FFTW library
USE_FFTW = 1
# the application uses the FLTK library
#USE_FLTK = 0
# the application uses the QT library
USE_QT = 1
# the application uses DirectX SDK 
#USE_DIRECTX = 0
# the application uses Portaudio
#USE_PORTAUDIO = 0
# the application uses Portmidi
#USE_PORTMIDI = 0
# the application uses RtAudio
#USE_RTAUDIO = 0
# the application uses pthreads ( POSIX Threads library )
USE_PTHREADS = 1
# the application uses cppunit (Testing framework)
USE_CPPUNIT = 1 

PRJ_SEARCH_INCLUDES =
PRJ_SEARCH_RECURSE_INCLUDES = $(TOP)/test/UnitTests \
				$(TOP)/examples/NetworkEditor \

include $(TOP)/build/system.cfg

# for avoiding the nasty bug of Factories being instantiated more than once over the same
# memory address
INLINE_VC6_FIX_FLAGS_RELEASE = \
	/nologo /MD /W3 /GR /GX /O2 /Ob0 /FD /c /Zm1000

# for avoiding the possible bug in gcc-3.2.2 (RedHat patch) code optimizer and usage of
# fomit-frame-pointer

CXXFLAGS_RELEASE_SAFE= -O3 
#APPLE_CXXFLAGS_RELEASE_SAFE= -O3 -fno-inline -fcoalesce -fcoalesce-templates

CXXFLAGS_RELEASE = $(OS_WINDOWS? $(INLINE_VC6_FIX_FLAGS_RELEASE) : $(CXXFLAGS_RELEASE) )
CXXFLAGS_RELEASE = $(OS_LINUX? $(CXXFLAGS_RELEASE_SAFE) : $(CXXFLAGS_RELEASE) )
#CXXFLAGS_RELEASE = $(OS_MACOSX? $(APPLE_CXXFLAGS_RELEASE_SAFE) : $(CXXFLAGS_RELEASE) )

SOURCES = \
	$(CLAM_PATH)/test/UnitTests/ExamplesTests/NetworkEditorTests/TestNetworkEditorRunnerConsole.cxx \
	$(CLAM_PATH)/test/UnitTests/ExamplesTests/NetworkEditorTests/SignalsSlotsTest.cxx \
	$(CLAM_PATH)/test/UnitTests/ExamplesTests/NetworkEditorTests/ProcessingControllerTest.cxx \
	$(CLAM_PATH)/test/UnitTests/ExamplesTests/NetworkEditorTests/NetworkControllerTest.cxx \
	$(TOP)/src/Processing/Base/DefaultProcessingFactoryRegistration.cxx \
        $(TOP)/examples/NetworkEditor/MoreProcessingFactoryRegistration.cxx \