summaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 00:38:43 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-25 00:38:43 +0000
commit90dc9267422e12f549bccd0cd84e407d45a6bc19 (patch)
treed5fad0adecf376ff1dbdfe3f240a480ab44643b5 /libjava/Makefile.am
parentd2f49aead488254eb7102883f09cb53a10dc08eb (diff)
downloadgcc-90dc9267422e12f549bccd0cd84e407d45a6bc19.tar.gz
From libjava...
2005-03-24 Anthony Green <green@redhat.com> * gnu/gcj/tools/gcj_dbtool/Main.java: Accept libdir argument with -p option. (usage): Add [LIBDIR] to help output. * gnu/gcj/tools/gcj_dbtool/natMain.cc: New file. * Makefile.am (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE_PATH_TAIL. (db_pathtail): New macro. From gcc/java... 2005-03-24 Anthony Green <green@redhat.com> * gcj.texi (Invoking gcj-dbtool): Document new LIBDIR option to 'gcj-dbtool -p'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97028 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 933926824ce..30513e60268 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -130,6 +130,8 @@ propdir = $(libdir)
dbexecdir = $(libdir)/gcj-$(gcc_version)
## Name of the default .db.
db_name = classmap.db
+## Compiler specific component of the .db file
+db_pathtail = gcj-@gcc_version@/$(db_name)
## For now, only on native systems. FIXME.
if NATIVE
@@ -185,6 +187,7 @@ AM_CXXFLAGS = \
-DBOOT_CLASS_PATH="\"$(jardir)/$(jar_DATA)\"" \
-DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
-DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
+ -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\"" \
-DTOOLEXECLIBDIR="\"$(toolexeclibdir)\""
AM_GCJFLAGS = \
@@ -715,7 +718,7 @@ inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
gnu/java/nio/PipeImpl$$SourceChannelImpl.h \
$(PLATFORM_INNER_NAT_HDRS)
-nat_headers = $(ordinary_nat_headers) $(inner_nat_headers)
+nat_headers = $(ordinary_nat_headers) $(inner_nat_headers) gnu/gcj/tools/gcj_dbtool/Main.h
nat_headers_install = $(ordinary_nat_headers)
xlib_nat_headers = $(xlib_java_source_files:.java=.h)
@@ -1028,7 +1031,8 @@ jv_convert_LDADD = -L$(here)/.libs libgcj.la
## linking this program.
jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
-gcj_dbtool_SOURCES = gnu/gcj/tools/gcj_dbtool/Main.java
+gcj_dbtool_SOURCES = gnu/gcj/tools/gcj_dbtool/Main.java \
+ gnu/gcj/tools/gcj_dbtool/natMain.cc
## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
## need this because we are explicitly using libtool to link using the
## `.la' file.