srcdir = @srcdir@
VPATH = @srcdir@
-# Directory holding libjava.zip.
+# Directory holding libgcj.zip.
prefix = @prefix@
datadir = @datadir@
-libjava_zip = $(datadir)/libjava.zip
+libgcj_zip = $(datadir)/libgcj.zip
# Additional system libraries to link with.
CLIB=
jcf-path.o : jcf-path.c $(CONFIG_H) $(srcdir)/../system.h jcf.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -DLIBJAVA_ZIP_FILE='"$(libjava_zip)"' $(srcdir)/jcf-path.c
+ -DLIBGCJ_ZIP_FILE='"$(libgcj_zip)"' $(srcdir)/jcf-path.c
# These exist for maintenance purposes.
/* Handle CLASSPATH, -classpath, and path searching.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* We support several different ways to set the class path.
- built-in system directory (only libjava.zip)
+ built-in system directory (only libgcj.zip)
CLASSPATH environment variable
-CLASSPATH overrides CLASSPATH
-classpath option - overrides CLASSPATH, -CLASSPATH, and built-in
{
n->flags |= FLAG_ZIP;
/* If the user uses -classpath then he'll have to include
- libjava.zip in the value. We check for this in a simplistic
+ libgcj.zip in the value. We check for this in a simplistic
way. Symlinks will fool this test. This is only used for
-MM and -MMD, so it probably isn't terribly important. */
- if (! strcmp (filename, LIBJAVA_ZIP_FILE))
+ if (! strcmp (filename, LIBGCJ_ZIP_FILE))
n->flags |= FLAG_SYSTEM;
}
char *cp;
add_entry (&sys_dirs, ".", 0);
- add_entry (&sys_dirs, LIBJAVA_ZIP_FILE, 1);
+ add_entry (&sys_dirs, LIBGCJ_ZIP_FILE, 1);
GET_ENV_PATH_LIST (cp, "CLASSPATH");
add_path (&classpath_env, cp, 0);
/* Specific flags and argument handling of the front-end of the
GNU compiler for the Java(TM) language.
- Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
#define MATH_LIBRARY "-lm"
#endif
-extern GENERIC_PTR xmalloc PROTO((size_t));
+extern char *xmalloc PROTO((size_t));
extern int do_spec PROTO((char *));
extern char *input_filename;
extern size_t input_filename_length;
int saw_verbose_flag = 0;
/* This will be 0 if we encounter a situation where we should not
- link in libjava. */
+ link in libgcj. */
int library = 1;
#if COMBINE_INPUTS
/* Saw `-l' option for the thread library. */
char *saw_threadlib = 0;
- /* Saw `-ljava' on command line. */
- int saw_libjava = 0;
+ /* Saw `-lgcj' on command line. */
+ int saw_libgcj = 0;
/* Saw -C or -o option, respectively. */
int saw_C = 0;
main_class_name = argv[i] + 7;
added--;
}
- else if (strcmp (argv[i], "-ljava") == 0)
- saw_libjava = 1;
+ else if (strcmp (argv[i], "-lgcj") == 0)
+ saw_libgcj = 1;
else if (strcmp (argv[i], "-lc") == 0)
args[i] |= WITHLIBC;
#ifdef GC_NAME
if (argc == 2)
{
/* If they only gave us `-v', don't try to link
- in libjava. */
+ in libgcj. */
library = 0;
}
}
continue;
}
- /* Make sure -ljava is before the math library, since libjava
+ /* Make sure -lgcj is before the math library, since libgcj
itself uses those math routines. */
if (!saw_math && (args[i] & MATHLIB) && library)
{
saw_math = argv[i];
}
- /* Likewise -ljava must come before -lc. */
+ /* Likewise -lgcj must come before -lc. */
if (!saw_libc && (args[i] & WITHLIBC) && library)
{
--j;
saw_libc = argv[i];
}
- /* And -ljava must come before -lgcjgc. */
+ /* And -lgcj must come before -lgcjgc. */
if (!saw_gc && (args[i] & GCLIB) && library)
{
--j;
saw_gc = argv[i];
}
- /* And -ljava must come before thread library. */
+ /* And -lgcj must come before thread library. */
if (!saw_threadlib && (args[i] & THREADLIB) && library)
{
--j;
if (saw_g + saw_O == 0)
arglist[j++] = "-g1";
- /* Add `-ljava' if we haven't already done so. */
- if (library && ! saw_libjava)
+ /* Add `-lgcj' if we haven't already done so. */
+ if (library && ! saw_libgcj)
{
- arglist[j++] = "-ljava";
+ arglist[j++] = "-lgcj";
added_libraries++;
}
#endif
/* Thread library must come after GC library as well as after
- -ljava. */
+ -lgcj. */
if (saw_threadlib)
arglist[j++] = saw_threadlib;
#ifdef THREAD_NAME