author | Claus Gittinger <cg@exept.de> |
Wed, 30 Aug 2017 15:16:04 +0200 | |
changeset 689 | d8d6e704ac8f |
parent 588 | 0d69293eb505 |
child 611 | 1eecc860f4a5 |
child 664 | e31b2e7b658d |
permissions | -rw-r--r-- |
588 | 1 |
# $Header: /cvs/stx/stx/goodies/sunit/Make.proto,v 1.24 2014-03-23 21:08:48 cg Exp $ |
0 | 2 |
# |
222 | 3 |
# DO NOT EDIT |
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
4 |
# automagically generated from the projectDefinition: stx_goodies_sunit. |
0 | 5 |
# |
6 |
# Warning: once you modify this file, do not rerun |
|
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
7 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
0 | 8 |
# |
9 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
10 |
# make - compile all st-files to a classLib |
|
11 |
# make clean - clean all temp files |
|
12 |
# make clobber - clean all |
|
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
13 |
# |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
14 |
# This file contains definitions for Unix based platforms. |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
15 |
# It shares common definitions with the win32-make in Make.spec. |
0 | 16 |
|
17 |
# |
|
18 |
# position (of this package) in directory hierarchy: |
|
19 |
# (must point to ST/X top directory, for tools and includes) |
|
20 |
TOP=../.. |
|
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
21 |
INCLUDE_TOP=$(TOP)/.. |
0 | 22 |
|
23 |
# subdirectories where targets are to be made: |
|
24 |
SUBDIRS= |
|
25 |
||
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
26 |
|
0 | 27 |
# subdirectories where Makefiles are to be made: |
28 |
# (only define if different from SUBDIRS) |
|
29 |
# ALLSUBDIRS= |
|
30 |
||
187
f5f3994a3608
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
31 |
REQUIRED_SUPPORT_DIRS= |
0 | 32 |
|
222 | 33 |
# if your embedded C code requires any system includes, |
34 |
# add the path(es) here:, |
|
0 | 35 |
# ********** OPTIONAL: MODIFY the next lines *** |
36 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libview2 |
0 | 38 |
|
39 |
||
222 | 40 |
# if you need any additional defines for embedded C code, |
41 |
# add them here:, |
|
0 | 42 |
# ********** OPTIONAL: MODIFY the next lines *** |
43 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
44 |
LOCALDEFINES= |
|
45 |
||
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
46 |
LIBNAME=libstx_goodies_sunit |
467
14439a73fbcf
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
0 | 48 |
|
49 |
||
50 |
# ********** OPTIONAL: MODIFY the next line *** |
|
51 |
# additional C-libraries that should be pre-linked with the class-objects |
|
52 |
LD_OBJ_LIBS= |
|
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
53 |
LOCAL_SHARED_LIBS= |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
54 |
|
0 | 55 |
|
56 |
# ********** OPTIONAL: MODIFY the next line *** |
|
57 |
# additional C targets or libraries should be added below |
|
58 |
LOCAL_EXTRA_TARGETS= |
|
59 |
||
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
60 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
61 |
|
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
62 |
|
0 | 63 |
|
64 |
all:: preMake classLibRule postMake |
|
65 |
||
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
66 |
pre_objs:: |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
67 |
|
222 | 68 |
|
69 |
||
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
70 |
|
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
71 |
# Update SVN revision in package definition class |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
72 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
73 |
.svnversion: *.st |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
74 |
if [ -d .svn ]; then \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
75 |
rev=$(shell svnversion -n); \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
76 |
echo -n $$rev > .svnversion; \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
77 |
else \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
78 |
echo -n exported > .svnversion; \ |
226
37555225b657
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
222
diff
changeset
|
79 |
fi |
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
80 |
|
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
81 |
stx_goodies_sunit.o: stx_goodies_sunit.st .svnversion |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
82 |
@if [ -d .svn ]; then \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
83 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
84 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
85 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_sunit.svn.st; \ |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
86 |
fi |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_sunit.svn $(C_RULE); |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
88 |
sed -i -e "s/\".stx_goodies_sunit.svn.st\");/\"\stx_goodies_sunit.st\");/g" .stx_goodies_sunit.svn.c |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
89 |
$(MAKE) .stx_goodies_sunit.svn.$(O) |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
90 |
@mv .stx_goodies_sunit.svn.$(O) stx_goodies_sunit.$(O) |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
91 |
endif |
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
92 |
|
0 | 93 |
|
467
14439a73fbcf
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
94 |
|
14439a73fbcf
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
95 |
|
0 | 96 |
# add more install actions here |
97 |
install:: |
|
98 |
||
99 |
# add more install actions for aux-files (resources) here |
|
100 |
installAux:: |
|
101 |
||
102 |
# add more preMake actions here |
|
103 |
preMake:: |
|
104 |
||
105 |
# add more postMake actions here |
|
106 |
postMake:: cleanjunk |
|
107 |
||
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
108 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
109 |
prereq: |
222 | 110 |
cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
111 |
cd ../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
112 |
cd ../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
113 |
cd ../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
222 | 114 |
cd ../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
187
f5f3994a3608
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
115 |
|
f5f3994a3608
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
116 |
|
f5f3994a3608
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
117 |
|
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
118 |
# build all packages containing referenced classes for this package |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
119 |
# they are nor needed to compile the package |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
120 |
references: |
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
121 |
|
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
122 |
|
0 | 123 |
cleanjunk:: |
467
14439a73fbcf
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
124 |
-rm -f *.s *.s2 |
0 | 125 |
|
126 |
clean:: |
|
127 |
-rm -f *.o *.H |
|
128 |
||
187
f5f3994a3608
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
165
diff
changeset
|
129 |
clobber:: clean |
0 | 130 |
-rm -f *.so *.dll |
131 |
||
132 |
||
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
133 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
513
d27d563d5d60
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
134 |
$(OUTDIR)MetricsReporter.$(O) MetricsReporter.$(H): MetricsReporter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
135 |
$(OUTDIR)SUnitDelay.$(O) SUnitDelay.$(H): SUnitDelay.st $(INCLUDE_TOP)/stx/libbasic/Delay.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
136 |
$(OUTDIR)SUnitNameResolver.$(O) SUnitNameResolver.$(H): SUnitNameResolver.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
222 | 137 |
$(OUTDIR)TestAsserter.$(O) TestAsserter.$(H): TestAsserter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
362 | 138 |
$(OUTDIR)TestCaseOutcome.$(O) TestCaseOutcome.$(H): TestCaseOutcome.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
513
d27d563d5d60
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
467
diff
changeset
|
139 |
$(OUTDIR)TestCoverageReporter.$(O) TestCoverageReporter.$(H): TestCoverageReporter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
140 |
$(OUTDIR)TestFailure.$(O) TestFailure.$(H): TestFailure.st $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
141 |
$(OUTDIR)TestResult.$(O) TestResult.$(H): TestResult.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
467
14439a73fbcf
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
142 |
$(OUTDIR)TestResultReporter.$(O) TestResultReporter.$(H): TestResultReporter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
143 |
$(OUTDIR)TestRunner.$(O) TestRunner.$(H): TestRunner.st $(INCLUDE_TOP)/stx/libview2/ApplicationModel.$(H) $(INCLUDE_TOP)/stx/libview2/Model.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
144 |
$(OUTDIR)TestSuite.$(O) TestSuite.$(H): TestSuite.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
145 |
$(OUTDIR)TestSuitesScripter.$(O) TestSuitesScripter.$(H): TestSuitesScripter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
146 |
$(OUTDIR)stx_goodies_sunit.$(O) stx_goodies_sunit.$(H): stx_goodies_sunit.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
147 |
$(OUTDIR)ResumableTestFailure.$(O) ResumableTestFailure.$(H): ResumableTestFailure.st $(INCLUDE_TOP)/stx/goodies/sunit/TestFailure.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
222 | 148 |
$(OUTDIR)TestCase.$(O) TestCase.$(H): TestCase.st $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
588 | 149 |
$(OUTDIR)TestCaseWithArguments.$(O) TestCaseWithArguments.$(H): TestCaseWithArguments.st $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
222 | 150 |
$(OUTDIR)TestResource.$(O) TestResource.$(H): TestResource.st $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
370
22cb88d23779
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
362
diff
changeset
|
151 |
$(OUTDIR)TestResultStX.$(O) TestResultStX.$(H): TestResultStX.st $(INCLUDE_TOP)/stx/goodies/sunit/TestResult.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
152 |
$(OUTDIR)TestSkipped.$(O) TestSkipped.$(H): TestSkipped.st $(INCLUDE_TOP)/stx/goodies/sunit/TestFailure.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
410 | 153 |
$(OUTDIR)TestResultForRunWithDebug.$(O) TestResultForRunWithDebug.$(H): TestResultForRunWithDebug.st $(INCLUDE_TOP)/stx/goodies/sunit/TestResultStX.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestResult.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
553
c042d015f43e
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
537
diff
changeset
|
154 |
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/libbasic/Block.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/String.$(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) $(INCLUDE_TOP)/stx/libbasic/Symbol.$(H) $(INCLUDE_TOP)/stx/libbasic/Behavior.$(H) $(INCLUDE_TOP)/stx/libbasic/Class.$(H) $(INCLUDE_TOP)/stx/libbasic/ClassDescription.$(H) $(STCHDR) |
0 | 155 |
|
156 |
# ENDMAKEDEPEND --- do not remove this line |
|
141
0482157d65bc
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
157 |