updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ptokax / tinyxml.patch
blobb811bf75af34abb01d6ff7f08b611733d456cdad
1 *** Makefile 2010-03-23 07:16:36.000000000 +0200
2 --- makefile_tinyxml 2010-01-09 19:59:41.000000000 +0200
3 ***************
4 *** 1,130 ****
5 ! #****************************************************************************
7 ! # Makefile for TinyXml test.
8 ! # Lee Thomason
9 ! # www.grinninglizard.com
11 ! # This is a GNU make (gmake) makefile
12 ! #****************************************************************************
14 ! # DEBUG can be set to YES to include debugging info, or NO otherwise
15 ! DEBUG := NO
17 ! # PROFILE can be set to YES to include profiling info, or NO otherwise
18 ! PROFILE := NO
20 ! # TINYXML_USE_STL can be used to turn on STL support. NO, then STL
21 ! # will not be used. YES will include the STL files.
22 ! TINYXML_USE_STL := NO
24 ! #****************************************************************************
26 ! CC := gcc
27 ! CXX := g++
28 ! LD := g++
29 ! AR := ar rc
30 ! RANLIB := ranlib
32 ! DEBUG_CFLAGS := -Wall -Wno-format -g -DDEBUG
33 ! RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3
35 ! LIBS :=
37 ! DEBUG_CXXFLAGS := ${DEBUG_CFLAGS}
38 ! RELEASE_CXXFLAGS := ${RELEASE_CFLAGS}
40 ! DEBUG_LDFLAGS := -g
41 ! RELEASE_LDFLAGS :=
43 ! ifeq (YES, ${DEBUG})
44 ! CFLAGS := ${DEBUG_CFLAGS}
45 ! CXXFLAGS := ${DEBUG_CXXFLAGS}
46 ! LDFLAGS := ${DEBUG_LDFLAGS}
47 ! else
48 ! CFLAGS := ${RELEASE_CFLAGS}
49 ! CXXFLAGS := ${RELEASE_CXXFLAGS}
50 ! LDFLAGS := ${RELEASE_LDFLAGS}
51 ! endif
53 ! ifeq (YES, ${PROFILE})
54 ! CFLAGS := ${CFLAGS} -pg -O3
55 ! CXXFLAGS := ${CXXFLAGS} -pg -O3
56 ! LDFLAGS := ${LDFLAGS} -pg
57 ! endif
59 ! #****************************************************************************
60 ! # Preprocessor directives
61 ! #****************************************************************************
63 ! ifeq (YES, ${TINYXML_USE_STL})
64 ! DEFS := -DTIXML_USE_STL
65 ! else
66 ! DEFS :=
67 ! endif
69 ! #****************************************************************************
70 ! # Include paths
71 ! #****************************************************************************
73 ! #INCS := -I/usr/include/g++-2 -I/usr/local/include
74 ! INCS :=
77 ! #****************************************************************************
78 ! # Makefile code common to all platforms
79 ! #****************************************************************************
81 ! CFLAGS := ${CFLAGS} ${DEFS}
82 ! CXXFLAGS := ${CXXFLAGS} ${DEFS}
84 ! #****************************************************************************
85 ! # Targets of the build
86 ! #****************************************************************************
88 ! OUTPUT := xmltest
90 ! all: ${OUTPUT}
93 ! #****************************************************************************
94 ! # Source files
95 ! #****************************************************************************
97 ! SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp tinystr.cpp
99 ! # Add on the sources for libraries
100 ! SRCS := ${SRCS}
102 ! OBJS := $(addsuffix .o,$(basename ${SRCS}))
104 ! #****************************************************************************
105 ! # Output
106 ! #****************************************************************************
108 ! ${OUTPUT}: ${OBJS}
109 ! ${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ${EXTRA_LIBS}
111 ! #****************************************************************************
112 ! # common rules
113 ! #****************************************************************************
115 ! # Rules for compiling source files to object files
116 ! %.o : %.cpp
117 ! ${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@
119 ! %.o : %.c
120 ! ${CC} -c ${CFLAGS} ${INCS} $< -o $@
122 ! dist:
123 ! bash makedistlinux
125 clean:
126 ! -rm -f core ${OBJS} ${OUTPUT}
128 ! depend:
129 ! #makedepend ${INCS} ${SRCS}
131 ! tinyxml.o: tinyxml.h tinystr.h
132 ! tinyxmlparser.o: tinyxml.h tinystr.h
133 ! xmltest.o: tinyxml.h tinystr.h
134 ! tinyxmlerror.o: tinyxml.h tinystr.h
135 --- 1,47 ----
136 ! #*******************************************************************************
138 ! # Makefile for TinyXml static lib (archive).
140 ! #*******************************************************************************
142 + #*******************************************************************************
143 + # Compiler
144 + #*******************************************************************************
145 + CXX = g++
147 + #*******************************************************************************
148 + # Debug flags
149 + #*******************************************************************************
150 + CXXFLAGS = -g -Wall
152 + #*******************************************************************************
153 + # Release flags
154 + #*******************************************************************************
155 + #CXXFLAGS = -O -Wall
157 + #*******************************************************************************
158 + # Archive to create
159 + #*******************************************************************************
160 + tinyxml.a: $(CURDIR)/obj/tinystr.o $(CURDIR)/obj/tinyxml.o $(CURDIR)/obj/tinyxmlerror.o $(CURDIR)/obj/tinyxmlparser.o
161 + $(AR) $(ARFLAGS) tinyxml.a $(CURDIR)/obj/tinystr.o $(CURDIR)/obj/tinyxml.o $(CURDIR)/obj/tinyxmlerror.o $(CURDIR)/obj/tinyxmlparser.o
163 + #*******************************************************************************
164 + # Files to compile
165 + #*******************************************************************************
166 + $(CURDIR)/obj/tinystr.o: $(CURDIR)/tinystr.cpp $(CURDIR)/tinystr.h
167 + $(CXX) $(CXXFLAGS) -c $(CURDIR)/tinystr.cpp -o $(CURDIR)/obj/tinystr.o
169 + $(CURDIR)/obj/tinyxml.o: $(CURDIR)/tinyxml.cpp $(CURDIR)/tinyxml.h $(CURDIR)/tinystr.h
170 + $(CXX) $(CXXFLAGS) -c $(CURDIR)/tinyxml.cpp -o $(CURDIR)/obj/tinyxml.o
172 + $(CURDIR)/obj/tinyxmlerror.o: $(CURDIR)/tinyxmlerror.cpp $(CURDIR)/tinyxml.h $(CURDIR)/tinystr.h
173 + $(CXX) $(CXXFLAGS) -c $(CURDIR)/tinyxmlerror.cpp -o $(CURDIR)/obj/tinyxmlerror.o
175 + $(CURDIR)/obj/tinyxmlparser.o: $(CURDIR)/tinyxmlparser.cpp $(CURDIR)/tinyxml.h $(CURDIR)/tinystr.h
176 + $(CXX) $(CXXFLAGS) -c $(CURDIR)/tinyxmlparser.cpp -o $(CURDIR)/obj/tinyxmlparser.o
178 + #*******************************************************************************
179 + # Cleanup
180 + #*******************************************************************************
181 clean:
182 ! -rm $(CURDIR)/obj/tinystr.o $(CURDIR)/obj/tinyxml.o $(CURDIR)/obj/tinyxmlerror.o $(CURDIR)/obj/tinyxmlparser.o tinyxml.a