diff options
author | nyamatongwe <devnull@localhost> | 2011-02-13 10:08:42 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-02-13 10:08:42 +1100 |
commit | 9bf6e65bbe0af1e39c2986ed0e522cba753662b5 (patch) | |
tree | 66af18dd403dcf0b00aca4008437c947d46f597c | |
parent | e75470ad1d39842c12b407820c2886f7ae035ab9 (diff) | |
download | scintilla-mirror-9bf6e65bbe0af1e39c2986ed0e522cba753662b5.tar.gz |
Avoid unnecessary relinks on Windows.
-rw-r--r-- | test/unit/makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/makefile b/test/unit/makefile index c83169e4d..35a6fd0ce 100644 --- a/test/unit/makefile +++ b/test/unit/makefile @@ -12,6 +12,7 @@ DEL = del /q CPPFLAGS += -I$(GTEST_DIR)/include GTEST_ALL = gtest-all.o LINKFLAGS = $(CPPFLAGS) $(CXXFLAGS) +EXE = unitTest.exe else @@ -19,6 +20,7 @@ DEL = rm -f CPPFLAGS = $(shell gtest-config --cppflags) CXXFLAGS = $(shell gtest-config --cxxflags) LINKFLAGS = $(shell gtest-config --ldflags --libs) +EXE = unitTest # For coverage testing with gcov #CPPFLAGS += -fprofile-arcs -ftest-coverage @@ -42,7 +44,7 @@ CXXFLAGS += -g -Wall -Wextra -Wno-unused-function CASES:=$(addsuffix .o,$(basename $(notdir $(wildcard test*.cxx)))) TESTEDOBJS=ContractionState.o RunStyles.o -TESTS=unitTest +TESTS=$(EXE) GTEST_HEADERS=$(GTEST_DIR)/include/gtest/*.h $(GTEST_DIR)/include/gtest/internal/*.h @@ -62,5 +64,5 @@ gtest-all.o: $(GTEST_SRCS_) .cxx.o: $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -unitTest: $(CASES) $(TESTEDOBJS) unitTest.o $(GTEST_ALL) +$(EXE): $(CASES) $(TESTEDOBJS) unitTest.o $(GTEST_ALL) $(CXX) $(LINKFLAGS) $^ -o $@ |