2003-10-17 13:22:58 +02:00
|
|
|
# Makefile for GNU Objective C runtime library.
|
2015-01-05 13:33:28 +01:00
|
|
|
# Copyright (C) 1993-2015 Free Software Foundation, Inc.
|
1998-09-30 04:13:15 +02:00
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
#This file is part of GCC.
|
1998-09-30 04:13:15 +02:00
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
#GCC is free software; you can redistribute it and/or modify
|
1998-09-30 04:13:15 +02:00
|
|
|
#it under the terms of the GNU General Public License as published by
|
2009-04-09 17:00:19 +02:00
|
|
|
#the Free Software Foundation; either version 3, or (at your option)
|
1998-09-30 04:13:15 +02:00
|
|
|
#any later version.
|
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
#GCC is distributed in the hope that it will be useful,
|
1998-09-30 04:13:15 +02:00
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
2009-04-09 17:00:19 +02:00
|
|
|
#along with GCC; see the file COPYING3. If not see
|
|
|
|
#<http://www.gnu.org/licenses/>.
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
#This was cribbed from the libchill, libiberty and libstdc++
|
|
|
|
#Makefile.in files. Some of this stuff may be unnecessary and
|
|
|
|
#worthless.
|
|
|
|
|
2002-05-20 18:35:19 +02:00
|
|
|
SHELL = @SHELL@
|
2002-02-11 19:10:05 +01:00
|
|
|
MAKEOVERRIDES=
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
2002-02-11 19:10:05 +01:00
|
|
|
srcdir = @glibcpp_srcdir@
|
|
|
|
VPATH = @glibcpp_srcdir@
|
1998-09-30 04:13:15 +02:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2004-04-09 13:43:02 +02:00
|
|
|
target_noncanonical = @target_noncanonical@
|
2005-03-21 18:42:26 +01:00
|
|
|
gcc_version := $(shell cat $(srcdir)/../gcc/BASE-VER)
|
re PR bootstrap/17383 (Building in src dir fails)
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR). Create a symlink for host_subdir.
* Makefile.in: Regenerate.
* configure: Regenerate.
config:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.
gcc:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* gcc/Makefile.in (host_subdir): New.
(build_objdir): New. Replace ../$(build_subdir) with it throughout.
* gcc/configure: Regenerate.
libada:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition.
libjava:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(COMPPATH): Removed.
(ZIP, GCJH): Replace it with ../$(host_subdir).
(built_gcc_dir): Add $(host_subdir).
* configure: Regenerate.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in,
external/w3c_dom/Makefile.in: Regenerate.
libobjc:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(Determine CFLAGS for gthread): Use $host_subdir.
* configure: Regenerate.
* Makefile.in (host_subdir): New.
(INCLUDES): Use it.
From-SVN: r95680
2005-02-28 14:26:36 +01:00
|
|
|
host_subdir = @host_subdir@
|
2002-02-11 19:10:05 +01:00
|
|
|
top_srcdir = @top_srcdir@
|
2006-10-15 09:42:57 +02:00
|
|
|
multi_basedir = @multi_basedir@
|
2004-05-09 22:24:26 +02:00
|
|
|
toolexecdir = @toolexecdir@
|
2004-04-14 22:08:02 +02:00
|
|
|
# Toolexecdir is used only by toolexeclibdir
|
2004-04-09 15:08:31 +02:00
|
|
|
toolexeclibdir = @toolexeclibdir@
|
2002-02-11 19:10:05 +01:00
|
|
|
|
2004-05-26 03:21:46 +02:00
|
|
|
includedirname = @includedirname@
|
2007-06-02 03:35:59 +02:00
|
|
|
libsuffix = @libsuffix@
|
2004-05-26 00:39:02 +02:00
|
|
|
|
2010-12-06 01:50:04 +01:00
|
|
|
lt_host_flags = @lt_host_flags@
|
2005-08-14 01:44:14 +02:00
|
|
|
extra_ldflags_libobjc = @extra_ldflags_libobjc@
|
|
|
|
|
2002-02-11 19:10:05 +01:00
|
|
|
top_builddir = .
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2008-07-18 18:30:04 +02:00
|
|
|
-include ../boehm-gc/threads.mk
|
2008-07-18 10:15:27 +02:00
|
|
|
|
1998-09-30 04:13:15 +02:00
|
|
|
libdir = $(exec_prefix)/lib
|
2004-04-09 13:43:02 +02:00
|
|
|
libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
# Multilib support variables.
|
|
|
|
MULTISRCTOP =
|
|
|
|
MULTIBUILDTOP =
|
|
|
|
MULTIDIRS =
|
|
|
|
MULTISUBDIR =
|
|
|
|
MULTIDO = true
|
|
|
|
MULTICLEAN = true
|
|
|
|
|
|
|
|
# Not configured per top-level version, since that doesn't get passed
|
|
|
|
# down at configure time, but overrridden by the top-level install
|
|
|
|
# target.
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
AR = @AR@
|
|
|
|
AR_FLAGS = rc
|
|
|
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
2002-05-20 18:35:19 +02:00
|
|
|
WARN_CFLAGS = -W -Wall -Wwrite-strings -Wstrict-prototypes
|
|
|
|
ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARN_CFLAGS) \
|
2005-07-26 16:27:33 +02:00
|
|
|
-DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
# Libtool
|
|
|
|
# The following strings describe the version of the obj-C library
|
|
|
|
# begin compiled and compatibility issues.
|
|
|
|
# Please refer to Libtool documentation about how to manage these
|
|
|
|
# numbers.
|
2004-03-15 19:52:38 +01:00
|
|
|
LIBOBJC_VERSION = @VERSION@
|
|
|
|
LIBOBJC_GC_VERSION = @VERSION@
|
LIBTOOLFLAGS, and *_LINK fixes for Automake 1.11
boehm-gc/:
* Makefile.am (LTCOMPILE, LTLINK): Add $(AM_LIBTOOLFLAGS)
and $(LIBTOOLFLAGS).
* Makefile.in: Regenerate.
libgfortran/:
* Makefile.am (libgfortran_la_LINK): Add $(libgfortran_la_LDFLAGS).
* Makefile.in: Regenerate.
libjava/:
* Makefile.am (libgcj_la_LINK, libgcj_tools_la_LINK)
(lib_gnu_awt_xlib_la_LINK, libgcj_bc_la_LINK, jv_convert_LINK)
(gcj_dbtool_LINK, gc_analyze_LINK, gij_LINK, ecjx_LINK)
(gappletviewer_LINK, gjarsigner_LINK, gkeytool_LINK)
(gjar_LINK, gjavah_LINK, gcjh_LINK, gnative2ascii_LINK)
(gorbd_LINK, grmid_LINK, gserialver_LINK, gtnameserv_LINK)
(grmic_LINK, grmiregistry_LINK, gjdoc_LINK): Add $(gjdoc_LDFLAGS).
(GCJLINK, LIBLINK, CXXLINK): Add $(LIBTOOLFLAGS).
* Makefile.in: Regenerate.
libstdc++-v3/:
* libsupc++/Makefile.am (LTCOMPILE, LTCXXCOMPILE, CXXLINK): Add
$(LIBTOOLFLAGS).
* libsupc++/Makefile.in: Regenerate.
* src/Makefile.am (LTCXXCOMPILE, CXXLINK): Add $(AM_LIBTOOLFLAGS)
and $(LIBTOOLFLAGS).
* src/Makefile.in: Regenerate.
libgomp/:
* Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
* Makefile.in: Regenerate.
libobjc/:
* Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
From-SVN: r151013
2009-08-22 14:43:24 +02:00
|
|
|
LIBTOOL = @LIBTOOL@ $(LIBTOOLFLAGS)
|
2000-07-29 21:19:43 +02:00
|
|
|
LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
|
|
|
|
LIBTOOL_LINK = $(LIBTOOL) --mode=link
|
|
|
|
LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
|
|
|
|
LIBTOOL_CLEAN = $(LIBTOOL) --mode=clean
|
|
|
|
#LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
|
|
|
|
|
2011-04-15 11:26:05 +02:00
|
|
|
OBJC_GCFLAGS=@OBJC_GCFLAGS@
|
2006-01-24 22:57:22 +01:00
|
|
|
OBJC_BOEHM_GC=@OBJC_BOEHM_GC@
|
|
|
|
OBJC_BOEHM_GC_INCLUDES=@OBJC_BOEHM_GC_INCLUDES@
|
2008-07-18 10:15:27 +02:00
|
|
|
OBJC_BOEHM_GC_LIBS=../boehm-gc/libgcjgc_convenience.la $(thread_libs_and_flags)
|
2006-01-24 22:57:22 +01:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
INCLUDES = -I$(srcdir)/$(MULTISRCTOP)../gcc \
|
re PR bootstrap/17383 (Building in src dir fails)
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR). Create a symlink for host_subdir.
* Makefile.in: Regenerate.
* configure: Regenerate.
config:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.
gcc:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* gcc/Makefile.in (host_subdir): New.
(build_objdir): New. Replace ../$(build_subdir) with it throughout.
* gcc/configure: Regenerate.
libada:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition.
libjava:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(COMPPATH): Removed.
(ZIP, GCJH): Replace it with ../$(host_subdir).
(built_gcc_dir): Add $(host_subdir).
* configure: Regenerate.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in,
external/w3c_dom/Makefile.in: Regenerate.
libobjc:
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(Determine CFLAGS for gthread): Use $host_subdir.
* configure: Regenerate.
* Makefile.in (host_subdir): New.
(INCLUDES): Use it.
From-SVN: r95680
2005-02-28 14:26:36 +01:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../gcc/config \
|
|
|
|
-I$(MULTIBUILDTOP)../../$(host_subdir)/gcc \
|
Makefile.in (UNWIND_H): Remove.
gcc:
* Makefile.in (UNWIND_H): Remove.
(LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
../libgcc/Makefile.in.
(LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
(LIBUNWINDDEP): Remove.
(libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
(libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
(stmp-int-hdrs): Remove $(UNWIND_H) dependency.
Don't copy $(UNWIND_H).
* config.gcc (ia64*-*-linux*): Remove with_system_libunwind
handling.
* configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
* unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
* config/arm/libunwind.S, config/arm/pr-support.c,
config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
../libgcc/config/arm.
* config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
* config/frv/t-frv ($(T)frvbegin$(objext)): Use
$(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
($(T)frvend$(objext)): Likewise.
* config/ia64/t-glibc (LIB2ADDEH): Remove.
* config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
* config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
../libgcc/config/ia64.
* config/ia64/t-hpux (LIB2ADDEH): Remove.
* config/ia64/t-ia64 (LIB2ADDEH): Remove.
* config/ia64/t-vms (LIB2ADDEH): Remove.
* config/ia64/vms.h (UNW_IVMS_MODE,
MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
* config/picochip/t-picochip (LIB2ADDEH): Remove.
* config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
* config/rs6000/t-darwin (LIB2ADDEH): Remove.
* config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
* config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
$(srcdir)/../libgcc to refer to unwinder sources.
* config/spu/t-spu-elf (LIB2ADDEH): Remove.
* config/t-darwin (LIB2ADDEH): Remove.
* config/t-freebsd (LIB2ADDEH): Remove.
* config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
* config/t-libunwind-elf: Move to ../libgcc/config.
* config/t-linux (LIB2ADDEH): Remove.
* config/t-sol2 (LIB2ADDEH): Remove.
* config/xtensa/t-xtensa (LIB2ADDEH): Remove.
* system.h (MD_FROB_UPDATE_CONTEXT): Poison.
gcc/po:
* EXCLUDES (unwind-c.c, unwind-dw2-fde-darwin.c)
(unwind-dw2-fde-glibc.c, unwind-dw2-fde.c, unwind-dw2-fde.h)
(unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h): Remove.
libgcc:
* Makefile.in (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): New
variables.
(LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): New variables.
(LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Add $(srcdir)/emutls.c.
(install-unwind_h): New target.
(all): Depend on it.
* config.host (unwind_header): New variable.
(*-*-freebsd*): Set tmake_file to t-eh-dw2-dip.
(*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
*-*-gnu*): Likewise, also for *-*-kopensolaris*-gnu.
(*-*-solaris2*): Add t-eh-dw2-dip to tmake_file.
(arm*-*-linux*): Add arm/t-bpabi for arm*-*-linux-*eabi.
Set unwind_header.
(arm*-*-uclinux*): Add arm/t-bpabi for arm*-*-uclinux*eabi.
Set unwind_header.
(arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi for
arm*-*-eabi*.
Add arm/t-symbian to tmake_file for arm*-*-symbianelf*.
Set unwind_header.
(ia64*-*-elf*): Add ia64/t-eh-ia64 to tmake_file.
(ia64*-*-freebsd*): Likewise.
(ia64*-*-linux*): Add ia64/t-glibc, ia64/t-eh-ia64, t-libunwind to
tmake_file.
Add t-libunwind-elf, ia64/t-glibc-libunwind unless
$with_system_libunwind.
(ia64*-*-hpux*): Set tmake_file.
(ia64-hp-*vms*): Add ia64/t-eh-ia64 to tmake_file.
(picochip-*-*): Set tmake_file.
(rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Set
md_unwind_header.
(rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
(rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
(s390x-ibm-tpf*): Add t-eh-dw2-dip to tmake_file.
(xtensa*-*-elf*): Set tmake_file.
(xtensa*-*-linux*): Likewise.
* configure.ac: Include ../config/unwind_ipinfo.m4.
Call GCC_CHECK_UNWIND_GETIPINFO.
Link unwind.h to $unwind_header.
* configure: Regenerate.
* emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
unwind-dw2-fde-compat.c, unwind-dw2-fde-dip.c, unwind-dw2-fde.c,
unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
unwind-pe.h, unwind-sjlj.c, unwind.inc: New files.
* config/unwind-dw2-fde-darwin.c: New file.
* config/arm/libunwind.S, config/arm/pr-support.c,
config/arm/t-bpabi, config/arm/t-symbian, config/arm/unwind-arm.c,
config/arm/unwind-arm.h,: New files.
* config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
config/ia64/t-eh-ia64, config/ia64/t-glibc,
config/ia64/t-glibc-libunwind, config/ia64/t-hpux,
config/ia64/t-vms, config/ia64/unwind-ia64.c,
config/ia64/unwind-ia64.h: New files.
* config/picochip/t-picochip: New file.
* config/rs6000/aix-unwind.h, config/rs6000/darwin-fallback.c: New
files.
* config/rs6000/t-darwin (LIB2ADDEH): Set.
* config/s390/t-tpf (LIB2ADDEH): Remove.
* config/t-darwin (LIB2ADDEH): Set.
* config/t-eh-dw2-dip: New file.
* config/t-libunwind, config/t-libunwind-elf: New files.
* config/t-sol2 (LIB2ADDEH): Remove.
* config/xtensa/t-xtensa: New file.
gcc/ada:
* gcc-interface/Makefile.in (raise-gcc.o): Search
$(srcdir)/../libgcc.
libgo:
* Makefile.am (AM_CFLAGS): Search $(srcdir)/../libgcc.
* Makefile.in: Regenerate.
libjava:
* configure.ac (GCC_UNWIND_INCLUDE): Rename to
LIBGCC_UNWIND_INCLUDE.
Point to $(multi_basedir)/./libjava/../libgcc.
* configure: Regenerate.
* Makefile.am (GCC_UNWIND_INCLUDE): Reflect this.
* Makefile.in: Regenerate.
libobjc:
* Makefile.in (INCLUDES): Search
$(srcdir)/$(MULTISRCTOP)../libgcc.
libstdc++-v3:
* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Point TOPLEVEL_INCLUDES
to $(toplevel_srcdir)/libgcc.
* configure: Regenerate.
From-SVN: r177447
2011-08-05 16:37:48 +02:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../libgcc \
|
Move gthr to toplevel libgcc
gcc:
* gthr-single.h, gthr.h: Move to ../libgcc.
* gthr-aix.h: Move to ../libgcc/config/rs6000.
* gthr-dce.h: Move to ../libgcc/config/pa.
* gthr-lynx.h: Move to ../libgcc/config.
* gthr-mipssde.h: Move to ../libgcc/config/mips.
* gthr-posix.h: Move to ../libgcc/config.
* gthr-rtems.h: Likewise.
* gthr-tpf.h: Move to ../libgcc/config/s390.
* gthr-vxworks.h: Move to ../libgcc/config.
* gthr-win32.h: Move to ../libgcc/config/i386.
* configure.ac (gthread_flags): Remove
(gthr-default.h): Don't create.
(thread_file): Don't substitute.
* configure: Regenerate.
* Makefile.in (GCC_THREAD_FILE): Remove.
(GTHREAD_FLAGS): Remove.
(libgcc.mvars): Remove GTHREAD_FLAGS.
* config/t-vxworks (EXTRA_HEADERS): Remove.
gcc/po:
* EXCLUDES (gthr-aix.h, gthr-dce.h, gthr-posix.c, gthr-posix.h)
(gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h)
(gthr-win32.h, gthr.h): Remove.
libgcc:
* gthr-single.h, gthr.h: New files.
* config/gthr-lynx.h, config/gthr-posix.h., config/gthr-rtems.h,
config/gthr-vxworks.h, config/i386/gthr-win32.h,
config/mips/gthr-mipssde.h, config/pa/gthr-dce.h,
config/rs6000/gthr-aix.h, config/s390/gthr-tpf.h: New files.
* config/i386/gthr-win32.c: Include "gthr-win32.h".
* configure.ac (thread_header): New variable.
Set it depending on target_thread_file.
(gthr-default.h): Link from $thread_header.
* configure: Regenerate.
* Makefile.in (LIBGCC2_CFLAGS): Remove $(GTHREAD_FLAGS).
libgfortran:
* Makefile.am (AM_CPPFLAGS): Add
-I$(srcdir)/$(MULTISRCTOP)../libgcc, -I$(MULTIBUILDTOP)../libgcc.
* Makefile.in: Regenerate.
* acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Remove.
* configure.ac (LIBGFOR_CHECK_GTHR_DEFAULT): Likewise.
* configure: Regenerate.
* config.h.in: Regenerate.
libobjc:
* Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
* configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
* configure: Regenerate.
* config.h.in: Regenerate.
libstdc++-v3:
* acinclude.m4 (GLIBCXX_CONFIGURE): Determine and substitute
toplevel_builddir.
(GLIBCXX_ENABLE_THREADS): Remove glibcxx_thread_h,
HAVE_GTHR_DEFAULT, enable_thread.
(GLIBCXX_CHECK_GTHREADS): Reflect gthr move to libgcc.
* include/Makefile.am (thread_host_headers): Remove
${host_builddir}/gthr-tpf.h.
(${host_builddir}/gthr.h): Reflect gthr move to libgcc.
Use $<.
(${host_builddir}/gthr-single.h): Likewise.
(${host_builddir}/gthr-posix.h): Likewise.
(${host_builddir}/gthr-tpf.h): Remove.
(${host_builddir}/gthr-default.h): Likewise.
* configure, config.h.in: Regenerate.
* Makefile.in, doc/Makefile.in, include/Makefile.in,
libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
src/Makefile.intestsuite/Makefile.in: Regenerate.
From-SVN: r180776
2011-11-02 16:28:43 +01:00
|
|
|
-I$(MULTIBUILDTOP)../libgcc \
|
2006-01-24 22:57:22 +01:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../include \
|
|
|
|
$(OBJC_BOEHM_GC_INCLUDES)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
##
|
|
|
|
## The list of header/source files
|
|
|
|
##
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-10 11:56:40 +02:00
|
|
|
# User-visible header files, from the objc/ directory
|
2010-09-11 14:38:56 +02:00
|
|
|
OBJC_H = \
|
|
|
|
objc.h \
|
|
|
|
objc-exception.h \
|
2010-09-14 12:23:37 +02:00
|
|
|
objc-sync.h \
|
2010-09-11 14:38:56 +02:00
|
|
|
\
|
|
|
|
NXConstStr.h \
|
|
|
|
Object.h \
|
|
|
|
Protocol.h \
|
2010-09-12 02:43:15 +02:00
|
|
|
message.h \
|
|
|
|
objc-decls.h \
|
2010-10-06 12:10:14 +02:00
|
|
|
runtime.h \
|
In libobjc/: 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
* Makefile.in (OBJC_H): Removed hash.h and sarray.h.
(OBJC_DEPRECATED_H): Likewise.
* libobjc.def (objc_hash_new, objc_hash_delete, objc_hash_add,
objc_hash_remove, objc_hash_next, objc_hash_value_for_key,
objc_hash_is_key_in_hash, hash_add, hash_delete, hash_new,
hash_next, hash_remove, hash_value_for_key, hash_is_key_in_hash,
sarray_at_put, sarray_at_put_safe, sarray_free, sarray_lazy_copy,
sarray_new, sarray_realloc, sarray_remove_garbage): Removed.
* objc/sarray.h: Removed.
* objc/hash.h: Removed.
* objc/deprecated/sarray.h: Removed.
* objc/deprecated/hash.h: Removed.
* objc/Object.h: Do not include objc/deprecated/hash.h
* Object.m: Include string.h.
* objc/objc-api.h: Do not include objc/deprecated/hash.h.
* objc-private/common.h (GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF):
Removed.
In gcc/testsuite/:
2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/headers.m: Do not include sarray.h and hash.h.
From-SVN: r174610
2011-06-03 19:59:14 +02:00
|
|
|
thr.h
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# Objective-C source files to compile
|
|
|
|
OBJC_SOURCE_FILES = \
|
|
|
|
NXConstStr.m \
|
|
|
|
Object.m \
|
|
|
|
Protocol.m \
|
2010-10-24 19:23:19 +02:00
|
|
|
accessors.m \
|
2010-09-12 16:55:21 +02:00
|
|
|
linking.m
|
|
|
|
|
|
|
|
# C source files to compile
|
|
|
|
C_SOURCE_FILES = \
|
|
|
|
class.c \
|
|
|
|
encoding.c \
|
|
|
|
error.c \
|
|
|
|
gc.c \
|
|
|
|
hash.c \
|
|
|
|
init.c \
|
2010-10-11 04:36:32 +02:00
|
|
|
ivars.c \
|
2010-09-12 16:55:21 +02:00
|
|
|
memory.c \
|
2010-10-13 00:00:01 +02:00
|
|
|
methods.c \
|
2010-09-12 16:55:21 +02:00
|
|
|
nil_method.c \
|
2010-10-06 12:10:14 +02:00
|
|
|
objc-foreach.c \
|
2010-09-14 12:23:37 +02:00
|
|
|
objc-sync.c \
|
2010-09-12 16:55:21 +02:00
|
|
|
objects.c \
|
2010-10-12 04:43:25 +02:00
|
|
|
protocols.c \
|
2010-09-12 16:55:21 +02:00
|
|
|
sarray.c \
|
|
|
|
selector.c \
|
|
|
|
sendmsg.c \
|
|
|
|
thr.c \
|
|
|
|
exception.c
|
|
|
|
|
|
|
|
# Object files to link (when the library is linked with no GC (Garbage Collection))
|
|
|
|
OBJS = \
|
|
|
|
$(patsubst %.m,%.lo,$(OBJC_SOURCE_FILES)) \
|
|
|
|
$(patsubst %.c,%.lo,$(C_SOURCE_FILES))
|
|
|
|
|
|
|
|
# Object files to link (when the library is linked with GC (Garbage Collection))
|
2010-09-12 02:43:15 +02:00
|
|
|
OBJS_GC = \
|
2010-09-12 16:55:21 +02:00
|
|
|
$(patsubst %.m,%_gc.lo,$(OBJC_SOURCE_FILES)) \
|
|
|
|
$(patsubst %.c,%_gc.lo,$(C_SOURCE_FILES))
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
##
|
|
|
|
## The rules to build
|
|
|
|
##
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# Flags to pass to a recursive make.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
"DESTDIR=$(DESTDIR)" \
|
|
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
|
|
"EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|
|
|
"HDEFINES=$(HDEFINES)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
|
|
|
"LIBTOOL=$(LIBTOOL)" \
|
|
|
|
"LOADLIBES=$(LOADLIBES)" \
|
|
|
|
"PICFLAG=$(PICFLAG)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# The 'all' rule must be the first one so that it is executed if
|
|
|
|
# nothing is specified on the command-line.
|
|
|
|
all: libobjc$(libsuffix).la $(OBJC_BOEHM_GC)
|
|
|
|
: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
2010-09-12 02:43:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .m .lo
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
%.lo: %.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
%_gc.lo: %.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) $(OBJC_GCFLAGS) \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
%.lo: %.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) -fgnu-runtime \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
%_gc.lo: %.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) $(OBJC_GCFLAGS) -fgnu-runtime \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# sendmsg has a special rule because it depends on runtime-info.h.
|
|
|
|
runtime-info.h:
|
|
|
|
echo "" > tmp-runtime.m
|
|
|
|
echo "/* This file is automatically generated */" > $@
|
|
|
|
$(CC) $(MULTIFLAGS) -print-objc-runtime-info -S tmp-runtime.m >> $@
|
|
|
|
rm -f tmp-runtime.m tmp-runtime.s
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
sendmsg.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
sendmsg_gc.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
|
|
|
$(ALL_CFLAGS) $(INCLUDES) $(OBJC_GCFLAGS) \
|
|
|
|
-o $@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# These files have separate rules because they require special
|
|
|
|
# compiler flags.
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2004-06-18 03:00:28 +02:00
|
|
|
exception.lo: exception.c
|
2010-09-12 16:55:21 +02:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
2011-06-03 21:15:23 +02:00
|
|
|
$(ALL_CFLAGS) $(INCLUDES) -fexceptions \
|
2010-09-12 16:55:21 +02:00
|
|
|
-o $@
|
2004-06-20 01:46:27 +02:00
|
|
|
|
|
|
|
exception_gc.lo: exception.c
|
2010-09-12 16:55:21 +02:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $< -c \
|
2011-06-03 21:15:23 +02:00
|
|
|
$(ALL_CFLAGS) $(INCLUDES) $(OBJC_GCFLAGS) -fexceptions \
|
2010-09-12 16:55:21 +02:00
|
|
|
-o $@
|
2004-06-18 03:00:28 +02:00
|
|
|
|
2006-10-11 01:48:09 +02:00
|
|
|
doc: info dvi pdf html
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2007-03-02 00:58:28 +01:00
|
|
|
# No install-html or install-pdf support
|
2008-07-06 11:40:39 +02:00
|
|
|
.PHONY: install-html install-pdf install-info
|
2006-05-24 03:22:17 +02:00
|
|
|
install-html:
|
2007-03-02 00:58:28 +01:00
|
|
|
install-pdf:
|
2008-07-06 11:40:39 +02:00
|
|
|
install-info:
|
2006-05-24 03:22:17 +02:00
|
|
|
|
2008-05-09 12:10:53 +02:00
|
|
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
|
|
|
|
2007-06-02 03:35:59 +02:00
|
|
|
libobjc$(libsuffix).la: $(OBJS)
|
2002-02-11 19:10:05 +01:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
|
2010-12-23 12:26:14 +01:00
|
|
|
-Wc,-shared-libgcc -rpath $(toolexeclibdir) \
|
2008-05-09 12:10:53 +02:00
|
|
|
-version-info $(LIBOBJC_VERSION) $(extra_ldflags_libobjc) \
|
|
|
|
$(LTLDFLAGS)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2007-06-02 03:35:59 +02:00
|
|
|
libobjc_gc$(libsuffix).la: $(OBJS_GC)
|
2008-07-18 10:15:27 +02:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS_GC) $(OBJC_BOEHM_GC_LIBS) \
|
2010-12-23 12:26:14 +01:00
|
|
|
-Wc,-shared-libgcc -rpath $(toolexeclibdir) \
|
2008-05-09 12:10:53 +02:00
|
|
|
-version-info $(LIBOBJC_GC_VERSION) $(extra_ldflags_libobjc) \
|
|
|
|
$(LTLDFLAGS)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2001-05-09 16:16:47 +02:00
|
|
|
info:
|
|
|
|
dvi:
|
2006-10-11 01:48:09 +02:00
|
|
|
pdf:
|
2001-05-09 16:16:47 +02:00
|
|
|
html:
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
rm -f config.cache
|
|
|
|
CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
|
|
|
|
CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
|
|
|
|
|
Makefile.in (AUTOCONF, [...]): New variables.
fixincludes/
* Makefile.in (AUTOCONF, AUTOHEADER, ACLOCAL, ACLOCAL_AMFLAGS):
New variables.
($(srcdir)/configure, $(srcdir)/config.h.in, $(srcdir)/aclocal.m4):
Use them.
gcc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
(AUTOHEADER): New variable.
($(srcdir)/cstamp-h.in): Use it.
gnattools/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): Use them.
libada/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): Use them. Also depend on multi.m4.
libgcc/
* configure.ac: Add snippet for maintainer-mode.
* configure: Regenerate.
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): New rule, active only with maintainer
mode turned on.
libiberty/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): New rule, active only in maintainer mode.
libobjc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
From-SVN: r150277
2009-07-31 00:33:49 +02:00
|
|
|
AUTOCONF = autoconf
|
|
|
|
ACLOCAL = aclocal
|
|
|
|
ACLOCAL_AMFLAGS = -I ../config -I ..
|
|
|
|
aclocal_deps = \
|
|
|
|
$(srcdir)/../config/multi.m4 \
|
|
|
|
$(srcdir)/../config/override.m4 \
|
|
|
|
$(srcdir)/../config/proginstall.m4 \
|
|
|
|
$(srcdir)/../ltoptions.m4 \
|
|
|
|
$(srcdir)/../ltsugar.m4 \
|
|
|
|
$(srcdir)/../ltversion.m4 \
|
|
|
|
$(srcdir)/../lt~obsolete.m4 \
|
|
|
|
$(srcdir)/acinclude.m4
|
|
|
|
|
|
|
|
$(srcdir)/configure: @MAINT@ configure.ac $(srcdir)/aclocal.m4
|
1998-09-30 04:13:15 +02:00
|
|
|
rm -f config.cache
|
Makefile.in (AUTOCONF, [...]): New variables.
fixincludes/
* Makefile.in (AUTOCONF, AUTOHEADER, ACLOCAL, ACLOCAL_AMFLAGS):
New variables.
($(srcdir)/configure, $(srcdir)/config.h.in, $(srcdir)/aclocal.m4):
Use them.
gcc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
(AUTOHEADER): New variable.
($(srcdir)/cstamp-h.in): Use it.
gnattools/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): Use them.
libada/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): Use them. Also depend on multi.m4.
libgcc/
* configure.ac: Add snippet for maintainer-mode.
* configure: Regenerate.
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): New rule, active only with maintainer
mode turned on.
libiberty/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): New rule, active only in maintainer mode.
libobjc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
From-SVN: r150277
2009-07-31 00:33:49 +02:00
|
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
|
|
|
|
$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
|
|
|
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2002-02-11 19:10:05 +01:00
|
|
|
install: install-libs install-headers
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
install-libs: installdirs
|
2006-10-15 09:42:57 +02:00
|
|
|
$(SHELL) $(multi_basedir)/mkinstalldirs $(DESTDIR)$(toolexeclibdir)
|
2007-06-02 03:35:59 +02:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc$(libsuffix).la $(DESTDIR)$(toolexeclibdir);
|
2000-07-29 21:19:43 +02:00
|
|
|
if [ "$(OBJC_BOEHM_GC)" ]; then \
|
2007-06-02 03:35:59 +02:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc_gc$(libsuffix).la \
|
2004-04-09 15:08:31 +02:00
|
|
|
$(DESTDIR)$(toolexeclibdir);\
|
2000-07-29 21:19:43 +02:00
|
|
|
fi
|
2002-02-11 19:10:05 +01:00
|
|
|
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@"
|
2004-04-09 15:08:31 +02:00
|
|
|
@-$(LIBTOOL) --mode=finish $(DESTDIR)$(toolexeclibdir)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2010-09-12 16:55:21 +02:00
|
|
|
# Copy Objective-C headers to installation include directory.
|
2002-02-11 19:10:05 +01:00
|
|
|
install-headers:
|
2006-10-15 09:42:57 +02:00
|
|
|
$(SHELL) $(multi_basedir)/mkinstalldirs $(DESTDIR)$(libsubdir)/$(includedirname)/objc
|
1998-09-30 04:13:15 +02:00
|
|
|
for file in $(OBJC_H); do \
|
1998-09-30 10:17:56 +02:00
|
|
|
realfile=$(srcdir)/objc/$${file}; \
|
2004-05-26 03:21:46 +02:00
|
|
|
$(INSTALL_DATA) $${realfile} $(DESTDIR)$(libsubdir)/$(includedirname)/objc; \
|
1998-09-30 04:13:15 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
check uninstall install-strip dist installcheck installdirs:
|
|
|
|
|
|
|
|
mostlyclean:
|
2007-06-02 03:35:59 +02:00
|
|
|
-$(LIBTOOL_CLEAN) rm -f libobjc$(libsuffix).la libobjc_gc$(libsuffix).la *.lo
|
2000-07-29 21:19:43 +02:00
|
|
|
-rm -f runtime-info.h tmp-runtime.s *.o *.lo libobjc* xforward \
|
2006-10-11 01:48:09 +02:00
|
|
|
fflags *.aux *.cp *.dvi *.pdf *.fn *.info *.ky *.log *.pg \
|
1998-09-30 04:13:15 +02:00
|
|
|
*.toc *.tp *.vr *.html libobj.exp
|
|
|
|
@$(MULTICLEAN) multi-clean DO=mostlyclean
|
|
|
|
|
|
|
|
clean: mostlyclean
|
|
|
|
rm -f config.log
|
|
|
|
@$(MULTICLEAN) multi-clean DO=clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
@$(MULTICLEAN) multi-clean DO=distclean
|
|
|
|
rm -f config.cache config.status Makefile configure
|
|
|
|
|
|
|
|
maintainer-clean realclean: distclean
|
|
|
|
|
|
|
|
.PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
|
|
|
|
install-strip dist installcheck installdirs
|
2004-05-25 21:37:02 +02:00
|
|
|
|
|
|
|
# Don't export variables to the environment, in order to not confuse
|
|
|
|
# configure.
|
|
|
|
.NOEXPORT:
|