Mercurial > fife-parpg
view ext/UnitTest++/Makefile @ 295:faabfaf25f15
Removed the deletion of the search space from the the RoutePatherSearch class. This will fix the path finding so it now will calculate paths correctly. It should not be deleting the search space because it does not own it, it is only using it for calculations. Need to investigate further as to why the memory consumption continually increases when running UH. Also removed the need to store a local pointer in RoutePatherSearch to the singleton instance of a Heuristic, this will eliminate the possibly of having a dangling pointer or deleting something that it shouldn't.
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 03 Jul 2009 05:11:54 +0000 |
parents | 0d325e9d5953 |
children |
line wrap: on
line source
CC = g++ CCFLAGS = -g -ansi -Wall -W -ansi # -pedantic SED = sed MV = mv RM = rm .SUFFIXES: .o .cpp lib = libUnitTest++.a test = TestUnitTest++ src = src/AssertException.cpp \ src/Test.cpp \ src/Checks.cpp \ src/TestRunner.cpp \ src/TestResults.cpp \ src/TestReporter.cpp \ src/TestReporterStdout.cpp \ src/ReportAssert.cpp \ src/TestList.cpp \ src/TimeConstraint.cpp \ src/TestDetails.cpp \ src/MemoryOutStream.cpp \ src/DeferredTestReporter.cpp \ src/DeferredTestResult.cpp \ src/XmlTestReporter.cpp ifeq ($(MSYSTEM), MINGW32) src += src/Win32/TimeHelpers.cpp else src += src/Posix/SignalTranslator.cpp \ src/Posix/TimeHelpers.cpp endif test_src = src/tests/Main.cpp \ src/tests/TestAssertHandler.cpp \ src/tests/TestChecks.cpp \ src/tests/TestUnitTest++.cpp \ src/tests/TestTest.cpp \ src/tests/TestTestResults.cpp \ src/tests/TestTestRunner.cpp \ src/tests/TestCheckMacros.cpp \ src/tests/TestTestList.cpp \ src/tests/TestTestMacros.cpp \ src/tests/TestTimeConstraint.cpp \ src/tests/TestTimeConstraintMacro.cpp \ src/tests/TestMemoryOutStream.cpp \ src/tests/TestDeferredTestReporter.cpp \ src/tests/TestXmlTestReporter.cpp objects = $(patsubst %.cpp, %.o, $(src)) test_objects = $(patsubst %.cpp, %.o, $(test_src)) dependencies = $(subst .o,.d,$(objects)) test_dependencies = $(subst .o,.d,$(test_objects)) define make-depend $(CC) $(CCFLAGS) -M $1 | \ $(SED) -e 's,\($(notdir $2)\) *:,$(dir $2)\1: ,' > $3.tmp $(SED) -e 's/#.*//' \ -e 's/^[^:]*: *//' \ -e 's/ *\\$$//' \ -e '/^$$/ d' \ -e 's/$$/ :/' $3.tmp >> $3.tmp $(MV) $3.tmp $3 endef all: $(test) $(lib): $(objects) @echo Creating $(lib) library... @ar cr $(lib) $(objects) $(test): $(lib) $(test_objects) @echo Linking $(test)... @$(CC) -o $(test) $(test_objects) $(lib) @echo Running unit tests... @./$(test) clean: -@$(RM) $(objects) $(test_objects) $(dependencies) $(test_dependencies) $(test) $(lib) 2> /dev/null %.o : %.cpp @echo $< @$(call make-depend,$<,$@,$(subst .o,.d,$@)) @$(CC) $(CCFLAGS) -c $< -o $(patsubst %.cpp, %.o, $<) ifneq "$(MAKECMDGOALS)" "clean" -include $(dependencies) -include $(test_dependencies) endif