author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 14 Feb 2013 16:15:31 +0000 | |
branch | development |
changeset 2069 | 75d40b7b986f |
parent 1953 | 1e42ad3fc322 |
child 2380 | 9195eccdcbd9 |
permissions | -rw-r--r-- |
1821 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
4 |
# automagically generated from the projectDefinition: stx_libjava_libs. |
|
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 |
|
37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic |
|
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_libs |
|
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 |
||
1823 | 66 |
pre_objs:: mvn |
1821 | 67 |
|
68 |
||
1823 | 69 |
mvn: |
1821 | 70 |
(cd java && mvn package) |
71 |
||
1823 | 72 |
|
1821 | 73 |
|
74 |
||
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
75 |
# Update SVN revision in package definition class |
1821 | 76 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
77 |
.svnversion: *.st |
|
78 |
if [ -d .svn ]; then \ |
|
79 |
rev=$(shell svnversion -n); \ |
|
80 |
echo -n $$rev > .svnversion; \ |
|
81 |
else \ |
|
82 |
echo -n exported > .svnversion; \ |
|
83 |
fi |
|
84 |
||
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
85 |
stx_libjava_libs.o: stx_libjava_libs.st .svnversion |
1821 | 86 |
@if [ -d .svn ]; then \ |
87 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
|
88 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
|
89 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_libjava_libs.svn.st; \ |
|
90 |
fi |
|
91 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_libjava_libs.svn $(C_RULE); |
|
92 |
sed -i -e "s/\".stx_libjava_libs.svn.st\");/\"\stx_libjava_libs.st\");/g" .stx_libjava_libs.svn.c |
|
93 |
$(MAKE) .stx_libjava_libs.svn.$(O) |
|
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
94 |
@mv .stx_libjava_libs.svn.$(O) stx_libjava_libs.$(O) |
1821 | 95 |
endif |
96 |
||
97 |
||
98 |
||
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
99 |
# Enforce recompilation of package definition class if Mercurial working |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
100 |
# copy state changes. Together with --guessVersion it ensures that package |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
101 |
# definition class always contains correct binary revision string. |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
102 |
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**')) |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
103 |
stx_libjava_libs.$(O): $(shell hg root)/.hg/dirstate |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
104 |
endif |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
105 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
106 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
107 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
108 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
109 |
# run default testsuite for this package |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
110 |
test: $(TOP)/goodies/builder/reports |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
111 |
$(MAKE) -C $(TOP)/goodies/builder/reports |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
112 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
113 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
114 |
|
1821 | 115 |
|
116 |
# add more install actions here |
|
117 |
install:: |
|
118 |
||
119 |
# add more install actions for aux-files (resources) here |
|
120 |
installAux:: |
|
121 |
||
122 |
# add more preMake actions here |
|
123 |
preMake:: |
|
124 |
||
125 |
# add more postMake actions here |
|
126 |
postMake:: cleanjunk |
|
127 |
||
128 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
|
129 |
cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
130 |
||
131 |
||
132 |
||
133 |
cleanjunk:: |
|
134 |
-rm -f *.s *.s2 |
|
135 |
||
136 |
clean:: |
|
137 |
-rm -f *.o *.H |
|
138 |
||
139 |
clobber:: clean |
|
140 |
-rm -f *.so *.dll |
|
141 |
||
142 |
||
143 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
144 |
$(OUTDIR)stx_libjava_libs.$(O) stx_libjava_libs.$(H): stx_libjava_libs.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
145 |
||
146 |
# ENDMAKEDEPEND --- do not remove this line |
|
147 |