-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
113 lines (98 loc) · 3.29 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# @file Makefile
# @author Christian (graetz23@gmail.com)
#
# XMLCC is distributed under the MIT License (MIT); this file is part of.
#
# Copyright (c) 2008-2020 Christian (graetz23@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# type to your console:
# make && cd XMLCC && ./xmlcc
#
# last change 1.00 20150101 Amara Faith
#
CC=g++
# CFLAGS=-c -Wall
CFLAGS=-O3 -c -Wall
# CFLAGS=-O3 -g3 -c -Wall
LDFLAGS=
SRCDIR=.
SRCCNTRL=git
# like to have that stuff static while developing ~8>
SOURCES= \
$(SRCDIR)/xmlcc/xmlccSysException.cpp \
$(SRCDIR)/xmlcc/xmlccSysFailure.cpp \
$(SRCDIR)/xmlcc/xmlccSysError.cpp \
$(SRCDIR)/xmlcc/xmlccSysStrTool.cpp \
$(SRCDIR)/xmlcc/xmlccSysXmlTool.cpp \
$(SRCDIR)/xmlcc/xmlccSysXmlHandler.cpp \
$(SRCDIR)/xmlcc/xmlccSysXmlParser.cpp \
$(SRCDIR)/xmlcc/xmlccSysUnitTest.cpp \
$(SRCDIR)/xmlcc/xmlccSysUnitFrame.cpp \
$(SRCDIR)/xmlcc/xmlccDomNode.cpp \
$(SRCDIR)/xmlcc/xmlccDomRoot.cpp \
$(SRCDIR)/xmlcc/xmlccDomHeader.cpp \
$(SRCDIR)/xmlcc/xmlccDomElement.cpp \
$(SRCDIR)/xmlcc/xmlccDomAttribute.cpp \
$(SRCDIR)/xmlcc/xmlccDomValue.cpp \
$(SRCDIR)/xmlcc/xmlccDomComment.cpp \
$(SRCDIR)/xmlcc/xmlccDomCData.cpp \
$(SRCDIR)/xmlcc/xmlccDomDoctype.cpp \
$(SRCDIR)/xmlcc/xmlccDomController.cpp \
$(SRCDIR)/xmlcc/xmlccDomHandler.cpp \
$(SRCDIR)/xmlcc/xmlccDomParser.cpp \
$(SRCDIR)/xmlcc/xmlccDomTokenizer.cpp \
$(SRCDIR)/xmlcc/xmlccDomCore.cpp \
$(SRCDIR)/xmlcc/xmlccSaxHandler.cpp \
$(SRCDIR)/xmlcc/xmlccSaxHandlerExample.cpp \
$(SRCDIR)/xmlcc/xmlccSaxParser.cpp \
$(SRCDIR)/xmlcc/xmlccCfgConfig.cpp \
$(SRCDIR)/xmlcc/xmlccTestSysList.cpp \
$(SRCDIR)/xmlcc/xmlccTestSysStrTool.cpp \
$(SRCDIR)/xmlcc/xmlccTestSysXmlTool.cpp \
$(SRCDIR)/xmlcc/xmlccTestSysXmlParser.cpp \
$(SRCDIR)/xmlcc/xmlccTestDomTokenizer.cpp \
$(SRCDIR)/xmlcc/xmlccTestDomController.cpp \
$(SRCDIR)/xmlcc/xmlccTestXmlcc.cpp \
$(SRCDIR)/xmlcc/xmlccTest.cpp \
$(SRCDIR)/main.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=example
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
mv $(EXECUTABLE) ./run/
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm -f ./run/$(EXECUTABLE)
rm -f $(OBJECTS)
update:
$(SRCCNTRL) pull
commit:
$(SRCCNTRL) commit
$(SRCCNTRL) push
# clean out, make an update, and then build
refresh:
make clean
make update
date
make all
date