
* sources.am, Makefile.in: Updated. * Makefile.am (nat_source_files): Removed natProxy.cc. * java/lang/reflect/natProxy.cc: Removed. * gnu/classpath/jdwp/VMFrame.java, gnu/classpath/jdwp/VMIdManager.java, gnu/classpath/jdwp/VMVirtualMachine.java, java/lang/reflect/VMProxy.java: New files. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * scripts/makemake.tcl (verbose): Add gnu/java/awt/peer/qt to BC list. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/net/DefaultContentHandlerFactory.java (getContent): Remove ClasspathToolkit references. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/awt/xlib/XCanvasPeer.java: Add new peer methods. * gnu/awt/xlib/XFramePeer.java: Likewise. * gnu/awt/xlib/XGraphicsConfiguration.java: Likewise. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (libgcjawt_la_SOURCES): Remove jawt.c. Add classpath/native/jawt/jawt.c. * Makefile.in: Regenerate. * jawt.c: Remove file. * include/Makefile.am (tool_include__HEADERS): Remove jawt.h and jawt_md.h. Add ../classpath/include/jawt.h and ../classpath/include/jawt_md.h. * include/Makefile.in: Regenerate. * include/jawt.h: Regenerate. * include/jawt_md.h: Regenerate. From-SVN: r104586
54 lines
1.9 KiB
Bash
Executable file
54 lines
1.9 KiB
Bash
Executable file
#! /bin/sh
|
|
|
|
# This script is used when compiling Classpath with gcj. The idea is
|
|
# to compile one package at a time, and only recompile packages when
|
|
# actually required.
|
|
|
|
# We build java->class by package so we need to know what .java files
|
|
# correspond to what package.
|
|
|
|
# We have a .stamp file for each package; this is the makefile target.
|
|
# We also have a .list file for each package, which lists all the
|
|
# input files in that package.
|
|
|
|
# gen-classlist.sh makes a list of all the .java files we are going to compile.
|
|
|
|
# This script generates Makefile.deps, which looks like this:
|
|
#
|
|
# java/awt/AWTUtilities.class: lists/java-awt.stamp
|
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/AWTUtilities.java
|
|
# java/awt/BitMaskExtent.class: lists/java-awt.stamp
|
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/BitMaskExtent.java
|
|
# java/awt/BitwiseXORComposite.class: lists/java-awt.stamp
|
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/BitwiseXORComposite.java
|
|
|
|
# This uses a somewhat hacky procedure for finding the package of a
|
|
# given file.
|
|
|
|
echo "Splitting for gcj"
|
|
rm -f Makefile.dtmp > /dev/null 2>&1
|
|
test -d lists || mkdir lists
|
|
for dir in java javax gnu org; do
|
|
fgrep /$dir/ classes | while read file; do
|
|
pkg=`echo "$file " | sed -n -e "s,^.*/\($dir/.*\)/[^/]*$,\1,p"`
|
|
list=lists/`echo $pkg | sed -e 's,/,-,g'`
|
|
echo "$file" >> ${list}.list.1
|
|
f2=`echo "$file" | sed -n -e "s,^.*/\($dir/.*\)$,\1,p"`
|
|
f2=`echo "$f2" | sed -e 's/.java$//'`.class
|
|
echo "$f2: ${list}.stamp" >> Makefile.dtmp
|
|
echo "${list}.list: $file" >> Makefile.dtmp
|
|
done
|
|
done
|
|
|
|
# Only update a .list file if it changed.
|
|
for file in lists/*.list.1; do
|
|
real=`echo "$file" | sed -e 's/.1$//'`
|
|
if cmp -s $real $file; then
|
|
rm $file
|
|
else
|
|
mv $file $real
|
|
fi
|
|
done
|
|
|
|
# If we were run we must update Makefile.deps.
|
|
mv Makefile.dtmp Makefile.deps
|