author | Jan Vrany <jan.vrany@labware.com> |
Wed, 08 Jul 2020 11:26:45 +0100 | |
changeset 29 | 443911ff729a |
parent 24 | f07f2a2a8148 |
permissions | -rw-r--r-- |
1 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
4 |
# automagically generated from the projectDefinition: stx_goodies_cypress. |
|
5 |
# |
|
6 |
# Warning: once you modify this file, do not rerun |
|
7 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
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 |
|
13 |
# |
|
14 |
# This file contains definitions for Unix based platforms. |
|
15 |
# It shares common definitions with the win32-make in Make.spec. |
|
16 |
||
17 |
# |
|
18 |
# position (of this package) in directory hierarchy: |
|
19 |
# (must point to ST/X top directory, for tools and includes) |
|
20 |
TOP=../.. |
|
21 |
INCLUDE_TOP=$(TOP)/.. |
|
22 |
||
23 |
# subdirectories where targets are to be made: |
|
24 |
SUBDIRS= |
|
25 |
||
26 |
||
27 |
# subdirectories where Makefiles are to be made: |
|
28 |
# (only define if different from SUBDIRS) |
|
29 |
# ALLSUBDIRS= |
|
30 |
||
31 |
REQUIRED_SUPPORT_DIRS= |
|
32 |
||
33 |
# if your embedded C code requires any system includes, |
|
34 |
# add the path(es) here:, |
|
35 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
36 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
24 | 37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libbasic3 -I$(INCLUDE_TOP)/stx/libcomp |
1 | 38 |
|
39 |
||
40 |
# if you need any additional defines for embedded C code, |
|
41 |
# add them here:, |
|
42 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
43 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
44 |
LOCALDEFINES= |
|
45 |
||
46 |
LIBNAME=libstx_goodies_cypress |
|
47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
|
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= |
|
53 |
LOCAL_SHARED_LIBS= |
|
54 |
||
55 |
||
56 |
# ********** OPTIONAL: MODIFY the next line *** |
|
57 |
# additional C targets or libraries should be added below |
|
58 |
LOCAL_EXTRA_TARGETS= |
|
59 |
||
60 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
61 |
||
62 |
||
63 |
||
64 |
all:: preMake classLibRule postMake |
|
65 |
||
66 |
pre_objs:: |
|
67 |
||
68 |
||
69 |
||
70 |
||
24 | 71 |
# Update SVN revision in package definition class |
1 | 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 |
||
24 | 81 |
stx_goodies_cypress.o: stx_goodies_cypress.st .svnversion |
1 | 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_cypress.svn.st; \ |
|
86 |
fi |
|
87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_cypress.svn $(C_RULE); |
|
29
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
88 |
sed -i -e "s/\".stx_goodies_cypress.svn.st\");/\"stx_goodies_cypress.st\");/g" .stx_goodies_cypress.svn.c |
1 | 89 |
$(MAKE) .stx_goodies_cypress.svn.$(O) |
24 | 90 |
@mv .stx_goodies_cypress.svn.$(O) stx_goodies_cypress.$(O) |
1 | 91 |
endif |
92 |
||
93 |
||
94 |
||
24 | 95 |
# Enforce recompilation of package definition class if Mercurial working |
96 |
# copy state changes. Together with --guessVersion it ensures that package |
|
97 |
# definition class always contains correct binary revision string. |
|
98 |
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**')) |
|
99 |
stx_goodies_cypress.$(O): $(shell hg root)/.hg/dirstate |
|
100 |
endif |
|
101 |
||
102 |
||
103 |
||
104 |
||
105 |
# run default testsuite for this package |
|
106 |
test: $(TOP)/goodies/builder/reports |
|
107 |
$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init |
|
108 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
|
109 |
||
110 |
||
1 | 111 |
|
112 |
# add more install actions here |
|
113 |
install:: |
|
114 |
||
115 |
# add more install actions for aux-files (resources) here |
|
116 |
installAux:: |
|
117 |
||
118 |
# add more preMake actions here |
|
119 |
preMake:: |
|
120 |
||
121 |
# add more postMake actions here |
|
122 |
postMake:: cleanjunk |
|
123 |
||
24 | 124 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
125 |
prereq: |
|
29
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
126 |
cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) " |
24 | 127 |
|
128 |
||
1 | 129 |
|
24 | 130 |
# build all packages containing referenced classes for this package |
131 |
# they are not needed to compile the package (but later, to load it) |
|
132 |
references: |
|
1 | 133 |
|
134 |
||
135 |
cleanjunk:: |
|
136 |
-rm -f *.s *.s2 |
|
137 |
||
138 |
clean:: |
|
139 |
-rm -f *.o *.H |
|
140 |
||
141 |
clobber:: clean |
|
142 |
-rm -f *.so *.dll |
|
143 |
||
144 |
||
145 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
29
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
146 |
$(OUTDIR)CypressAbstractReaderWriter.$(O) CypressAbstractReaderWriter.$(C) CypressAbstractReaderWriter.$(H): CypressAbstractReaderWriter.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
147 |
$(OUTDIR)CypressJSONReader.$(O) CypressJSONReader.$(C) CypressJSONReader.$(H): CypressJSONReader.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
148 |
$(OUTDIR)CypressModel.$(O) CypressModel.$(C) CypressModel.$(H): CypressModel.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
149 |
$(OUTDIR)stx_goodies_cypress.$(O) stx_goodies_cypress.$(C) stx_goodies_cypress.$(H): stx_goodies_cypress.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
150 |
$(OUTDIR)CypressAbstractReader.$(O) CypressAbstractReader.$(C) CypressAbstractReader.$(H): CypressAbstractReader.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReaderWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
151 |
$(OUTDIR)CypressAbstractWriter.$(O) CypressAbstractWriter.$(C) CypressAbstractWriter.$(H): CypressAbstractWriter.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReaderWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
152 |
$(OUTDIR)CypressClass.$(O) CypressClass.$(C) CypressClass.$(H): CypressClass.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressModel.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
153 |
$(OUTDIR)CypressMethod.$(O) CypressMethod.$(C) CypressMethod.$(H): CypressMethod.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressModel.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
154 |
$(OUTDIR)CypressPackage.$(O) CypressPackage.$(C) CypressPackage.$(H): CypressPackage.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressModel.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
155 |
$(OUTDIR)CypressRepository.$(O) CypressRepository.$(C) CypressRepository.$(H): CypressRepository.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressModel.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
156 |
$(OUTDIR)CypressFileTreeReader.$(O) CypressFileTreeReader.$(C) CypressFileTreeReader.$(H): CypressFileTreeReader.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReader.$(H) $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReaderWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
157 |
$(OUTDIR)CypressReader.$(O) CypressReader.$(C) CypressReader.$(H): CypressReader.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReader.$(H) $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReaderWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
158 |
$(OUTDIR)CypressWriter.$(O) CypressWriter.$(C) CypressWriter.$(H): CypressWriter.st $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractReaderWriter.$(H) $(INCLUDE_TOP)/stx/goodies/cypress/CypressAbstractWriter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
443911ff729a
Move some extensions to stx:libcompat
Jan Vrany <jan.vrany@labware.com>
parents:
24
diff
changeset
|
159 |
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/libbasic/ArithmeticValue.$(H) $(INCLUDE_TOP)/stx/libbasic/Array.$(H) $(INCLUDE_TOP)/stx/libbasic/ArrayedCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Behavior.$(H) $(INCLUDE_TOP)/stx/libbasic/Boolean.$(H) $(INCLUDE_TOP)/stx/libbasic/CharacterArray.$(H) $(INCLUDE_TOP)/stx/libbasic/Class.$(H) $(INCLUDE_TOP)/stx/libbasic/ClassDescription.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/CompiledCode.$(H) $(INCLUDE_TOP)/stx/libbasic/ConfigurableFeatures.$(H) $(INCLUDE_TOP)/stx/libbasic/Dictionary.$(H) $(INCLUDE_TOP)/stx/libbasic/ExecutableFunction.$(H) $(INCLUDE_TOP)/stx/libbasic/Magnitude.$(H) $(INCLUDE_TOP)/stx/libbasic/Method.$(H) $(INCLUDE_TOP)/stx/libbasic/Number.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/PackageId.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/SequenceableCollection.$(H) $(INCLUDE_TOP)/stx/libbasic/Set.$(H) $(INCLUDE_TOP)/stx/libbasic/String.$(H) $(INCLUDE_TOP)/stx/libbasic/Symbol.$(H) $(INCLUDE_TOP)/stx/libbasic/UninterpretedBytes.$(H) $(STCHDR) |
1 | 160 |
|
161 |
# ENDMAKEDEPEND --- do not remove this line |
|
162 |