1 ## Input file for automake to generate the Makefile.in used by configure
3 GLIBJ_CLASSPATH='$(top_builddir)/lib':'$(top_builddir)/lib/glibj.zip'
5 # Setup the compiler to use the GNU Classpath library we just build
7 JCOMPILER = $(GCJ) -encoding UTF-8 --bootclasspath $(GLIBJ_CLASSPATH) --classpath . -C
10 JCOMPILER = $(JIKES) $(JIKESENCODING) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(GLIBJ_CLASSPATH):.
13 JCOMPILER = $(GCJX) -encoding UTF-8 -bootclasspath '' -sourcepath '' -classpath $(GLIBJ_CLASSPATH):.
16 JCOMPILER = $(ECJ) -encoding UTF-8 -bootclasspath $(GLIBJ_CLASSPATH) -classpath .
18 error dunno how to setup the JCOMPILER and compile
26 bin_PROGRAMS = appletviewer jarsigner keytool
38 appletviewer_SOURCES = toolwrapper.c
39 appletviewer_CFLAGS = -Wall \
40 -DDATA_DIR="\"$(datadir)\"" \
41 -DPACKAGE="\"$(PACKAGE)\"" \
42 -DTOOLNAME="\"appletviewer\""
43 appletviewer_LDFLAGS = -L$(libdir) $(LIBJVM)
45 jarsigner_SOURCES = toolwrapper.c
46 jarsigner_CFLAGS = -Wall \
47 -DDATA_DIR="\"$(datadir)\"" \
48 -DPACKAGE="\"$(PACKAGE)\"" \
49 -DTOOLNAME="\"jarsigner\""
50 jarsigner_LDFLAGS = -L$(libdir) $(LIBJVM)
52 keytool_SOURCES = toolwrapper.c
53 keytool_CFLAGS = -Wall \
54 -DDATA_DIR="\"$(datadir)\"" \
55 -DPACKAGE="\"$(PACKAGE)\"" \
56 -DTOOLNAME="\"keytool\""
57 keytool_LDFLAGS = -L$(libdir) $(LIBJVM)
60 bin_SCRIPTS = appletviewer jarsigner keytool
63 EXTRA_DIST = toolwrapper.c appletviewer.in jarsigner.in keytool.in
65 # All our example java source files
66 TOOLS_JAVA_FILES = $(srcdir)/gnu/classpath/tools/*.java $(srcdir)/gnu/classpath/tools/*/*.java $(srcdir)/gnu/classpath/tools/*/*/*.java
69 # The zip files with classes we want to produce.
72 # Extra objects that will not exist until configure-time
73 BUILT_SOURCES = $(TOOLS_ZIP)
75 # The templates that must be included into the generated zip file.
76 GRMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/giop/grmic/templates/*.jav
77 RMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/rmi/rmic/templates/*.jav
79 TOOLS_TEMPLATES = $(GRMIC_TEMPLATES) $(RMIC_TEMPLATES)
81 # This covers the built-in help texts, both for giop and rmic subpackages.
82 GIOP_HELPS = $(srcdir)/gnu/classpath/tools/giop/*.txt
83 RMI_HELPS = $(srcdir)/gnu/classpath/tools/rmi/*.txt
85 TOOLS_HELPS = $(GIOP_HELPS) $(RMI_HELPS)
87 # The tool specific README files.
88 READMES = $(srcdir)/gnu/classpath/tools/giop/README
90 # All the files we find "interesting"
91 ALL_TOOLS_FILES = $(TOOLS_JAVA_FILES) $(TOOLS_TEMPLATES) $(TOOLS_HELPS) $(READMES)
93 # Some architecture independent data to be installed.
94 TOOLS_DATA = $(TOOLS_ZIP) README
96 # Where we want these data files installed.
97 TOOLSdir = $(pkgdatadir)
99 # Make sure everything is included in the distribution.
101 srcdir_cnt=`echo $(srcdir) | wc -c`; \
102 for file in $(ALL_TOOLS_FILES); do \
103 f=`echo $$file | cut -c$$srcdir_cnt-`; \
104 fdir=`dirname $$f`; \
105 if test ! -d $(distdir)/$$fdir; then \
106 echo "$(makeinstalldirs) $(distdir)/$$fdir"; \
107 $(mkinstalldirs) $(distdir)/$$fdir; \
109 echo "cp -p $$file $(distdir)/$$f"; \
110 cp -p $$file $(distdir)/$$f; \
113 # To generate the example zip just depend on the sources and ignore
114 # the class files. Always regenerate all .class files and remove them
115 # immediately. And copy the template files we use to the classes dir
116 # so they get also included.
117 $(TOOLS_ZIP): $(TOOLS_JAVA_FILES)
118 mkdir -p classes/gnu/classpath/tools/giop/grmic/templates
119 mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates
120 mkdir -p classes/gnu/classpath/tools/appletviewer
121 mkdir -p classes/gnu/classpath/tools/jarsigner
122 mkdir -p classes/gnu/classpath/tools/keytool
123 cp $(RMIC_TEMPLATES) classes/gnu/classpath/tools/rmi/rmic/templates
124 cp $(GRMIC_TEMPLATES) classes/gnu/classpath/tools/giop/grmic/templates
125 cp $(RMI_HELPS) classes/gnu/classpath/tools/rmi/
126 cp $(GIOP_HELPS) classes/gnu/classpath/tools/giop/
127 $(JCOMPILER) -d classes $(TOOLS_JAVA_FILES)
129 if test "$(ZIP)" != ""; then $(ZIP) -r ../$(TOOLS_ZIP) .; fi; \
130 if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(TOOLS_ZIP) .; fi; \
134 # Zip file be gone! (and make sure the classes are gone too)
136 rm -rf $(TOOLS_ZIP) classes
138 # FIXME: remove this when GNU Classpath includes a bootstrap VM.
139 installcheck-binSCRIPTS: