1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# Split in multiple parts for gcj. This uses a somewhat hacky |
# This script is used when compiling Classpath with gcj. The idea is |
4 |
# procedure for finding the package of a given file. |
# to compile one package at a time, and only recompile packages when |
5 |
|
# actually required. |
6 |
|
|
7 |
|
# We build java->class by package so we need to know what .java files |
8 |
|
# correspond to what package. |
9 |
|
|
10 |
|
# We have a .stamp file for each package; this is the makefile target. |
11 |
|
# We also have a .list file for each package, which lists all the |
12 |
|
# input files in that package. |
13 |
|
|
14 |
|
# gen-classlist.sh makes a list of all the .java files we are going to compile. |
15 |
|
|
16 |
|
# This script generates Makefile.deps, which looks like this: |
17 |
|
# |
18 |
|
# java/awt/AWTUtilities.class: lists/java-awt.stamp |
19 |
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/AWTUtilities.java |
20 |
|
# java/awt/BitMaskExtent.class: lists/java-awt.stamp |
21 |
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/BitMaskExtent.java |
22 |
|
# java/awt/BitwiseXORComposite.class: lists/java-awt.stamp |
23 |
|
# lists/java-awt.list: /home/aph/gcc/gcc/libjava/classpath/gnu/java/awt/BitwiseXORComposite.java |
24 |
|
|
25 |
|
# This uses a somewhat hacky procedure for finding the package of a |
26 |
|
# given file. |
27 |
|
|
28 |
echo "Splitting for gcj" |
echo "Splitting for gcj" |
29 |
rm -f Makefile.deps > /dev/null 2>&1 |
rm -f Makefile.deps > /dev/null 2>&1 |
30 |
test -d lists || mkdir lists |
test -d lists || mkdir lists |