author | Martin Kobetic |
Sun, 17 Nov 2013 00:23:18 -0500 | |
changeset 147 | bd6be28aa924 |
parent 136 | 69496d69c4b5 |
permissions | -rw-r--r-- |
10 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
4 |
# automagically generated from the projectDefinition: stx_goodies_xtreams_transforms. |
10 | 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: |
|
136 | 24 |
SUBDIRS= tests |
10 | 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 |
|
134 | 37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/goodies/xtreams/core -I$(INCLUDE_TOP)/stx/goodies/xtreams/support |
10 | 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_xtreams_transforms |
|
97 | 47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
10 | 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 |
||
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
66 |
pre_objs:: |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
67 |
|
10 | 68 |
|
69 |
||
70 |
||
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
71 |
# Update SVN revision in package definition class |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
72 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
73 |
.svnversion: *.st |
97 | 74 |
if [ -d .svn ]; then \ |
75 |
rev=$(shell svnversion -n); \ |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
76 |
echo -n $$rev > .svnversion; \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
77 |
else \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
78 |
echo -n exported > .svnversion; \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
79 |
fi |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
80 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
81 |
stx_goodies_xtreams_transforms.o: stx_goodies_xtreams_transforms.st .svnversion |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
82 |
@if [ -d .svn ]; then \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
83 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
84 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
85 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_xtreams_transforms.svn.st; \ |
10 | 86 |
fi |
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_xtreams_transforms.svn $(C_RULE); |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
88 |
sed -i -e "s/\".stx_goodies_xtreams_transforms.svn.st\");/\"\stx_goodies_xtreams_transforms.st\");/g" .stx_goodies_xtreams_transforms.svn.c |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
89 |
$(MAKE) .stx_goodies_xtreams_transforms.svn.$(O) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
90 |
@mv .stx_goodies_xtreams_transforms.svn.$(O) stx_goodies_xtreams_transforms.$(O) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
91 |
endif |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
92 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
93 |
|
10 | 94 |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
95 |
# Enforce recompilation of package definition class if Mercurial working |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
96 |
# copy state changes. Together with --guessVersion it ensures that package |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
97 |
# definition class always contains correct binary revision string. |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
98 |
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**')) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
99 |
stx_goodies_xtreams_transforms.$(O): $(shell hg root)/.hg/dirstate |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
100 |
endif |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
101 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
102 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
103 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
104 |
|
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
105 |
# run default testsuite for this package |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
106 |
test: $(TOP)/goodies/builder/reports |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
107 |
$(MAKE) -C $(TOP)/goodies/builder/reports |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
108 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
10 | 109 |
|
97 | 110 |
|
111 |
||
10 | 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 |
||
134 | 124 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
125 |
prereq: |
|
10 | 126 |
cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
97 | 127 |
cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
128 |
cd ../support && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
10 | 129 |
cd ../core && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
130 |
||
131 |
||
132 |
||
134 | 133 |
# build all packages containing referenced classes for this package |
134 |
# they are nor needed to compile the package |
|
135 |
references: |
|
136 |
||
137 |
||
10 | 138 |
cleanjunk:: |
97 | 139 |
-rm -f *.s *.s2 |
10 | 140 |
|
141 |
clean:: |
|
142 |
-rm -f *.o *.H |
|
143 |
||
144 |
clobber:: clean |
|
145 |
-rm -f *.so *.dll |
|
146 |
||
147 |
||
148 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
149 |
$(OUTDIR)Xtreams__ASCIIEncoder.$(O) Xtreams__ASCIIEncoder.$(H): Xtreams__ASCIIEncoder.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/Xtreams__Encoder.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
150 |
$(OUTDIR)Xtreams__CollectReadStream.$(O) Xtreams__CollectReadStream.$(H): Xtreams__CollectReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
151 |
$(OUTDIR)Xtreams__CollectWriteStream.$(O) Xtreams__CollectWriteStream.$(H): Xtreams__CollectWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
10 | 152 |
$(OUTDIR)Xtreams__DuplicateReadStream.$(O) Xtreams__DuplicateReadStream.$(H): Xtreams__DuplicateReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
153 |
$(OUTDIR)Xtreams__DuplicateWriteStream.$(O) Xtreams__DuplicateWriteStream.$(H): Xtreams__DuplicateWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
154 |
$(OUTDIR)Xtreams__EncodeReadStream.$(O) Xtreams__EncodeReadStream.$(H): Xtreams__EncodeReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
155 |
$(OUTDIR)Xtreams__EncodeWriteStream.$(O) Xtreams__EncodeWriteStream.$(H): Xtreams__EncodeWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
10 | 156 |
$(OUTDIR)Xtreams__ISO8859L1Encoder.$(O) Xtreams__ISO8859L1Encoder.$(H): Xtreams__ISO8859L1Encoder.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/Xtreams__Encoder.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
157 |
$(OUTDIR)Xtreams__InterpretedReadStream.$(O) Xtreams__InterpretedReadStream.$(H): Xtreams__InterpretedReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
158 |
$(OUTDIR)Xtreams__InterpretedWriteStream.$(O) Xtreams__InterpretedWriteStream.$(H): Xtreams__InterpretedWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
159 |
$(OUTDIR)Xtreams__MessagePackMarshaler.$(O) Xtreams__MessagePackMarshaler.$(H): Xtreams__MessagePackMarshaler.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
10 | 160 |
$(OUTDIR)Xtreams__ObjectAnalyseStream.$(O) Xtreams__ObjectAnalyseStream.$(H): Xtreams__ObjectAnalyseStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
161 |
$(OUTDIR)Xtreams__ObjectMarshaler.$(O) Xtreams__ObjectMarshaler.$(H): Xtreams__ObjectMarshaler.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
10 | 162 |
$(OUTDIR)Xtreams__ObjectReadStream.$(O) Xtreams__ObjectReadStream.$(H): Xtreams__ObjectReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
163 |
$(OUTDIR)Xtreams__ObjectWriteStream.$(O) Xtreams__ObjectWriteStream.$(H): Xtreams__ObjectWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
111
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
164 |
$(OUTDIR)Xtreams__TransformReadStream.$(O) Xtreams__TransformReadStream.$(H): Xtreams__TransformReadStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
44ac233b2f83
* removed namespace from pool references and stray extension methods
joe
parents:
97
diff
changeset
|
165 |
$(OUTDIR)Xtreams__TransformWriteStream.$(O) Xtreams__TransformWriteStream.$(H): Xtreams__TransformWriteStream.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
10 | 166 |
$(OUTDIR)stx_goodies_xtreams_transforms.$(O) stx_goodies_xtreams_transforms.$(H): stx_goodies_xtreams_transforms.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
167 |
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__ReadStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/Xtreams__WriteStream.$(H) $(STCHDR) |
|
168 |
||
169 |
# ENDMAKEDEPEND --- do not remove this line |
|
170 |