This repository has been archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
76 lines (53 loc) · 2.16 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright (C) 2017-2018 Stephan Kreutzer
#
# This file is part of CppStAX.
#
# CppStAX is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# CppStAX is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with CppStAX. If not, see <http://www.gnu.org/licenses/>.
.PHONY: build clean
CFLAGS = -std=c++11 -Wall -Werror -Wextra -pedantic
build: cppstax
cppstax: cppstax.cpp XMLInputFactory.o XMLEventReader.o XMLEvent.o QName.o Attribute.o StartElement.o EndElement.o Characters.o ProcessingInstruction.o Comment.o
g++ cppstax.cpp QName.o Attribute.o StartElement.o EndElement.o Characters.o Comment.o ProcessingInstruction.o XMLEvent.o XMLEventReader.o XMLInputFactory.o -o cppstax $(CFLAGS)
XMLInputFactory.o: XMLInputFactory.h XMLInputFactory.cpp
g++ XMLInputFactory.cpp -c $(CFLAGS)
XMLEventReader.o: XMLEventReader.h XMLEventReader.cpp
g++ XMLEventReader.cpp -c $(CFLAGS)
XMLEvent.o: XMLEvent.h XMLEvent.cpp
g++ XMLEvent.cpp -c $(CFLAGS)
StartElement.o: StartElement.h StartElement.cpp
g++ StartElement.cpp -c $(CFLAGS)
Attribute.o: Attribute.h Attribute.cpp
g++ Attribute.cpp -c $(CFLAGS)
EndElement.o: EndElement.h EndElement.cpp
g++ EndElement.cpp -c $(CFLAGS)
Characters.o: Characters.h Characters.cpp
g++ Characters.cpp -c $(CFLAGS)
ProcessingInstruction.o: ProcessingInstruction.h ProcessingInstruction.cpp
g++ ProcessingInstruction.cpp -c $(CFLAGS)
Comment.o: Comment.h Comment.cpp
g++ Comment.cpp -c $(CFLAGS)
QName.o: QName.h QName.cpp
g++ QName.cpp -c $(CFLAGS)
clean:
rm -f ./cppstax
rm -f ./cppstax.o
rm -f ./XMLInputFactory.o
rm -f ./XMLEventReader.o
rm -f ./XMLEvent.o
rm -f ./Attribute.o
rm -f ./StartElement.o
rm -f ./EndElement.o
rm -f ./Characters.o
rm -f ./ProcessingInstruction.o
rm -f ./Comment.o
rm -f ./QName.o