1c87b03e5Sespie# Top level makefile fragment for the GNU compiler for the Java(TM) 2c87b03e5Sespie# language. 3c87b03e5Sespie# Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4c87b03e5Sespie 5c87b03e5Sespie#This file is part of GNU CC. 6c87b03e5Sespie 7c87b03e5Sespie#GNU CC is free software; you can redistribute it and/or modify 8c87b03e5Sespie#it under the terms of the GNU General Public License as published by 9c87b03e5Sespie#the Free Software Foundation; either version 2, or (at your option) 10c87b03e5Sespie#any later version. 11c87b03e5Sespie 12c87b03e5Sespie#GNU CC is distributed in the hope that it will be useful, 13c87b03e5Sespie#but WITHOUT ANY WARRANTY; without even the implied warranty of 14c87b03e5Sespie#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15c87b03e5Sespie#GNU General Public License for more details. 16c87b03e5Sespie 17c87b03e5Sespie#You should have received a copy of the GNU General Public License 18c87b03e5Sespie#along with GNU CC; see the file COPYING. If not, write to 19c87b03e5Sespie#the Free Software Foundation, 59 Temple Place - Suite 330, 20c87b03e5Sespie#Boston, MA 02111-1307, USA. 21c87b03e5Sespie 22c87b03e5Sespie#Java and all Java-based marks are trademarks or registered trademarks 23c87b03e5Sespie#of Sun Microsystems, Inc. in the United States and other countries. 24c87b03e5Sespie#The Free Software Foundation is independent of Sun Microsystems, Inc. 25c87b03e5Sespie 26c87b03e5Sespie# This file provides the language dependent support in the main Makefile. 27c87b03e5Sespie# Each language makefile fragment must provide the following targets: 28c87b03e5Sespie# 29c87b03e5Sespie# foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap, 30c87b03e5Sespie# foo.info, foo.dvi, 31c87b03e5Sespie# foo.install-normal, foo.install-common, foo.install-info, foo.install-man, 32c87b03e5Sespie# foo.uninstall, 33c87b03e5Sespie# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean, 34c87b03e5Sespie# foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4 35c87b03e5Sespie# 36c87b03e5Sespie# where `foo' is the name of the language. 37c87b03e5Sespie# 38c87b03e5Sespie# It should also provide rules for: 39c87b03e5Sespie# 40c87b03e5Sespie# - making any compiler driver (eg: g++) 41c87b03e5Sespie# - the compiler proper (eg: jc1) 42c87b03e5Sespie# - define the names for selecting the language in LANGUAGES. 43c87b03e5Sespie 44c87b03e5Sespie# Actual names to use when installing a native compiler. 45c87b03e5SespieJAVA_INSTALL_NAME = `echo gcj|sed '$(program_transform_name)'` 46c87b03e5SespieJAVA_TARGET_INSTALL_NAME = $(target_alias)-`echo gcj|sed '$(program_transform_name)'` 47c87b03e5Sespie 48c87b03e5Sespie# Actual names to use when installing a cross-compiler. 49c87b03e5SespieJAVA_CROSS_NAME = `echo gcj|sed '$(program_transform_cross_name)'` 50c87b03e5Sespie 51c87b03e5SespieGCJ = gcj 52c87b03e5Sespie 53c87b03e5Sespie# Define the names for selecting java in LANGUAGES. 54c87b03e5Sespiejava: jc1$(exeext) $(GCJ)$(exeext) jvgenmain$(exeext) \ 55c87b03e5Sespie gcjh$(exeext) jv-scan$(exeext) jcf-dump$(exeext) 56c87b03e5Sespie 57c87b03e5Sespie# Define the name of target independent tools to be installed in $(bindir) 58c87b03e5Sespie# Names are subject to changes 59c87b03e5SespieJAVA_TARGET_INDEPENDENT_BIN_TOOLS = gcjh jv-scan jcf-dump 60c87b03e5Sespie 61c87b03e5Sespie# Tell GNU make to ignore these if they exist. 62c87b03e5Sespie.PHONY: java 63c87b03e5Sespie 64c87b03e5Sespiejvspec.o: $(srcdir)/java/jvspec.c $(SYSTEM_H) $(GCC_H) $(CONFIG_H) 65c87b03e5Sespie (SHLIB_LINK='$(SHLIB_LINK)' \ 66c87b03e5Sespie SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \ 67c87b03e5Sespie $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \ 68c87b03e5Sespie $(INCLUDES) $(srcdir)/java/jvspec.c $(OUTPUT_OPTION)) 69c87b03e5Sespie 70c87b03e5Sespie# Create the compiler driver for $(GCJ). 71c87b03e5Sespie$(GCJ)$(exeext): gcc.o jvspec.o version.o \ 72c87b03e5Sespie prefix.o intl.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 73c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o jvspec.o prefix.o intl.o \ 74c87b03e5Sespie version.o $(EXTRA_GCC_OBJS) $(LIBS) 75c87b03e5Sespie 76c87b03e5Sespie# Create a version of the $(GCJ) driver which calls the cross-compiler. 77c87b03e5Sespie$(GCJ)-cross$(exeext): $(GCJ)$(exeext) 78c87b03e5Sespie -rm -f $(GCJ)-cross$(exeext) 79c87b03e5Sespie cp $(GCJ)$(exeext) $(GCJ)-cross$(exeext) 80c87b03e5Sespie 81c87b03e5Sespiepo-generated: $(srcdir)/java/parse.c $(srcdir)/java/parse-scan.c 82c87b03e5Sespie 83*6f35514bSespie#$(srcdir)/java/parse.c: $(srcdir)/java/parse.y 84*6f35514bSespie# $(BISON) -t --name-prefix=java_ $(BISONFLAGS) \ 85*6f35514bSespie# -o p$$$$.c $(srcdir)/java/parse.y && \ 86*6f35514bSespie# mv -f p$$$$.c $(srcdir)/java/parse.c 87c87b03e5Sespie 88*6f35514bSespie#$(srcdir)/java/parse-scan.c: $(srcdir)/java/parse-scan.y 89*6f35514bSespie# $(BISON) -t $(BISONFLAGS) -o ps$$$$.c $(srcdir)/java/parse-scan.y && \ 90*6f35514bSespie# mv -f ps$$$$.c $(srcdir)/java/parse-scan.c 91c87b03e5Sespie 92*6f35514bSespie#$(srcdir)/java/keyword.h: $(srcdir)/java/keyword.gperf 93*6f35514bSespie# (cd $(srcdir)/java || exit 1; \ 94*6f35514bSespie# gperf -L C -C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k1,4,$$ \ 95*6f35514bSespie# keyword.gperf > k$$$$.h || { \ 96*6f35514bSespie# echo "Please update gperf from ftp://ftp.gnu.org/pub/gnu/gperf/" >&2; \ 97*6f35514bSespie# rm -f k$$$$.h; \ 98*6f35514bSespie# exit 1; } ; \ 99*6f35514bSespie# mv -f k$$$$.h keyword.h) 100c87b03e5Sespie 101c87b03e5Sespiegt-java-class.h gt-java-constants.h gt-java-decl.h : s-gtype ; @true 102c87b03e5Sespiegt-java-expr.h gt-java-jcf-parse.h gt-java-jcf-write.h : s-gtype ; @true 103c87b03e5Sespiegt-java-lang.h gt-java-mangle.h gt-java-parse.h : s-gtype ; @true 104c87b03e5Sespiegt-java-builtins.h gtype-java.h : s-gtype ; @true 105c87b03e5Sespie 106c87b03e5Sespie# Executables built by this Makefile: 107c87b03e5SespieJAVA_OBJS = java/parse.o java/class.o java/decl.o java/expr.o \ 108c87b03e5Sespie java/constants.o java/lang.o java/typeck.o java/except.o java/verify.o \ 109c87b03e5Sespie java/zextract.o java/jcf-io.o java/win32-host.o java/jcf-parse.o \ 110c87b03e5Sespie java/mangle.o java/mangle_name.o java/builtins.o \ 111c87b03e5Sespie java/jcf-write.o java/buffer.o java/check-init.o java/jcf-depend.o \ 112c87b03e5Sespie java/jcf-path.o java/xref.o java/boehm.o java/java-tree-inline.o mkdeps.o 113c87b03e5Sespie 114c87b03e5SespieGCJH_OBJS = java/gjavah.o java/jcf-io.o java/win32-host.o java/jcf-depend.o \ 115c87b03e5Sespie java/jcf-path.o java/zextract.o version.o mkdeps.o errors.o 116c87b03e5Sespie 117c87b03e5SespieJVSCAN_OBJS = java/parse-scan.o java/jv-scan.o version.o 118c87b03e5Sespie 119c87b03e5SespieJCFDUMP_OBJS = java/jcf-dump.o java/jcf-io.o java/win32-host.o java/jcf-depend.o \ 120c87b03e5Sespie java/jcf-path.o java/zextract.o errors.o version.o mkdeps.o 121c87b03e5Sespie 122c87b03e5SespieJVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o 123c87b03e5Sespie 124c87b03e5Sespie# Use loose warnings for this front end. 125c87b03e5Sespiejava-warn = 126c87b03e5Sespie 127c87b03e5Sespiejc1$(exeext): $(JAVA_OBJS) $(BACKEND) $(LIBDEPS) 128c87b03e5Sespie rm -f $@ 129c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ 130c87b03e5Sespie $(JAVA_OBJS) $(BACKEND) $(ZLIB) $(LIBICONV) $(LIBS) 131c87b03e5Sespie 132c87b03e5Sespiegcjh$(exeext): $(GCJH_OBJS) $(LIBDEPS) 133c87b03e5Sespie rm -f $@ 134c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(GCJH_OBJS) $(ZLIB) $(LIBS) 135c87b03e5Sespie 136c87b03e5Sespiejv-scan$(exeext): $(JVSCAN_OBJS) $(LIBDEPS) 137c87b03e5Sespie rm -f $@ 138c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVSCAN_OBJS) $(LIBICONV) $(LIBS) 139c87b03e5Sespie 140c87b03e5Sespiejcf-dump$(exeext): $(JCFDUMP_OBJS) $(LIBDEPS) 141c87b03e5Sespie rm -f $@ 142c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JCFDUMP_OBJS) \ 143c87b03e5Sespie $(ZLIB) $(LDEXP_LIB) $(LIBS) 144c87b03e5Sespie 145c87b03e5Sespiejvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS) 146c87b03e5Sespie rm -f $@ 147c87b03e5Sespie $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVGENMAIN_OBJS) $(LIBS) 148c87b03e5Sespie 149c87b03e5Sespie# 150c87b03e5Sespie# Build hooks: 151c87b03e5Sespie 152c87b03e5Sespiejava.all.build: $(GCJ)$(exeext) 153c87b03e5Sespiejava.all.cross: $(GCJ)-cross$(exeext) 154c87b03e5Sespiejava.start.encap: $(GCJ)$(exeext) 155c87b03e5Sespiejava.rest.encap: 156c87b03e5Sespie 157c87b03e5Sespiejava.info: $(srcdir)/java/gcj.info 158c87b03e5Sespiejava.dvi: java/gcj.dvi 159*6f35514bSespiejava.generated-manpages: java/gcj.1 java/gcjh.1 \ 160*6f35514bSespie java/jv-scan.1 java/jcf-dump.1 \ 161*6f35514bSespie java/gij.1 java/jv-convert.1 \ 162*6f35514bSespie java/rmic.1 java/rmiregistry.1 163c87b03e5Sespie 164c87b03e5Sespie# Install hooks: 165c87b03e5Sespie# jc1, gcj, jvgenmain, and gcjh are installed elsewhere as part 166c87b03e5Sespie# of $(COMPILERS). 167c87b03e5Sespie 168c87b03e5Sespie# Nothing to do here. 169c87b03e5Sespiejava.install-normal: 170c87b03e5Sespie 171c87b03e5Sespiejava.install-common: installdirs 172c87b03e5Sespie -if [ -f $(GCJ)$(exeext) ]; then \ 173c87b03e5Sespie if [ -f $(GCJ)-cross$(exeext) ]; then \ 174c87b03e5Sespie rm -f $(DESTDIR)$(bindir)/$(JAVA_CROSS_NAME)$(exeext); \ 175c87b03e5Sespie $(INSTALL_PROGRAM) $(GCJ)-cross$(exeext) $(DESTDIR)$(bindir)/$(JAVA_CROSS_NAME)$(exeext); \ 176c87b03e5Sespie chmod a+x $(DESTDIR)$(bindir)/$(JAVA_CROSS_NAME)$(exeext); \ 177c87b03e5Sespie else \ 178c87b03e5Sespie rm -f $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \ 179c87b03e5Sespie $(INSTALL_PROGRAM) $(GCJ)$(exeext) $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \ 180c87b03e5Sespie chmod a+x $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \ 181c87b03e5Sespie rm -f $(DESTDIR)$(bindir)/$(JAVA_TARGET_INSTALL_NAME)$(exeext); \ 182c87b03e5Sespie ( cd $(DESTDIR)$(bindir) && \ 183c87b03e5Sespie $(LN) $(JAVA_INSTALL_NAME)$(exeext) $(JAVA_TARGET_INSTALL_NAME)$(exeext) ); \ 184c87b03e5Sespie fi ; \ 185c87b03e5Sespie fi ; \ 186c87b03e5Sespie for tool in $(JAVA_TARGET_INDEPENDENT_BIN_TOOLS); do \ 187c87b03e5Sespie tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \ 188c87b03e5Sespie if [ -f $$tool$(exeext) ]; then \ 189c87b03e5Sespie rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \ 190c87b03e5Sespie $(INSTALL_PROGRAM) $$tool$(exeext) $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \ 191c87b03e5Sespie chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \ 192c87b03e5Sespie fi ; \ 193c87b03e5Sespie done 194c87b03e5Sespie 195c87b03e5Sespiejava.install-man: 196c87b03e5Sespie 197c87b03e5Sespiejava.uninstall: 198c87b03e5Sespie -rm -rf $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext) 199c87b03e5Sespie -rm -rf $(DESTDIR)$(bindir)/$(JAVA_CROSS_NAME)$(exeext) 200c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext) 201c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/$(JAVA_CROSS_NAME)$(man1ext) 202c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/gcjh$(man1ext) 203c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/jv-scan$(man1ext) 204c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/jcf-dump$(man1ext) 205c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/gij$(man1ext) 206c87b03e5Sespie -rm -rf $(DESTDIR)$(man1dir)/jv-convert$(man1ext) 207c87b03e5Sespie 208c87b03e5Sespiejava.install-info: installdirs 209c87b03e5Sespie if [ -f jc1$(exeext) ] ; then \ 210c87b03e5Sespie if [ -f $(srcdir)/java/gcj.info ]; then \ 211c87b03e5Sespie rm -f $(DESTDIR)$(infodir)/gcj.info*; \ 212c87b03e5Sespie for f in $(srcdir)/java/gcj.info*; do \ 213c87b03e5Sespie realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ 214c87b03e5Sespie $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \ 215c87b03e5Sespie done; \ 216c87b03e5Sespie chmod a-x $(DESTDIR)$(infodir)/gcj.info*; \ 217c87b03e5Sespie else true; fi; \ 218c87b03e5Sespie else true; fi 219c87b03e5Sespie -if [ -f jc1$(exeext) ] && [ -f $(DESTDIR)$(infodir)/gcj.info ]; then \ 220c87b03e5Sespie if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ 221c87b03e5Sespie install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/gcj.info; \ 222c87b03e5Sespie else true; fi; \ 223c87b03e5Sespie else true; fi 224c87b03e5Sespie 225c87b03e5Sespie# 226c87b03e5Sespie# Clean hooks: 227c87b03e5Sespie# A lot of the ancillary files are deleted by the main makefile. 228c87b03e5Sespie# We just have to delete files specific to us. 229c87b03e5Sespie 230c87b03e5Sespiejava.mostlyclean: 231c87b03e5Sespie -rm -f java/*$(objext) $(DEMANGLER_PROG) 232c87b03e5Sespie -rm -f java/*$(coverageexts) 233c87b03e5Sespie -rm -f jc1$(exeext) $(GCJ)$(exeext) jvgenmain$(exeext) gcjh$(exeext) jv-scan$(exeext) jcf-dump$(exeext) s-java 234c87b03e5Sespiejava.clean: 235c87b03e5Sespiejava.distclean: 236c87b03e5Sespie -rm -f java/config.status java/Makefile 237c87b03e5Sespie -rm -f java/parse.output 238c87b03e5Sespiejava.extraclean: 239c87b03e5Sespiejava.maintainer-clean: 240c87b03e5Sespie -rm -f java/parse.c java/parse-scan.c java/parse.output java/y.tab.c 241*6f35514bSespie -rm -f java/gcj.1 java/gcjh.1 242*6f35514bSespie -rm -f java/jv-scan.1 java/jcf-dump.1 243*6f35514bSespie -rm -f java/gij.1 244*6f35514bSespie -rm -f java/jv-convert.1 245*6f35514bSespie -rm -f java/rmic.1 246*6f35514bSespie -rm -f java/rmiregistry.1 247c87b03e5Sespie# 248c87b03e5Sespie# Stage hooks: 249c87b03e5Sespie# The main makefile has already created stage?/java. 250c87b03e5Sespie 251c87b03e5Sespiejava.stage1: stage1-start 252c87b03e5Sespie -mv java/*$(objext) stage1/java 253c87b03e5Sespiejava.stage2: stage2-start 254c87b03e5Sespie -mv java/*$(objext) stage2/java 255c87b03e5Sespiejava.stage3: stage3-start 256c87b03e5Sespie -mv java/*$(objext) stage3/java 257c87b03e5Sespiejava.stage4: stage4-start 258c87b03e5Sespie -mv java/*$(objext) stage4/java 259c87b03e5Sespie 260c87b03e5Sespie# 261c87b03e5Sespie# .o:.h dependencies. 262c87b03e5SespieJAVA_TREE_H = $(TREE_H) $(HASHTAB_H) java/java-tree.h java/java-tree.def 263c87b03e5SespieJAVA_LEX_C = java/lex.c java/keyword.h java/chartables.h 264c87b03e5Sespie 265c87b03e5Sespiejava/parse.o: java/parse.c java/jcf-reader.c $(CONFIG_H) $(SYSTEM_H) \ 266c87b03e5Sespie function.h $(JAVA_TREE_H) $(JAVA_LEX_C) java/parse.h java/lex.h $(GGC_H) \ 267c87b03e5Sespie debug.h gt-java-parse.h gtype-java.h 268c87b03e5Sespiejava/jcf-dump.o: $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) java/jcf-dump.c \ 269c87b03e5Sespie java/jcf-reader.c java/jcf.h java/javaop.h java/javaop.def version.h 270c87b03e5Sespiejava/gjavah.o: $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) java/gjavah.c \ 271c87b03e5Sespie java/jcf-reader.c java/jcf.h java/javaop.h version.h 272c87b03e5Sespiejava/boehm.o: java/boehm.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(JAVA_TREE_H) \ 273c87b03e5Sespie java/parse.h toplev.h 274c87b03e5Sespiejava/buffer.o: java/buffer.c $(CONFIG_H) java/buffer.h $(SYSTEM_H) toplev.h 275c87b03e5Sespiejava/builtins.o: java/builtins.c $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) \ 276c87b03e5Sespie $(GGC_H) flags.h builtin-types.def langhooks.h gt-java-builtins.h 277c87b03e5Sespiejava/check-init.o: java/check-init.c $(CONFIG_H) \ 278c87b03e5Sespie $(JAVA_TREE_H) $(SYSTEM_H) toplev.h 279c87b03e5Sespiejava/class.o: java/class.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) java/jcf.h \ 280c87b03e5Sespie java/parse.h toplev.h $(SYSTEM_H) output.h $(GGC_H) $(TARGET_H) function.h \ 281c87b03e5Sespie gt-java-class.h 282c87b03e5Sespiejava/constants.o: java/constants.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \ 283c87b03e5Sespie toplev.h $(SYSTEM_H) $(GGC_H) gt-java-constants.h 284c87b03e5Sespiejava/decl.o: java/decl.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) java/jcf.h \ 285c87b03e5Sespie toplev.h flags.h $(SYSTEM_H) function.h expr.h libfuncs.h except.h \ 286c87b03e5Sespie java/java-except.h $(GGC_H) real.h gt-java-decl.h 287c87b03e5Sespiejava/except.o: java/except.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h real.h \ 288c87b03e5Sespie $(RTL_H) java/javaop.h java/java-opcodes.h except.h java/java-except.h \ 289c87b03e5Sespie toplev.h $(SYSTEM_H) function.h 290c87b03e5Sespiejava/expr.o: java/expr.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h real.h \ 291c87b03e5Sespie $(RTL_H) $(EXPR_H) java/javaop.h java/java-opcodes.h except.h \ 292c87b03e5Sespie java/java-except.h java/java-except.h java/parse.h toplev.h \ 293c87b03e5Sespie $(SYSTEM_H) $(GGC_H) gt-java-expr.h 294c87b03e5Sespiejava/java-tree-inline.o: tree-inline.c $(CONFIG_H) $(SYSTEM_H) \ 295c87b03e5Sespie $(TREE_H) $(RTL_H) expr.h flags.h params.h input.h insn-config.h \ 296c87b03e5Sespie $(INTEGRATE_H) $(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) toplev.h \ 297c87b03e5Sespie langhooks.h $(C_COMMON_H) $(srcdir)/tree-inline.h 298c87b03e5Sespie $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 299c87b03e5Sespie -DINLINER_FOR_JAVA=1 \ 300c87b03e5Sespie $(srcdir)/tree-inline.c -o $@ 301c87b03e5Sespiejava/jcf-depend.o: java/jcf-depend.c $(CONFIG_H) $(SYSTEM_H) java/jcf.h 302c87b03e5Sespiejava/jcf-parse.o: java/jcf-parse.c $(CONFIG_H) $(JAVA_TREE_H) flags.h \ 303c87b03e5Sespie input.h java/java-except.h $(SYSTEM_H) toplev.h java/parse.h $(GGC_H) \ 304c87b03e5Sespie debug.h real.h gt-java-jcf-parse.h 305c87b03e5Sespiejava/win32-host.o: java/win32-host.c $(CONFIG_H) $(SYSTEM_H) java/jcf.h 306c87b03e5Sespiejava/jcf-write.o: java/jcf-write.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \ 307c87b03e5Sespie $(RTL_H) java/java-opcodes.h java/parse.h java/buffer.h $(SYSTEM_H) \ 308c87b03e5Sespie toplev.h $(GGC_H) gt-java-jcf-write.h 309c87b03e5Sespiejava/jv-scan.o: java/jv-scan.c $(CONFIG_H) $(SYSTEM_H) version.h 310c87b03e5Sespiejava/jvgenmain.o: java/jvgenmain.c $(CONFIG_H) $(JAVA_TREE_H) $(SYSTEM_H) 311c87b03e5Sespiejava/lang.o: java/lang.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h input.h \ 312c87b03e5Sespie toplev.h $(SYSTEM_H) $(RTL_H) $(EXPR_H) diagnostic.h langhooks.h \ 313c87b03e5Sespie $(LANGHOOKS_DEF_H) gt-java-lang.h 314c87b03e5Sespiejava/mangle.o: java/mangle.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) $(SYSTEM_H) \ 315c87b03e5Sespie toplev.h $(GGC_H) gt-java-mangle.h 316c87b03e5Sespiejava/mangle_name.o: java/mangle_name.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) \ 317c87b03e5Sespie $(SYSTEM_H) toplev.h $(GGC_H) 318c87b03e5Sespiejava/parse-scan.o: $(CONFIG_H) $(SYSTEM_H) toplev.h $(JAVA_LEX_C) java/parse.h \ 319c87b03e5Sespie java/lex.h 320c87b03e5Sespiejava/typeck.o: java/typeck.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \ 321c87b03e5Sespie java/convert.h toplev.h $(SYSTEM_H) $(GGC_H) real.h 322c87b03e5Sespiejava/verify.o: java/verify.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \ 323c87b03e5Sespie java/javaop.h java/java-opcodes.h java/java-except.h toplev.h $(SYSTEM_H) 324c87b03e5Sespiejava/xref.o: java/xref.c java/xref.h $(CONFIG_H) $(JAVA_TREE_H) toplev.h \ 325c87b03e5Sespie $(SYSTEM_H) 326c87b03e5Sespiejava/zextract.o: java/zextract.c $(CONFIG_H) $(SYSTEM_H) java/zipfile.h 327c87b03e5Sespie 328c87b03e5Sespie# jcf-io.o needs $(ZLIBINC) added to cflags. 329c87b03e5Sespiejava/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) 330c87b03e5Sespie $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ZLIBINC) \ 331c87b03e5Sespie $(srcdir)/java/jcf-io.c $(OUTPUT_OPTION) 332c87b03e5Sespie 333c87b03e5Sespie# jcf-path.o needs a -D. 334c87b03e5Sespiejava/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) java/jcf.h 335c87b03e5Sespie $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 336c87b03e5Sespie -DLIBGCJ_ZIP_FILE='"$(datadir)/java/libgcj-$(version).jar"' \ 337c87b03e5Sespie -DDEFAULT_TARGET_VERSION=\"$(version)\" \ 338c87b03e5Sespie $(srcdir)/java/jcf-path.c $(OUTPUT_OPTION) 339c87b03e5Sespie 340c87b03e5Sespie# Documentation 341c87b03e5Sespie$(srcdir)/java/gcj.info: $(srcdir)/java/gcj.texi \ 342c87b03e5Sespie $(srcdir)/doc/include/fdl.texi $(srcdir)/doc/include/gpl.texi \ 343c87b03e5Sespie $(srcdir)/doc/include/gcc-common.texi 344c87b03e5Sespie if test "x$(BUILD_INFO)" = xinfo; then \ 345c87b03e5Sespie rm -f $(srcdir)/java/gcc.info*; \ 346c87b03e5Sespie cd $(srcdir)/java && $(MAKEINFO) -I../doc/include -o gcj.info gcj.texi; \ 347c87b03e5Sespie else true; fi 348c87b03e5Sespie 349c87b03e5Sespiejava/gcj.dvi: $(srcdir)/java/gcj.texi $(srcdir)/doc/include/fdl.texi \ 350c87b03e5Sespie $(srcdir)/doc/include/gpl.texi $(srcdir)/doc/include/gcc-common.texi 351c87b03e5Sespie s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ 352c87b03e5Sespie cd java && $(TEXI2DVI) -I $$s/doc/include $$s/java/gcj.texi 353c87b03e5Sespie 354*6f35514bSespiejava/gcj.1: $(srcdir)/java/gcj.texi 355c87b03e5Sespie -$(TEXI2POD) -D gcj < $(srcdir)/java/gcj.texi > java/gcj.pod 356c87b03e5Sespie -($(POD2MAN) --section=1 java/gcj.pod > java/gcj.1.T$$$$ && \ 357*6f35514bSespie mv -f java/gcj.1.T$$$$ java/gcj.1) || \ 358c87b03e5Sespie (rm -f java/gcj.1.T$$$$ && exit 1) 359c87b03e5Sespie -rm -f java/gcj.pod 360c87b03e5Sespie 361*6f35514bSespiejava/gcjh.1: $(srcdir)/java/gcj.texi 362c87b03e5Sespie -$(TEXI2POD) -D gcjh < $(srcdir)/java/gcj.texi > java/gcjh.pod 363c87b03e5Sespie -($(POD2MAN) --section=1 java/gcjh.pod > java/gcjh.1.T$$$$ && \ 364*6f35514bSespie mv -f java/gcjh.1.T$$$$ java/gcjh.1) || \ 365c87b03e5Sespie (rm -f java/gcjh.1.T$$$$ && exit 1) 366c87b03e5Sespie -rm -f java/gcjh.pod 367c87b03e5Sespie 368*6f35514bSespiejava/jv-scan.1: $(srcdir)/java/gcj.texi 369c87b03e5Sespie -$(TEXI2POD) -D jv-scan < $(srcdir)/java/gcj.texi > java/jv-scan.pod 370c87b03e5Sespie -($(POD2MAN) --section=1 java/jv-scan.pod > java/jv-scan.1.T$$$$ && \ 371*6f35514bSespie mv -f java/jv-scan.1.T$$$$ java/jv-scan.1) || \ 372c87b03e5Sespie (rm -f java/jv-scan.1.T$$$$ && exit 1) 373c87b03e5Sespie -rm -f java/jv-scan.pod 374c87b03e5Sespie 375*6f35514bSespiejava/jcf-dump.1: $(srcdir)/java/gcj.texi 376c87b03e5Sespie -$(TEXI2POD) -D jcf-dump < $(srcdir)/java/gcj.texi > java/jcf-dump.pod 377c87b03e5Sespie -($(POD2MAN) --section=1 java/jcf-dump.pod > java/jcf-dump.1.T$$$$ && \ 378*6f35514bSespie mv -f java/jcf-dump.1.T$$$$ java/jcf-dump.1) || \ 379c87b03e5Sespie (rm -f java/jcf-dump.1.T$$$$ && exit 1) 380c87b03e5Sespie -rm -f java/jcf-dump.pod 381c87b03e5Sespie 382*6f35514bSespiejava/gij.1: $(srcdir)/java/gcj.texi 383c87b03e5Sespie -$(TEXI2POD) -D gij < $(srcdir)/java/gcj.texi > java/gij.pod 384c87b03e5Sespie -($(POD2MAN) --section=1 java/gij.pod > java/gij.1.T$$$$ && \ 385*6f35514bSespie mv -f java/gij.1.T$$$$ java/gij.1) || \ 386c87b03e5Sespie (rm -f java/gij.1.T$$$$ && exit 1) 387c87b03e5Sespie -rm -f java/gij.pod 388c87b03e5Sespie 389*6f35514bSespiejava/jv-convert.1: $(srcdir)/java/gcj.texi 390c87b03e5Sespie -$(TEXI2POD) -D jv-convert < $(srcdir)/java/gcj.texi > java/jv-convert.pod 391c87b03e5Sespie -($(POD2MAN) --section=1 java/jv-convert.pod > java/jv-convert.1.T$$$$ && \ 392*6f35514bSespie mv -f java/jv-convert.1.T$$$$ java/jv-convert.1) || \ 393c87b03e5Sespie (rm -f java/jv-convert.1.T$$$$ && exit 1) 394c87b03e5Sespie -rm -f java/jv-convert.pod 395c87b03e5Sespie 396*6f35514bSespiejava/rmic.1: $(srcdir)/java/gcj.texi 397c87b03e5Sespie -$(TEXI2POD) -D rmic < $(srcdir)/java/gcj.texi > java/rmic.pod 398c87b03e5Sespie -($(POD2MAN) --section=1 java/rmic.pod > java/rmic.1.T$$$$ && \ 399*6f35514bSespie mv -f java/rmic.1.T$$$$ java/rmic.1) || \ 400c87b03e5Sespie (rm -f java/rmic.1.T$$$$ && exit 1) 401c87b03e5Sespie -rm -f java/rmic.pod 402c87b03e5Sespie 403*6f35514bSespiejava/rmiregistry.1: $(srcdir)/java/gcj.texi 404c87b03e5Sespie -$(TEXI2POD) -D rmiregistry < $(srcdir)/java/gcj.texi > java/rmiregistry.pod 405c87b03e5Sespie -($(POD2MAN) --section=1 java/rmiregistry.pod > java/rmiregistry.1.T$$$$ && \ 406*6f35514bSespie mv -f java/rmiregistry.1.T$$$$ java/rmiregistry.1) || \ 407c87b03e5Sespie (rm -f java/rmiregistry.1.T$$$$ && exit 1) 408c87b03e5Sespie -rm -f java/rmiregistry.pod 409c87b03e5Sespie 410c87b03e5Sespie# Install the man pages. 411c87b03e5Sespiejava.install-man: installdirs $(GENERATED_JAVA_MANPAGES) 412c87b03e5Sespie -if [ -f $(GCJ)$(exeext) ]; then \ 413c87b03e5Sespie if [ -f $(GCJ)-cross$(exeext) ]; then \ 414c87b03e5Sespie rm -f $(DESTDIR)$(man1dir)/$(JAVA_CROSS_NAME)$(man1ext); \ 415*6f35514bSespie $(INSTALL_DATA) java/gcj.1 $(DESTDIR)$(man1dir)/$(JAVA_CROSS_NAME)$(man1ext); \ 416c87b03e5Sespie chmod a-x $(DESTDIR)$(man1dir)/$(JAVA_CROSS_NAME)$(man1ext); \ 417c87b03e5Sespie else \ 418c87b03e5Sespie rm -f $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext); \ 419*6f35514bSespie $(INSTALL_DATA) java/gcj.1 $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext); \ 420c87b03e5Sespie chmod a-x $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext); \ 421c87b03e5Sespie fi ; \ 422c87b03e5Sespie fi 423c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/gcjh$(man1ext) 424*6f35514bSespie -$(INSTALL_DATA) java/gcjh.1 $(DESTDIR)$(man1dir)/gcjh$(man1ext) 425c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/gcjh$(man1ext) 426c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/jv-scan$(man1ext) 427*6f35514bSespie -$(INSTALL_DATA) java/jv-scan.1 $(DESTDIR)$(man1dir)/jv-scan$(man1ext) 428c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/jv-scan$(man1ext) 429c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/jcf-dump$(man1ext) 430*6f35514bSespie -$(INSTALL_DATA) java/jcf-dump.1 $(DESTDIR)$(man1dir)/jcf-dump$(man1ext) 431c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/jcf-dump$(man1ext) 432c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/gij$(man1ext) 433*6f35514bSespie -$(INSTALL_DATA) java/gij.1 $(DESTDIR)$(man1dir)/gij$(man1ext) 434c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/gij$(man1ext) 435c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/jv-convert$(man1ext) 436*6f35514bSespie -$(INSTALL_DATA) java/jv-convert.1 $(DESTDIR)$(man1dir)/jv-convert$(man1ext) 437c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/jv-convert$(man1ext) 438c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/rmic$(man1ext) 439*6f35514bSespie -$(INSTALL_DATA) java/rmic.1 $(DESTDIR)$(man1dir)/rmic$(man1ext) 440c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/rmic$(man1ext) 441c87b03e5Sespie -rm -f $(DESTDIR)$(man1dir)/rmiregistry$(man1ext) 442*6f35514bSespie -$(INSTALL_DATA) java/rmiregistry.1 $(DESTDIR)$(man1dir)/rmiregistry$(man1ext) 443c87b03e5Sespie -chmod a-x $(DESTDIR)$(man1dir)/rmiregistry$(man1ext) 444