author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 02 Feb 2016 21:49:24 +0000 | |
changeset 300 | b6d834208d33 |
parent 297 | 494d4dfca187 |
permissions | -rw-r--r-- |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
# $Header$ |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
# |
173 | 3 |
# DO NOT EDIT |
123 | 4 |
# automagically generated from the projectDefinition: stx_goodies_xmlsuite_xmlreaderimpl. |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
# |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
# Warning: once you modify this file, do not rerun |
123 | 7 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
# |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
# The Makefile as generated by this Make.proto supports the following targets: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
# make - compile all st-files to a classLib |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
# make clean - clean all temp files |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
# make clobber - clean all |
123 | 13 |
# |
14 |
# This file contains definitions for Unix based platforms. |
|
15 |
# It shares common definitions with the win32-make in Make.spec. |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
# |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
# position (of this package) in directory hierarchy: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
# (must point to ST/X top directory, for tools and includes) |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
TOP=../../.. |
78 | 21 |
INCLUDE_TOP=$(TOP)/.. |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
# subdirectories where targets are to be made: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
SUBDIRS= |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
# subdirectories where Makefiles are to be made: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
# (only define if different from SUBDIRS) |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
# ALLSUBDIRS= |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
|
123 | 31 |
REQUIRED_SUPPORT_DIRS= |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
|
173 | 33 |
# if your embedded C code requires any system includes, |
34 |
# add the path(es) here:, |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
# ********** OPTIONAL: MODIFY the next lines *** |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
# LOCALINCLUDES=-Ifoo -Ibar |
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/xml/vw -I$(INCLUDE_TOP)/stx/goodies/xmlsuite/core -I$(INCLUDE_TOP)/stx/libbasic |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
|
173 | 40 |
# if you need any additional defines for embedded C code, |
41 |
# add them here:, |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
# ********** OPTIONAL: MODIFY the next lines *** |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
LOCALDEFINES= |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
|
123 | 46 |
LIBNAME=libstx_goodies_xmlsuite_xmlreaderimpl |
288 | 47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
# ********** OPTIONAL: MODIFY the next line *** |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
# additional C-libraries that should be pre-linked with the class-objects |
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
52 |
LD_OBJ_LIBS= |
123 | 53 |
LOCAL_SHARED_LIBS= |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
# ********** OPTIONAL: MODIFY the next line *** |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
# additional C targets or libraries should be added below |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
58 |
LOCAL_EXTRA_TARGETS= |
123 | 59 |
|
60 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
22
cc1df6cc67b5
added unknown encoding handler & expat is statically linked
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
61 |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
|
43
d7f2b98cf4de
Initial commit of Xerces parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
39
diff
changeset
|
63 |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
all:: preMake classLibRule postMake |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
|
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
66 |
pre_objs:: |
123 | 67 |
|
288 | 68 |
|
173 | 69 |
|
70 |
||
288 | 71 |
# Update SVN revision in package definition class |
72 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
|
73 |
.svnversion: *.st |
|
74 |
if [ -d .svn ]; then \ |
|
75 |
rev=$(shell svnversion -n); \ |
|
76 |
echo -n $$rev > .svnversion; \ |
|
77 |
else \ |
|
78 |
echo -n exported > .svnversion; \ |
|
79 |
fi |
|
80 |
||
81 |
stx_goodies_xmlsuite_xmlreaderimpl.o: stx_goodies_xmlsuite_xmlreaderimpl.st .svnversion |
|
82 |
@if [ -d .svn ]; then \ |
|
83 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
|
84 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
|
85 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_xmlsuite_xmlreaderimpl.svn.st; \ |
|
86 |
fi |
|
87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_xmlsuite_xmlreaderimpl.svn $(C_RULE); |
|
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
88 |
sed -i -e "s/\".stx_goodies_xmlsuite_xmlreaderimpl.svn.st\");/\"stx_goodies_xmlsuite_xmlreaderimpl.st\");/g" .stx_goodies_xmlsuite_xmlreaderimpl.svn.c |
288 | 89 |
$(MAKE) .stx_goodies_xmlsuite_xmlreaderimpl.svn.$(O) |
90 |
@mv .stx_goodies_xmlsuite_xmlreaderimpl.svn.$(O) stx_goodies_xmlsuite_xmlreaderimpl.$(O) |
|
91 |
endif |
|
92 |
||
93 |
||
94 |
||
297
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
95 |
# Enforce recompilation of package definition class if Mercurial working |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
96 |
# copy state changes. Together with --guessVersion it ensures that package |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
97 |
# definition class always contains correct binary revision string. |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
98 |
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**')) |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
99 |
stx_goodies_xmlsuite_xmlreaderimpl.$(O): $(shell hg root)/.hg/dirstate |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
100 |
endif |
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
101 |
|
288 | 102 |
|
103 |
||
104 |
||
105 |
# run default testsuite for this package |
|
106 |
test: $(TOP)/goodies/builder/reports |
|
297
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
107 |
$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init |
288 | 108 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
109 |
||
123 | 110 |
|
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
# add more install actions here |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
install:: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
# add more install actions for aux-files (resources) here |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
installAux:: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
# add more preMake actions here |
123 | 119 |
preMake:: |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
# add more postMake actions here |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
postMake:: cleanjunk |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
|
288 | 124 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
125 |
prereq: |
|
173 | 126 |
cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
127 |
cd ../../xml/vw && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
173 | 128 |
cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
129 |
cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
130 |
cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
131 |
cd ../../../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
132 |
cd ../../../libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
133 |
cd ../core && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
123 | 134 |
|
135 |
||
136 |
||
288 | 137 |
# build all packages containing referenced classes for this package |
297
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
138 |
# they are not needed to compile the package (but later, to load it) |
288 | 139 |
references: |
140 |
||
141 |
||
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
cleanjunk:: |
288 | 143 |
-rm -f *.s *.s2 |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
|
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
clean:: |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
-rm -f *.o *.H |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
|
123 | 148 |
clobber:: clean |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
-rm -f *.so *.dll |
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
|
89
221f196e36f6
XercesCXMLReader: basic parsing works
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
151 |
|
123 | 152 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
300
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
153 |
$(OUTDIR)XMLv2__VWSAXBuilder.$(O) XMLv2__VWSAXBuilder.$(H): XMLv2__VWSAXBuilder.st $(INCLUDE_TOP)/stx/goodies/xml/vw/NodeBuilder.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/SAXBuilder.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLNodeBuilder.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
b6d834208d33
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
297
diff
changeset
|
154 |
$(OUTDIR)XMLv2__VWXMLReader.$(O) XMLv2__VWXMLReader.$(H): XMLv2__VWXMLReader.st $(INCLUDE_TOP)/stx/goodies/xml/vw/StreamWrapper.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParser.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParserStX.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLReader.$(H) $(INCLUDE_TOP)/stx/libbasic/Link.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
297
494d4dfca187
Win / x86_64 build fix: build expat using either BCC or MINGW, depending on toolchain used
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
296
diff
changeset
|
155 |
$(OUTDIR)stx_goodies_xmlsuite_xmlreaderimpl.$(O) stx_goodies_xmlsuite_xmlreaderimpl.$(H): stx_goodies_xmlsuite_xmlreaderimpl.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR) |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
|
123 | 157 |
# ENDMAKEDEPEND --- do not remove this line |
20
262e480300a4
Binary version of Expat XML reader added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |