xmlreaderimpl/trunk/Make.proto
changeset 173 738b801e1a58
parent 123 679becd265ea
child 177 3362fc45bbfd
--- a/xmlreaderimpl/trunk/Make.proto	Sat Jan 09 12:00:25 2010 +0000
+++ b/xmlreaderimpl/trunk/Make.proto	Sat Jan 09 12:08:46 2010 +0000
@@ -1,6 +1,6 @@
 # $Header$
 #
-# DO NOT EDIT 
+# DO NOT EDIT
 # automagically generated from the projectDefinition: stx_goodies_xmlsuite_xmlreaderimpl.
 #
 # Warning: once you modify this file, do not rerun
@@ -30,15 +30,15 @@
 
 REQUIRED_SUPPORT_DIRS=
 
-# if your embedded C code requires any system includes, 
-# add the path(es) here:, 
+# if your embedded C code requires any system includes,
+# add the path(es) here:,
 # ********** OPTIONAL: MODIFY the next lines ***
 # LOCALINCLUDES=-Ifoo -Ibar
-LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/xmlsuite/core -I$(INCLUDE_TOP)/stx/goodies/xml/vw -I$(INCLUDE_TOP)/stx/libbasic
+LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/xmlsuite/core -I$(INCLUDE_TOP)/stx/goodies/xml/vw -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp
 
 
-# if you need any additional defines for embedded C code, 
-# add them here:, 
+# if you need any additional defines for embedded C code,
+# add them here:,
 # ********** OPTIONAL: MODIFY the next lines ***
 # LOCALDEFINES=-Dfoo -Dbar -DDEBUG
 LOCALDEFINES=
@@ -49,7 +49,7 @@
 
 # ********** OPTIONAL: MODIFY the next line ***
 # additional C-libraries that should be pre-linked with the class-objects
-LD_OBJ_LIBS=
+LD_OBJ_LIBS=support/expat-2.0.1/build/lib/libexpat.a
 LOCAL_SHARED_LIBS=
 
 
@@ -63,8 +63,19 @@
 
 all:: preMake classLibRule postMake
 
-pre_objs:: 
+pre_objs:: support/expat-2.0.1/build/lib/libexpat.a update-svn-revision
+
 
+support/expat-2.0.1/build/lib/libexpat.a:
+    mkdir support/expat-2.0.1/build && cd support/expat-2.0.1/build && CFLAGS=-m32 ../configure --prefix=$$PWD
+    $(MAKE) -C support/expat-2.0.1/build
+    $(MAKE) -C support/expat-2.0.1/build install
+
+
+update-svn-revision:
+	sed -i -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"'$(shell svnversion -n)'\"\$$\"/g" \
+		stx_goodies_xmlsuite_xmlreaderimpl.st
+.PHONY: update-svn-revision
 
 
 # add more install actions here
@@ -80,34 +91,27 @@
 postMake:: cleanjunk
 
 prereq: $(REQUIRED_SUPPORT_DIRS)
-	cd ../../../libbasic && $(MAKE)
-	cd ../../refactoryBrowser/helpers && $(MAKE)
-	cd ../../refactoryBrowser/parser && $(MAKE)
-	cd ../../../libbasic2 && $(MAKE)
-	cd ../../../libcomp && $(MAKE)
-	cd ../../../libboss && $(MAKE)
-	cd ../../../libview && $(MAKE)
-	cd ../../../libbasic3 && $(MAKE)
-	cd ../../../libview2 && $(MAKE)
-	cd ../../refactoryBrowser/changes && $(MAKE)
-	cd ../../xml/vw && $(MAKE)
-	cd ../../../libui && $(MAKE)
-	cd ../../../libwidg && $(MAKE)
-	cd ../../../libwidg3 && $(MAKE)
-	cd ../../../libhtml && $(MAKE)
-	cd ../../refactoryBrowser/browser && $(MAKE)
-	cd ../../../libwidg2 && $(MAKE)
-	cd ../../../libcompat && $(MAKE)
-	cd ../../../libtool && $(MAKE)
-	cd ../../sunit && $(MAKE)
-	cd ../../communication && $(MAKE)
-	cd ../../../libtool2 && $(MAKE)
-	cd ../../refactoryBrowser/lint && $(MAKE)
-	cd $(TOP)/../cvut/fel/libutilui && $(MAKE)
-	cd ../../libtool3 && $(MAKE)
-	cd ../core && $(MAKE)
-	cd . && $(MAKE)
-	cd ../../../librun && $(MAKE)
+	cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../refactoryBrowser/parser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libcomp && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libboss && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../xml/vw && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../xml/stx && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libwidg3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libtool && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../libtool2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd $(TOP)/../cvut/fel/libutilui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../core && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd . && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../../librun && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 
 
 
@@ -122,7 +126,7 @@
 
 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
 $(OUTDIR)XMLv2__VWSAXBuilder.$(O) XMLv2__VWSAXBuilder.$(H): XMLv2__VWSAXBuilder.st $(INCLUDE_TOP)/stx/goodies/xml/vw/SAXBuilder.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/NodeBuilder.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLNodeBuilder.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
-$(OUTDIR)XMLv2__VWXMLReader.$(O) XMLv2__VWXMLReader.$(H): XMLv2__VWXMLReader.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLReader.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParserStX.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParser.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/StreamWrapper.$(H) $(INCLUDE_TOP)/stx/libbasic/Link.$(H) $(STCHDR)
+$(OUTDIR)XMLv2__VWXMLReader.$(O) XMLv2__VWXMLReader.$(H): XMLv2__VWXMLReader.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLReader.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/StreamWrapper.$(H) $(INCLUDE_TOP)/stx/libbasic/Link.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParserStX.$(H) $(INCLUDE_TOP)/stx/goodies/xml/vw/XMLParser.$(H) $(STCHDR)
 $(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/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
 
 # ENDMAKEDEPEND --- do not remove this line