OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [lib/] [Makefile.am] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
JAVA_DEPEND = java.dep
2
 
3
## silently try to include these, if it fails gnu make
4
## will remake these 'makefiles' with the rules given in
5
## this file and restart the make process again
6
sinclude $(JAVA_DEPEND)
7
 
8
## GCJ LOCAL: prune .svn directories
9
propertydirs :=  $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org META-INF -type d ! -name CVS -print | fgrep -v .svn)
10
propertyfiles :=  $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -name \*\.properties -print)
11
metafiles :=  $(shell cd $(top_srcdir)/resource && $(FIND) META-INF -name CVS -prune -o -type f -print | fgrep -v .svn)
12
## END GCJ LOCAL
13
iconfiles :=  $(shell cd $(top_srcdir) && $(FIND) gnu/javax/swing/plaf/gtk/icons -name *.png -type f -print)
14
 
15
compile_classpath = $(vm_classes):$(top_srcdir):$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:.:$(USER_CLASSLIB)
16
 
17
# handling source to bytecode compiler programs like gcj, jikes  and kjc
18
if FOUND_GCJ
19
## This should never be used when gcj is the compiler.
20
## See the compile-classes target.
21
JAVAC = exit 1
22
else
23
if FOUND_JIKES
24
JAVAC = $(JIKES) +Pno-shadow +Pno-switchcheck +F $(JIKESENCODING) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(compile_classpath) -d . @classes
25
else
26
if FOUND_KJC
27
## FIXME: from what I can tell, kjc does not support a -encoding option.
28
JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes
29
else
30
if FOUND_GCJX
31
JAVAC = $(GCJX) -encoding UTF-8 -classpath .:$(USER_CLASSLIB) -d . @classes
32
else
33
if FOUND_ECJ
34
JAVAC = $(ECJ) -source 1.4 -encoding UTF-8 -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classes
35
endif # FOUND_ECJ
36
endif # FOUND_GCJX
37
endif # FOUND_KJC
38
endif # FOUND_GCJ
39
endif # FOUND_JIKES
40
 
41
JAVAH = $(USER_JAVAH) -jni -classpath .:$(USER_CLASSLIB)
42
 
43
if INSTALL_GLIBJ_ZIP
44
 
45
## GCJ LOCAL: Comment this out so we don't make an empty
46
## '$(glibjdir)' in the install tree.
47
## glibj_DATA = glibj.zip
48
 
49
endif # INSTALL_GLIBJ_ZIP
50
 
51
if BUILD_CLASS_FILES
52
noinst_DATA = genclasses compile-classes resources
53
endif # BUILD_CLASS_FILES
54
 
55
if INSTALL_CLASS_FILES
56
 
57
install-data-local: genclasses compile-classes
58
        -$(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)
59
        cp -R gnu $(DESTDIR)$(pkgdatadir)
60
        cp -R java $(DESTDIR)$(pkgdatadir)
61
        cp -R javax $(DESTDIR)$(pkgdatadir)
62
        cp -R org $(DESTDIR)$(pkgdatadir)
63
        cp -R META-INF $(DESTDIR)$(pkgdatadir)
64
 
65
# FIXME - should mimic doc/api/Makefile.am instead...
66
uninstall-local:
67
        rm -rf $(DESTDIR)$(pkgdatadir)/gnu
68
        rm -rf $(DESTDIR)$(pkgdatadir)/java
69
        rm -rf $(DESTDIR)$(pkgdatadir)/javax
70
        rm -rf $(DESTDIR)$(pkgdatadir)/org
71
        rm -rf $(DESTDIR)$(pkgdatadir)/META-INF
72
 
73
endif # INSTALL_CLASS_FILES
74
 
75
.PHONY: genclasses
76
 
77
glibj.zip: classes compile-classes resources
78
        if test "$(ZIP)" != ""; then $(ZIP) -r -D glibj.zip gnu java javax org META-INF > /dev/null; fi
79
 
80
resources: copy-vmresources.sh
81
        if ! [ -e gnu ]; then mkdir gnu; fi
82
        if ! [ -e gnu/java ]; then mkdir gnu/java; fi
83
        if ! [ -e gnu/java/locale ]; then mkdir gnu/java/locale; fi
84
        if ! [ -e gnu/javax/swing/plaf/gtk/icons ]; then mkdir -p gnu/javax/swing/plaf/gtk/icons; fi
85
        list='$(propertydirs)'; for p in $$list; do \
86
          if ! [ -e $$p ]; then mkdir $$p; fi; \
87
        done
88
        list='$(propertyfiles)'; for p in $$list; do \
89
          cp -f $(top_srcdir)/resource/$$p $$p; \
90
        done
91
        list='$(metafiles)'; for p in $$list; do \
92
          cp -f $(top_srcdir)/resource/$$p $$p; \
93
        done
94
        $(SHELL) ./copy-vmresources.sh
95
        list='$(iconfiles)'; for p in $$list; do \
96
          cp -f $(top_srcdir)/$$p $$p; \
97
        done
98
        touch resources
99
 
100
classes: genclasses
101
 
102
$(top_builddir)/java/util/LocaleData.java: $(top_srcdir)/scripts/generate-locale-list.sh
103
        mkdir -p $(top_builddir)/java/util
104
        $(top_srcdir)/scripts/generate-locale-list.sh > $(top_builddir)/java/util/LocaleData.java
105
 
106
genclasses: gen-classlist.sh standard.omit $(top_builddir)/java/util/LocaleData.java gen-xpath-parser
107
        top_builddir=$(top_builddir) top_srcdir=$(top_srcdir) $(SHELL) ./gen-classlist.sh standard
108
 
109
# Only rebuild parsers when explicitly asked to.
110
if REGEN_PARSERS
111
 
112
gen-xpath-parser: $(top_srcdir)/gnu/xml/xpath/XPathParser.java
113
 
114
$(top_srcdir)/gnu/xml/xpath/XPathParser.java: $(top_srcdir)/gnu/xml/xpath/XPathParser.y
115
        ( cd $(top_srcdir)/gnu/xml/xpath; \
116
          $(JAY) XPathParser.y < $(JAY_SKELETON) > XPathParser.java )
117
else
118
 
119
gen-xpath-parser:
120
        true
121
 
122
endif # REGEN_PARSER
123
 
124
$(JAVA_DEPEND): genclasses
125
 
126
if FOUND_GCJ
127
## When building with gcj, we do a recursive make.  We split this rule
128
## out specially, rather than simply defining JAVAC, so that GNU make
129
## will see the recursive make invocation and still allow parallel
130
## builds.
131
compile-classes: classes $(JAVA_SRCS) Makefile
132
        $(MAKE) -f $(srcdir)/Makefile.gcj \
133
          GCJ='$(GCJ)' \
134
          compile_classpath='$(top_builddir):$(compile_classpath)' \
135
          top_srcdir=$(top_srcdir)
136
        touch compile-classes
137
else
138
compile-classes: classes $(JAVA_SRCS) Makefile
139
        $(JAVAC)
140
        touch compile-classes
141
endif
142
 
143
EXTRA_DIST = standard.omit mkcollections.pl.in Makefile.gcj split-for-gcj.sh
144
CLEANFILES = compile-classes resources classes \
145
        glibj.zip classes.1 classes.2 \
146
        $(top_builddir)/java/util/LocaleData.java \
147
        $(JAVA_DEPEND)
148
 
149
clean-local:
150
        -rm -rf gnu
151
        -rm -rf java
152
        -rm -rf javax
153
        -rm -rf org
154
        -rm -rf com
155
        -rm -rf META-INF
156
        -rm -rf lists
157
        -rm -f Makefile.deps
158
 
159
dist-hook:
160
        mkdir -p $(distdir)
161
        cp -dfR $(top_srcdir)/gnu $(top_srcdir)/java $(top_srcdir)/javax $(top_srcdir)/org $(top_srcdir)/vm $(top_srcdir)/resource $(top_distdir)
162
# Delete not wanted files.
163
        $(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm $(top_distdir)/resource -name CVS -print | xargs rm -fr
164
        $(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm $(top_distdir)/resource -name .cvsignore -print | xargs rm -f
165
        $(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name class-dependencies.conf -print | xargs rm -f
166
        rm -f $(top_distdir)/gnu/classpath/Configuration.java
167
        rm -f $(top_distdir)/java/util/LocaleData.java

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.