aboutsummaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorKelley Cook <kcook@gcc.gnu.org>2005-06-22 01:30:12 +0000
committerR. Kelley Cook <kcook@gcc.gnu.org>2005-06-22 01:30:12 +0000
commitfeffe3353fb4ce2bc621d32a5118a68a0c349a71 (patch)
treeb71fbb6d896ded41ca6a740537d8e9bc34e87a27 /libjava/Makefile.am
parentaee95d554554e10ed5cf7c12a67b9cf80b91914f (diff)
downloadgcc-feffe3353fb4ce2bc621d32a5118a68a0c349a71.zip
gcc-feffe3353fb4ce2bc621d32a5118a68a0c349a71.tar.gz
gcc-feffe3353fb4ce2bc621d32a5118a68a0c349a71.tar.bz2
Makefile.am (SUBDIRS): Use append for conditional.
2005-06-22 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am (SUBDIRS): Use append for conditional. (toolexeclib_LTLIBRARIES): Likewise. (lib_gnu_java_awt_peer_gtk_la_SOURCES): Directly define with a conditional append. * Makefile.in: Regenerate. From-SVN: r101246
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am55
1 files changed, 19 insertions, 36 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 44e3eba..ac0457e 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -7,11 +7,9 @@ ACLOCAL_AMFLAGS = -I . -I ../config
# May be used by various substitution variables.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-## Testsuite conditional.
-if TESTSUBDIR
-SUBDIRS = $(DIRLTDL) testsuite gcj include external
-else
SUBDIRS = $(DIRLTDL) gcj include external
+if TESTSUBDIR
+SUBDIRS += testsuite
endif
# write_entries_to_file - writes each entry in a list
@@ -32,24 +30,17 @@ target_noncanonical = @target_noncanonical@
## What gets installed, and where.
##
+toolexeclib_LTLIBRARIES = libgcj.la libgij.la
+toolexecmainlib_DATA = libgcj.spec
+
if XLIB_AWT
-cond_xlib_ltlibrary = lib-gnu-awt-xlib.la
-else
-cond_xlib_ltlibrary =
+toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
endif
if GTK_AWT
-cond_gtk_ltlibrary = lib-gnu-java-awt-peer-gtk.la
-cond_gtk_gcjawt_ltlibrary = libgcjawt.la
-else
-cond_gtk_ltlibrary =
-cond_gtk_gcjawt_ltlibrary =
+toolexeclib_LTLIBRARIES += lib-gnu-java-awt-peer-gtk.la libgcjawt.la
endif
-toolexeclib_LTLIBRARIES = libgcj.la libgij.la \
- $(cond_gtk_ltlibrary) $(cond_gtk_gcjawt_ltlibrary) $(cond_xlib_ltlibrary)
-toolexecmainlib_DATA = libgcj.spec
-
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgcj.pc
@@ -141,10 +132,9 @@ AM_GCJFLAGS = \
--encoding=UTF-8 \
-Wno-deprecated -fbootstrap-classes
-if USING_GCC
-AM_CFLAGS = @LIBGCJ_CFLAGS@ $(WARNINGS)
-else
AM_CFLAGS = @LIBGCJ_CFLAGS@
+if USING_GCC
+AM_CFLAGS += $(WARNINGS)
endif
## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
@@ -314,17 +304,8 @@ $(db_name): gcj-dbtool$(EXEEXT)
## not available.
./gcj-dbtool -n $(db_name) || touch $(db_name)
-# Gtk/Cairo JNI sources.
-if GTK_CAIRO
-gtk_cairo_c_source_files = \
-jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
-else
-gtk_cairo_c_source_files =
-endif
-
## Gtk JNI sources.
-gtk_c_source_files = \
-$(gtk_cairo_c_source_files) \
+lib_gnu_java_awt_peer_gtk_la_SOURCES = \
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c \
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c \
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c \
@@ -363,7 +344,15 @@ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c \
jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c \
jni/gtk-peer/gthread-jni.c \
jni/gtk-peer/gtk_jawt.c \
-jni/classpath/native_state.c
+jni/classpath/native_state.c \
+jni/gtk-peer/gthread-jni.h \
+jni/gtk-peer/gtkpeer.h \
+jni/classpath/native_state.h
+
+# Gtk/Cairo JNI sources.
+if GTK_CAIRO
+lib_gnu_java_awt_peer_gtk_la_SOURCES += jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
+endif
## Java sources for Gtk peers.
gtk_awt_peer_source_files = \
@@ -505,12 +494,6 @@ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.lo: $(top_builddir)/jniinclude/
## that JNI headers are built before JNI C files.
$(lib_gnu_java_awt_peer_gtk_la_OBJECTS): $(lib_gnu_java_awt_peer_gtk_la_DEPENDENCIES)
-lib_gnu_java_awt_peer_gtk_la_SOURCES = \
-$(gtk_c_source_files) \
-jni/gtk-peer/gthread-jni.h \
-jni/gtk-peer/gtkpeer.h \
-jni/classpath/native_state.h
-
lib_gnu_java_awt_peer_gtk_la_CFLAGS = \
-Ijniinclude -I$(srcdir)/jni/classpath \
-I$(srcdir)/jni/gtk-peer $(PEDANTIC_CFLAGS) $(GTK_CFLAGS) $(LIBART_CFLAGS) \