summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-09 21:56:30 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-09 21:56:30 +0000
commit543fa8268d20c10d7208f62dc0be16a6dec487c9 (patch)
treea52210fbf933067498f9ba457f54e96f1c7e7152 /tests
parent7b41dce85e8f8788027672845fd2867dd9e2b27a (diff)
Add Makefile for building and running tests.
This expands and replaces the Travis-specific makefile by adding more options and correctly tracking header dependencies. Also add wchar_t mode test to Travis configuration. git-svn-id: http://pugixml.googlecode.com/svn/trunk@971 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.travis24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/Makefile.travis b/tests/Makefile.travis
deleted file mode 100644
index 02f22e7..0000000
--- a/tests/Makefile.travis
+++ /dev/null
@@ -1,24 +0,0 @@
-CXXFLAGS=-c -Wall -Wextra -Werror -pedantic
-
-BUILD=build/travis
-
-SOURCES=src/pugixml.cpp $(wildcard tests/*.cpp)
-OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
-EXECUTABLE=$(BUILD)/test
-
-all: $(EXECUTABLE)
-
-test: $(EXECUTABLE)
- ./$(EXECUTABLE)
-
-$(EXECUTABLE): $(OBJECTS)
- $(CXX) $(OBJECTS) $(LDFLAGS) -o $@
-
-$(BUILD)/%.cpp.o: %.cpp
- mkdir -p $(dir $@)
- $(CXX) $(CXXFLAGS) $< -o $@
-
-clean:
- rm -rf $(BUILD)
-
-.PHONY: all test clean \ No newline at end of file