core/Make.proto
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 25 Jan 2016 16:35:43 +0000
changeset 298 9696f76605bd
parent 296 ea3dbc023c80
child 300 b6d834208d33
permissions -rw-r--r--
Added C:\MINGW\MSYS\1.0\bin to PATH when building expat. Some systems have it installed there (such as SWING Jenkins servers)

# $Header$
#
# DO NOT EDIT
# automagically generated from the projectDefinition: stx_goodies_xmlsuite_core.
#
# Warning: once you modify this file, do not rerun
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
#
# The Makefile as generated by this Make.proto supports the following targets:
#    make         - compile all st-files to a classLib
#    make clean   - clean all temp files
#    make clobber - clean all
#
# This file contains definitions for Unix based platforms.
# It shares common definitions with the win32-make in Make.spec.

#
# position (of this package) in directory hierarchy:
# (must point to ST/X top directory, for tools and includes)
TOP=../../..
INCLUDE_TOP=$(TOP)/..

# subdirectories where targets are to be made:
SUBDIRS=


# subdirectories where Makefiles are to be made:
# (only define if different from SUBDIRS)
# ALLSUBDIRS=

REQUIRED_SUPPORT_DIRS=

# 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/libbasic -I$(INCLUDE_TOP)/stx/libview2 -I$(INCLUDE_TOP)/stx/libwidg2


# if you need any additional defines for embedded C code,
# add them here:,
# ********** OPTIONAL: MODIFY the next lines ***
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
LOCALDEFINES=

LIBNAME=libstx_goodies_xmlsuite_core
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=.  -varPrefix=$(LIBNAME)


# ********** OPTIONAL: MODIFY the next line ***
# additional C-libraries that should be pre-linked with the class-objects
LD_OBJ_LIBS=
LOCAL_SHARED_LIBS=


# ********** OPTIONAL: MODIFY the next line ***
# additional C targets or libraries should be added below
LOCAL_EXTRA_TARGETS=

OBJS= $(COMMON_OBJS) $(UNIX_OBJS)



all:: preMake classLibRule postMake

pre_objs::  




# Update SVN revision in package definition class
ifneq (,$(findstring .svn,$(wildcard .svn)))
.svnversion: *.st
	if [ -d .svn ]; then \
		rev=$(shell svnversion -n); \
		echo -n $$rev > .svnversion; \
	else \
		echo -n exported > .svnversion; \
	fi

stx_goodies_xmlsuite_core.o: stx_goodies_xmlsuite_core.st .svnversion
	@if [ -d .svn ]; then \
		rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \
		echo "  [SV]  Expanding svnRevisionNo in $1.st"; \
		sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_xmlsuite_core.svn.st; \
	fi
	$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_xmlsuite_core.svn $(C_RULE);
	sed -i -e "s/\".stx_goodies_xmlsuite_core.svn.st\");/\"\stx_goodies_xmlsuite_core.st\");/g" .stx_goodies_xmlsuite_core.svn.c
	$(MAKE) .stx_goodies_xmlsuite_core.svn.$(O)
	@mv .stx_goodies_xmlsuite_core.svn.$(O) stx_goodies_xmlsuite_core.$(O)
endif






# run default testsuite for this package
test: $(TOP)/goodies/builder/reports
	$(MAKE) -C $(TOP)/goodies/builder/reports
	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)



# add more install actions here
install::

# add more install actions for aux-files (resources) here
installAux::

# add more preMake actions here
preMake::

# add more postMake actions here
postMake:: cleanjunk

# build all mandatory prerequisite packages (containing superclasses) for this package
prereq:
	cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"



# build all packages containing referenced classes for this package
# they are nor needed to compile the package
references:


cleanjunk::
	-rm -f *.s *.s2

clean::
	-rm -f *.o *.H

clobber:: clean
	-rm -f *.so *.dll


# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
$(OUTDIR)XMLv2__AbstractSAX2Handler.$(O) XMLv2__AbstractSAX2Handler.$(H): XMLv2__AbstractSAX2Handler.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOM3Inspector.$(O) XMLv2__DOM3Inspector.$(H): XMLv2__DOM3Inspector.st $(INCLUDE_TOP)/stx/libview2/ApplicationModel.$(H) $(INCLUDE_TOP)/stx/libview2/Model.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libwidg2/HierarchicalItem.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOM3NodeDumper.$(O) XMLv2__DOM3NodeDumper.$(H): XMLv2__DOM3NodeDumper.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMConfiguration.$(O) XMLv2__DOMConfiguration.$(H): XMLv2__DOMConfiguration.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMError.$(O) XMLv2__DOMError.$(H): XMLv2__DOMError.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMErrorHandler.$(O) XMLv2__DOMErrorHandler.$(H): XMLv2__DOMErrorHandler.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMErrorMonitor.$(O) XMLv2__DOMErrorMonitor.$(H): XMLv2__DOMErrorMonitor.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMImplementation.$(O) XMLv2__DOMImplementation.$(H): XMLv2__DOMImplementation.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMImplementationRegistry.$(O) XMLv2__DOMImplementationRegistry.$(H): XMLv2__DOMImplementationRegistry.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__InputSource.$(O) XMLv2__InputSource.$(H): XMLv2__InputSource.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__NameList.$(O) XMLv2__NameList.$(H): XMLv2__NameList.st $(INCLUDE_TOP)/stx/libbasic/OrderedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Node.$(O) XMLv2__Node.$(H): XMLv2__Node.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__NodeList.$(O) XMLv2__NodeList.$(H): XMLv2__NodeList.st $(INCLUDE_TOP)/stx/libbasic/OrderedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__NodeName.$(O) XMLv2__NodeName.$(H): XMLv2__NodeName.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__ParseError.$(O) XMLv2__ParseError.$(H): XMLv2__ParseError.st $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Parser.$(O) XMLv2__Parser.$(H): XMLv2__Parser.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__SAXError.$(O) XMLv2__SAXError.$(H): XMLv2__SAXError.st $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__TypeInfo.$(O) XMLv2__TypeInfo.$(H): XMLv2__TypeInfo.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__UserDataHandler.$(O) XMLv2__UserDataHandler.$(H): XMLv2__UserDataHandler.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLBuilder.$(O) XMLv2__XMLBuilder.$(H): XMLv2__XMLBuilder.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLEventRecorder.$(O) XMLv2__XMLEventRecorder.$(H): XMLv2__XMLEventRecorder.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLReader.$(O) XMLv2__XMLReader.$(H): XMLv2__XMLReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLReaderImplementationQuery.$(O) XMLv2__XMLReaderImplementationQuery.$(H): XMLv2__XMLReaderImplementationQuery.st $(INCLUDE_TOP)/stx/libbasic/Query.$(H) $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLWriter.$(O) XMLv2__XMLWriter.$(H): XMLv2__XMLWriter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)stx_goodies_xmlsuite_core.$(O) stx_goodies_xmlsuite_core.$(H): stx_goodies_xmlsuite_core.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Attr.$(O) XMLv2__Attr.$(H): XMLv2__Attr.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__CharacterData.$(O) XMLv2__CharacterData.$(H): XMLv2__CharacterData.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__ContentHandler.$(O) XMLv2__ContentHandler.$(H): XMLv2__ContentHandler.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__AbstractSAX2Handler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOM3XMLReader.$(O) XMLv2__DOM3XMLReader.$(H): XMLv2__DOM3XMLReader.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLReader.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOMException.$(O) XMLv2__DOMException.$(H): XMLv2__DOMException.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__SAXError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DTDHandler.$(O) XMLv2__DTDHandler.$(H): XMLv2__DTDHandler.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__AbstractSAX2Handler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Document.$(O) XMLv2__Document.$(H): XMLv2__Document.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DocumentFragment.$(O) XMLv2__DocumentFragment.$(H): XMLv2__DocumentFragment.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DocumentType.$(O) XMLv2__DocumentType.$(H): XMLv2__DocumentType.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Element.$(O) XMLv2__Element.$(H): XMLv2__Element.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Entity.$(O) XMLv2__Entity.$(H): XMLv2__Entity.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__EntityReference.$(O) XMLv2__EntityReference.$(H): XMLv2__EntityReference.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__EntityResolver.$(O) XMLv2__EntityResolver.$(H): XMLv2__EntityResolver.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__AbstractSAX2Handler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__ErrorHandler.$(O) XMLv2__ErrorHandler.$(H): XMLv2__ErrorHandler.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__AbstractSAX2Handler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__IndentingXMLWriter.$(O) XMLv2__IndentingXMLWriter.$(H): XMLv2__IndentingXMLWriter.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__NamedNodeMap.$(O) XMLv2__NamedNodeMap.$(H): XMLv2__NamedNodeMap.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__NodeList.$(H) $(INCLUDE_TOP)/stx/libbasic/OrderedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Notation.$(O) XMLv2__Notation.$(H): XMLv2__Notation.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__ProcessingInstruction.$(O) XMLv2__ProcessingInstruction.$(H): XMLv2__ProcessingInstruction.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__SAXParseError.$(O) XMLv2__SAXParseError.$(H): XMLv2__SAXParseError.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__SAXError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLGenerator.$(O) XMLv2__XMLGenerator.$(H): XMLv2__XMLGenerator.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLReader.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__XMLSuiteDOM3Implementation.$(O) XMLv2__XMLSuiteDOM3Implementation.$(H): XMLv2__XMLSuiteDOM3Implementation.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__DOMImplementation.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Attributes.$(O) XMLv2__Attributes.$(H): XMLv2__Attributes.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__NamedNodeMap.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__NodeList.$(H) $(INCLUDE_TOP)/stx/libbasic/OrderedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__CDATASection.$(O) XMLv2__CDATASection.$(H): XMLv2__CDATASection.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__CharacterData.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Comment.$(O) XMLv2__Comment.$(H): XMLv2__Comment.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__CharacterData.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__DOM3Builder.$(O) XMLv2__DOM3Builder.$(H): XMLv2__DOM3Builder.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__ContentHandler.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__AbstractSAX2Handler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__IndentingAndHighlightingXMLWriter.$(O) XMLv2__IndentingAndHighlightingXMLWriter.$(H): XMLv2__IndentingAndHighlightingXMLWriter.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__IndentingXMLWriter.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__XMLWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)XMLv2__Text.$(O) XMLv2__Text.$(H): XMLv2__Text.st $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__CharacterData.$(H) $(INCLUDE_TOP)/stx/goodies/xmlsuite/core/XMLv2__Node.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/libbasic/Character.$(H) $(INCLUDE_TOP)/stx/libbasic/Magnitude.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/CharacterArray.$(H) $(INCLUDE_TOP)/stx/libbasic/UninterpretedBytes.$(H) $(INCLUDE_TOP)/stx/libbasic/ArrayedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(STCHDR)

# ENDMAKEDEPEND --- do not remove this line