61 |
61 |
62 |
62 |
63 |
63 |
64 all:: preMake classLibRule postMake |
64 all:: preMake classLibRule postMake |
65 |
65 |
66 pre_objs:: update-svn-revision |
66 pre_objs:: |
67 |
67 |
68 |
68 |
69 |
69 |
70 update-svn-revision: |
70 |
71 if [ ! -r .svnversion -o "$(shell svnversion -n)" != "$(shell cat .svnversion)" ]; then \ |
71 # Update SVN revision in package definition class |
72 svnversion -n > .svnversion; \ |
72 ifneq (,$(findstring .svn,$(wildcard .svn))) |
73 sed -i -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"'$(shell svnversion -n)'\"\$$\"/g" \ |
73 .svnversion: *.st |
74 stx_libcomp.st; \ |
74 if [ -d .svn ]; then \ |
|
75 rev=$(shell svnversion -n); \ |
|
76 echo -n $$rev > .svnversion; \ |
|
77 else \ |
|
78 echo -n exported > .svnversion; \ |
75 fi |
79 fi |
76 .PHONY: update-svn-revision |
80 |
|
81 stx_libcomp.o: stx_libcomp.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_libcomp.svn.st; \ |
|
86 fi |
|
87 $(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_libcomp.svn $(C_RULE); |
|
88 sed -i -e "s/\".stx_libcomp.svn.st\");/\"\stx_libcomp.st\");/g" .stx_libcomp.svn.c |
|
89 $(MAKE) .stx_libcomp.svn.$(O) |
|
90 @mv .stx_libcomp.svn.$(O) stx_libcomp.$(O) |
|
91 endif |
77 |
92 |
78 |
93 |
79 |
94 |
80 |
95 |
81 # add more install actions here |
96 # add more install actions here |
115 $(OUTDIR)InstrumentationInfo.$(O) InstrumentationInfo.$(H): InstrumentationInfo.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
136 $(OUTDIR)InstrumentationInfo.$(O) InstrumentationInfo.$(H): InstrumentationInfo.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
116 $(OUTDIR)InstrumentedMethod.$(O) InstrumentedMethod.$(H): InstrumentedMethod.st $(INCLUDE_TOP)/stx/libbasic/Method.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
137 $(OUTDIR)InstrumentedMethod.$(O) InstrumentedMethod.$(H): InstrumentedMethod.st $(INCLUDE_TOP)/stx/libbasic/Method.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
117 $(OUTDIR)LazyMethod.$(O) LazyMethod.$(H): LazyMethod.st $(INCLUDE_TOP)/stx/libbasic/Method.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
138 $(OUTDIR)LazyMethod.$(O) LazyMethod.$(H): LazyMethod.st $(INCLUDE_TOP)/stx/libbasic/Method.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
118 $(OUTDIR)ObjectFileHandle.$(O) ObjectFileHandle.$(H): ObjectFileHandle.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
139 $(OUTDIR)ObjectFileHandle.$(O) ObjectFileHandle.$(H): ObjectFileHandle.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
119 $(OUTDIR)ObjectFileLoader.$(O) ObjectFileLoader.$(H): ObjectFileLoader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(STCHDR) |
140 $(OUTDIR)ObjectFileLoader.$(O) ObjectFileLoader.$(H): ObjectFileLoader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(STCHDR) |
|
141 $(OUTDIR)ParseError.$(O) ParseError.$(H): ParseError.st $(INCLUDE_TOP)/stx/libbasic/ProceedableError.$(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) |
120 $(OUTDIR)ParseNode.$(O) ParseNode.$(H): ParseNode.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
142 $(OUTDIR)ParseNode.$(O) ParseNode.$(H): ParseNode.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
143 $(OUTDIR)ParseWarning.$(O) ParseWarning.$(H): ParseWarning.st $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
121 $(OUTDIR)ParserFlags.$(O) ParserFlags.$(H): ParserFlags.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
144 $(OUTDIR)ParserFlags.$(O) ParserFlags.$(H): ParserFlags.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
122 $(OUTDIR)ProgramNodeBuilder.$(O) ProgramNodeBuilder.$(H): ProgramNodeBuilder.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
145 $(OUTDIR)ProgramNodeBuilder.$(O) ProgramNodeBuilder.$(H): ProgramNodeBuilder.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
123 $(OUTDIR)ProgramNodeEnumerator.$(O) ProgramNodeEnumerator.$(H): ProgramNodeEnumerator.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
146 $(OUTDIR)ProgramNodeEnumerator.$(O) ProgramNodeEnumerator.$(H): ProgramNodeEnumerator.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
124 $(OUTDIR)STCCompilerInterface.$(O) STCCompilerInterface.$(H): STCCompilerInterface.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
147 $(OUTDIR)STCCompilerInterface.$(O) STCCompilerInterface.$(H): STCCompilerInterface.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
125 $(OUTDIR)Scanner.$(O) Scanner.$(H): Scanner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
148 $(OUTDIR)Scanner.$(O) Scanner.$(H): Scanner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
130 $(OUTDIR)Variable.$(O) Variable.$(H): Variable.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
153 $(OUTDIR)Variable.$(O) Variable.$(H): Variable.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
131 $(OUTDIR)stx_libcomp.$(O) stx_libcomp.$(H): stx_libcomp.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
154 $(OUTDIR)stx_libcomp.$(O) stx_libcomp.$(H): stx_libcomp.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
132 $(OUTDIR)AssignmentNode.$(O) AssignmentNode.$(H): AssignmentNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
155 $(OUTDIR)AssignmentNode.$(O) AssignmentNode.$(H): AssignmentNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
133 $(OUTDIR)BlockNode.$(O) BlockNode.$(H): BlockNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
156 $(OUTDIR)BlockNode.$(O) BlockNode.$(H): BlockNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
134 $(OUTDIR)BreakpointNode.$(O) BreakpointNode.$(H): BreakpointNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
157 $(OUTDIR)BreakpointNode.$(O) BreakpointNode.$(H): BreakpointNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
158 $(OUTDIR)CompilationError.$(O) CompilationError.$(H): CompilationError.st $(INCLUDE_TOP)/stx/libcomp/ParseError.$(H) $(INCLUDE_TOP)/stx/libbasic/ProceedableError.$(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) |
135 $(OUTDIR)MessageNode.$(O) MessageNode.$(H): MessageNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
159 $(OUTDIR)MessageNode.$(O) MessageNode.$(H): MessageNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
136 $(OUTDIR)MethodNode.$(O) MethodNode.$(H): MethodNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
160 $(OUTDIR)MethodNode.$(O) MethodNode.$(H): MethodNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
137 $(OUTDIR)ParseErrorNode.$(O) ParseErrorNode.$(H): ParseErrorNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
161 $(OUTDIR)ParseErrorNode.$(O) ParseErrorNode.$(H): ParseErrorNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
138 $(OUTDIR)Parser.$(O) Parser.$(H): Parser.st $(INCLUDE_TOP)/stx/libcomp/Scanner.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Query.$(H) $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/ProceedableError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(STCHDR) |
162 $(OUTDIR)Parser.$(O) Parser.$(H): Parser.st $(INCLUDE_TOP)/stx/libcomp/Scanner.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProceedableError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Query.$(H) $(INCLUDE_TOP)/stx/libbasic/Notification.$(H) $(STCHDR) |
139 $(OUTDIR)PrimaryNode.$(O) PrimaryNode.$(H): PrimaryNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
163 $(OUTDIR)PrimaryNode.$(O) PrimaryNode.$(H): PrimaryNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
140 $(OUTDIR)ProgramNode.$(O) ProgramNode.$(H): ProgramNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
164 $(OUTDIR)ProgramNode.$(O) ProgramNode.$(H): ProgramNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
141 $(OUTDIR)SelectorNode.$(O) SelectorNode.$(H): SelectorNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
165 $(OUTDIR)SelectorNode.$(O) SelectorNode.$(H): SelectorNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
142 $(OUTDIR)StatementNode.$(O) StatementNode.$(H): StatementNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
166 $(OUTDIR)StatementNode.$(O) StatementNode.$(H): StatementNode.st $(INCLUDE_TOP)/stx/libcomp/ParseNode.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
143 $(OUTDIR)TextCollectingCompilationErrorHandler.$(O) TextCollectingCompilationErrorHandler.$(H): TextCollectingCompilationErrorHandler.st $(INCLUDE_TOP)/stx/libcomp/CompilationErrorHandler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
167 $(OUTDIR)TextCollectingCompilationErrorHandler.$(O) TextCollectingCompilationErrorHandler.$(H): TextCollectingCompilationErrorHandler.st $(INCLUDE_TOP)/stx/libcomp/CompilationErrorHandler.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |