author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 25 Jan 2013 17:57:06 +0000 | |
branch | refactoring-vmdata |
changeset 2002 | ef3da336a6c9 |
parent 1895 | 2d30e588124c |
child 2069 | 75d40b7b986f |
permissions | -rw-r--r-- |
752 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
1494 | 4 |
# automagically generated from the projectDefinition: stx_libjava_experiments. |
752 | 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 |
|
1880
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libview -I$(INCLUDE_TOP)/stx/libjava/tools -I$(INCLUDE_TOP)/stx/libjava -I$(INCLUDE_TOP)/stx/goodies/sunit -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp -I$(INCLUDE_TOP)/stx/goodies/petitparser |
752 | 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_libjava_experiments |
|
1316 | 47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
752 | 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 |
||
1357 | 66 |
pre_objs:: |
67 |
||
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
68 |
|
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
69 |
|
752 | 70 |
|
1870 | 71 |
# Update SVN revision in package definition class |
1357 | 72 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
73 |
.svnversion: *.st |
|
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
74 |
if [ -d .svn ]; then \ |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
75 |
rev=$(shell svnversion -n); \ |
1357 | 76 |
echo -n $$rev > .svnversion; \ |
77 |
else \ |
|
78 |
echo -n exported > .svnversion; \ |
|
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
79 |
fi |
1357 | 80 |
|
1870 | 81 |
stx_libjava_experiments.o: stx_libjava_experiments.st .svnversion |
1752 | 82 |
@if [ -d .svn ]; then \ |
1439 | 83 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
1752 | 84 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
1439 | 85 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_libjava_experiments.svn.st; \ |
1357 | 86 |
fi |
1752 | 87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_libjava_experiments.svn $(C_RULE); |
88 |
sed -i -e "s/\".stx_libjava_experiments.svn.st\");/\"\stx_libjava_experiments.st\");/g" .stx_libjava_experiments.svn.c |
|
89 |
$(MAKE) .stx_libjava_experiments.svn.$(O) |
|
1870 | 90 |
@mv .stx_libjava_experiments.svn.$(O) stx_libjava_experiments.$(O) |
1357 | 91 |
endif |
752 | 92 |
|
93 |
||
94 |
||
1880
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
95 |
# Enforce recompilation of package definition class if Mercurial working |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
96 |
# copy state changes. Together with --guessVersion it ensures that package |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
97 |
# definition class always contains correct binary revision string. |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
98 |
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**')) |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
99 |
stx_libjava_experiments.$(O): $(shell hg root)/.hg/dirstate |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
100 |
endif |
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
101 |
|
752 | 102 |
|
1870 | 103 |
|
104 |
||
105 |
# run default testsuite for this package |
|
106 |
test: $(TOP)/goodies/builder/reports |
|
107 |
$(MAKE) -C $(TOP)/goodies/builder/reports |
|
108 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
|
109 |
||
110 |
||
111 |
||
752 | 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 |
||
124 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
|
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
125 |
cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1752 | 126 |
cd ../../libdb/libodbc && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1870 | 127 |
cd $(TOP)/../squeak/petitparser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
128 |
cd ../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
129 |
cd ../../libcomp && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
130 |
cd ../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1494 | 131 |
cd ../../libdb && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
132 |
cd ../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
133 |
cd ../../libboss && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1494 | 134 |
cd ../../libdb/libsqlite && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
135 |
cd ../../goodies/sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
136 |
cd ../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1494 | 137 |
cd ../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1870 | 138 |
cd ../../goodies/petitparser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
139 |
cd ../../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
140 |
cd ../../libhtml && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
141 |
cd ../../libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
142 |
cd ../../libtool && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
143 |
cd ../ && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1870 | 144 |
cd ../tools && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
752 | 145 |
cd ../../librun && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
146 |
||
147 |
||
148 |
||
149 |
cleanjunk:: |
|
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
150 |
-rm -f *.s *.s2 |
752 | 151 |
|
152 |
clean:: |
|
153 |
-rm -f *.o *.H |
|
154 |
||
155 |
clobber:: clean |
|
156 |
-rm -f *.so *.dll |
|
157 |
||
158 |
||
159 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
1462 | 160 |
$(OUTDIR)JavaByteCodeInterpreter.$(O) JavaByteCodeInterpreter.$(H): JavaByteCodeInterpreter.st $(INCLUDE_TOP)/stx/libjava/JavaByteCodeProcessor.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1880
27b932afa4a7
Refactored JavaCompiler (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1870
diff
changeset
|
161 |
$(OUTDIR)JavaCompiler.$(O) JavaCompiler.$(H): JavaCompiler.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libjava/tools/JavaParserII.$(H) $(INCLUDE_TOP)/stx/libjava/tools/JavaParserI.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPCompositeParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPDelegateParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPParser.$(H) $(STCHDR) |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
162 |
$(OUTDIR)JavaMethodWrapperCompiler.$(O) JavaMethodWrapperCompiler.$(H): JavaMethodWrapperCompiler.st $(INCLUDE_TOP)/stx/libjava/Java.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
752 | 163 |
$(OUTDIR)NoReflectionObject.$(O) NoReflectionObject.$(H): NoReflectionObject.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1206
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
164 |
$(OUTDIR)PersonSample.$(O) PersonSample.$(H): PersonSample.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
165 |
$(OUTDIR)SampleHandler.$(O) SampleHandler.$(H): SampleHandler.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
227911d49c24
interop-related classes moved to experiments - still experimental code
vranyj1
parents:
752
diff
changeset
|
166 |
$(OUTDIR)SetSample.$(O) SetSample.$(H): SetSample.st $(INCLUDE_TOP)/stx/libbasic/Set.$(H) $(INCLUDE_TOP)/stx/libbasic/Collection.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
752 | 167 |
$(OUTDIR)stx_libjava_experiments.$(O) stx_libjava_experiments.$(H): stx_libjava_experiments.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1462 | 168 |
$(OUTDIR)JavaByteCodeSteppableInterpreter.$(O) JavaByteCodeSteppableInterpreter.$(H): JavaByteCodeSteppableInterpreter.st $(INCLUDE_TOP)/stx/libjava/experiments/JavaByteCodeInterpreter.$(H) $(INCLUDE_TOP)/stx/libjava/JavaByteCodeProcessor.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1335
754fa2ac21ab
DNU hook is forwarding to perform: forReceiver: sender: ifNotFound: in Class
kursjan
parents:
1329
diff
changeset
|
169 |
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/libbasic/Class.$(H) $(INCLUDE_TOP)/stx/libbasic/ClassDescription.$(H) $(INCLUDE_TOP)/stx/libbasic/Behavior.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libjava/JavaMethodDescriptor.$(H) $(INCLUDE_TOP)/stx/libjava/JavaDescriptor.$(H) $(INCLUDE_TOP)/stx/libjava/JavaClass.$(H) $(INCLUDE_TOP)/stx/libjava/JavaBehavior.$(H) $(INCLUDE_TOP)/stx/libjava/JavaObject.$(H) $(STCHDR) |
752 | 170 |
|
171 |
# ENDMAKEDEPEND --- do not remove this line |
|
172 |