blob: 02f22e7c270c6d995d553e6d754ba53f5fe5ff47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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
|