-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (25 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CXX = g++
CXXFLAGS = -O0 -g3 -Wall -fmessage-length=0
LINK = $(CXX)
TARGET = bin/slothxml
OBJS = bin/main.o \
bin/perf_test.o \
bin/sample_test.o \
bin/slothxml.o
INCS = -I include/rapidxml \
-I include
DEPS = include/rapidxml/rapidxml.hpp
$(TARGET): $(OBJS)
$(LINK) -o $(TARGET) $(OBJS)
bin/main.o: $(DEPS) src/main.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/main.o src/main.cpp
bin/perf_test.o: $(DEPS) src/perf_test.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/perf_test.o src/perf_test.cpp
bin/sample_test.o: $(DEPS) src/sample_test.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/sample_test.o src/sample_test.cpp
SLOTHXML_CPP = include/slothxml.cpp
bin/slothxml.o: $(DEPS) $(SLOTHXML_CPP)
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/slothxml.o $(SLOTHXML_CPP)
all: $(TARGET)
clean:
rm -f $(OBJS) $(TARGET)