2003-10-17 19:22:58 +08:00
|
|
|
# Makefile for GNU Objective C runtime library.
|
2004-04-09 19:43:02 +08:00
|
|
|
# Copyright 1993, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
|
2003-10-17 19:22:58 +08:00
|
|
|
# Free Software Foundation, Inc.
|
1998-09-30 10:13:15 +08: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-24 04:04:58 +08:00
|
|
|
#This file is part of GCC.
|
1998-09-30 10:13:15 +08: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-24 04:04:58 +08:00
|
|
|
#GCC is free software; you can redistribute it and/or modify
|
1998-09-30 10:13:15 +08:00
|
|
|
#it under the terms of the GNU General Public License as published by
|
|
|
|
#the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
#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-24 04:04:58 +08:00
|
|
|
#GCC is distributed in the hope that it will be useful,
|
1998-09-30 10:13:15 +08: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
|
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-24 04:04:58 +08:00
|
|
|
#along with GCC; see the file COPYING. If not, write to
|
2005-08-17 11:21:42 +08:00
|
|
|
#the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
#Boston, MA 02110-1301, USA. */
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
#This was cribbed from the libchill, libiberty and libstdc++
|
|
|
|
#Makefile.in files. Some of this stuff may be unnecessary and
|
|
|
|
#worthless.
|
|
|
|
|
2002-05-21 00:35:19 +08:00
|
|
|
SHELL = @SHELL@
|
2002-02-12 02:10:05 +08:00
|
|
|
MAKEOVERRIDES=
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
2002-02-12 02:10:05 +08:00
|
|
|
srcdir = @glibcpp_srcdir@
|
|
|
|
VPATH = @glibcpp_srcdir@
|
1998-09-30 10:13:15 +08:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2004-04-09 19:43:02 +08:00
|
|
|
target_noncanonical = @target_noncanonical@
|
2005-03-22 01:42:26 +08: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 21:26:36 +08:00
|
|
|
host_subdir = @host_subdir@
|
2002-02-12 02:10:05 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
toplevel_srcdir = @toplevel_srcdir@
|
2004-05-10 04:24:26 +08:00
|
|
|
toolexecdir = @toolexecdir@
|
2004-04-15 04:08:02 +08:00
|
|
|
# Toolexecdir is used only by toolexeclibdir
|
2004-04-09 21:08:31 +08:00
|
|
|
toolexeclibdir = @toolexeclibdir@
|
2002-02-12 02:10:05 +08:00
|
|
|
|
2004-05-26 09:21:46 +08:00
|
|
|
includedirname = @includedirname@
|
2004-05-26 06:39:02 +08:00
|
|
|
libext = @libext@
|
|
|
|
|
2005-08-14 07:44:14 +08:00
|
|
|
extra_ldflags_libobjc = @extra_ldflags_libobjc@
|
|
|
|
|
2002-02-12 02:10:05 +08:00
|
|
|
top_builddir = .
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
2004-04-09 19:43:02 +08:00
|
|
|
libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
1998-09-30 10:13:15 +08: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-21 00:35:19 +08:00
|
|
|
WARN_CFLAGS = -W -Wall -Wwrite-strings -Wstrict-prototypes
|
|
|
|
ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARN_CFLAGS) \
|
2005-07-26 22:27:33 +08:00
|
|
|
-DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08: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-16 02:52:38 +08:00
|
|
|
LIBOBJC_VERSION = @VERSION@
|
|
|
|
LIBOBJC_GC_VERSION = @VERSION@
|
2004-05-26 03:10:54 +08:00
|
|
|
LIBTOOL = @LIBTOOL@
|
2000-07-30 03:19:43 +08: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
|
|
|
|
|
1998-10-07 03:33:27 +08:00
|
|
|
INCLUDES = -I$(srcdir)/objc -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 21:26:36 +08:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../gcc/config \
|
|
|
|
-I$(MULTIBUILDTOP)../../$(host_subdir)/gcc \
|
1998-11-08 22:47:19 +08:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../include
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
OBJC_GCFLAGS=-DOBJC_WITH_GC=1
|
2000-07-20 15:27:26 +08:00
|
|
|
OBJC_THREAD_FILE=thr-objc
|
2000-07-30 03:19:43 +08:00
|
|
|
OBJC_BOEHM_GC=@OBJC_BOEHM_GC@
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
.SUFFIXES:
|
2000-07-30 03:19:43 +08:00
|
|
|
.SUFFIXES: .c .m .lo
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
.c.lo:
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
.m.lo:
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
1998-10-02 05:35:22 +08:00
|
|
|
# Flags to pass to a recursive make.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
2003-01-09 16:08:30 +08:00
|
|
|
"DESTDIR=$(DESTDIR)" \
|
1998-10-02 05:35:22 +08:00
|
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
|
|
"EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|
|
|
"HDEFINES=$(HDEFINES)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
2000-07-30 03:19:43 +08:00
|
|
|
"LIBTOOL=$(LIBTOOL)" \
|
1998-10-02 05:35:22 +08:00
|
|
|
"LOADLIBES=$(LOADLIBES)" \
|
|
|
|
"PICFLAG=$(PICFLAG)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
1999-08-07 13:37:16 +08:00
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1998-10-02 05:35:22 +08:00
|
|
|
|
2004-05-26 06:39:02 +08:00
|
|
|
all: libobjc$(libext).la $(OBJC_BOEHM_GC)
|
2002-09-23 11:52:55 +08:00
|
|
|
: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
# User-visible header files.
|
|
|
|
|
|
|
|
OBJC_H = hash.h objc-list.h sarray.h objc.h objc-api.h \
|
|
|
|
NXConstStr.h Object.h Protocol.h encoding.h typedstream.h \
|
2004-05-26 03:10:54 +08:00
|
|
|
thr.h objc-decls.h
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
# Modules that comprise the runtime library.
|
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
OBJS = archive.lo class.lo encoding.lo gc.lo hash.lo init.lo linking.lo \
|
|
|
|
misc.lo nil_method.lo NXConstStr.lo Object.lo objects.lo \
|
|
|
|
Protocol.lo sarray.lo selector.lo sendmsg.lo thr.lo \
|
re PR libobjc/19024 (name collisions libobjc/libmysqlclient)
2005-03-02 David Ayers <d.ayers@inode.at>
PR libobjc/19024
* Makefile.in (OBJS): Add hash_compat.lo.
(OBJS_GC): Add hash_compat_gc.lo.
(hash_compat_gc.lo): New target and rule.
* objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
(hash_next, hash_value_for_key, hash_is_key_in_hash)
(hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
with objc_. Add deprecated non prefixed inlined versions.
(OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
declarations.
* hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
(hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
update callers.
* hash_compat.c: New file.
* archive.c: Update callers.
* init.c: Likewise.
* selector.c: Likewise.
* libobjc.def: Add objc_ versions of hash functions.
From-SVN: r95793
2005-03-03 03:37:03 +08:00
|
|
|
$(OBJC_THREAD_FILE).lo exception.lo hash_compat.lo
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
OBJS_GC = archive_gc.lo class_gc.lo encoding_gc.lo gc_gc.lo hash_gc.lo \
|
|
|
|
init_gc.lo linking_gc.lo misc_gc.lo nil_method_gc.lo \
|
|
|
|
NXConstStr_gc.lo Object_gc.lo objects_gc.lo Protocol_gc.lo \
|
|
|
|
sarray_gc.lo selector_gc.lo sendmsg_gc.lo thr_gc.lo \
|
re PR libobjc/19024 (name collisions libobjc/libmysqlclient)
2005-03-02 David Ayers <d.ayers@inode.at>
PR libobjc/19024
* Makefile.in (OBJS): Add hash_compat.lo.
(OBJS_GC): Add hash_compat_gc.lo.
(hash_compat_gc.lo): New target and rule.
* objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
(hash_next, hash_value_for_key, hash_is_key_in_hash)
(hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
with objc_. Add deprecated non prefixed inlined versions.
(OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
declarations.
* hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
(hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
update callers.
* hash_compat.c: New file.
* archive.c: Update callers.
* init.c: Likewise.
* selector.c: Likewise.
* libobjc.def: Add objc_ versions of hash functions.
From-SVN: r95793
2005-03-03 03:37:03 +08:00
|
|
|
$(OBJC_THREAD_FILE)_gc.lo exception_gc.lo hash_compat_gc.lo
|
1998-09-30 10:13:15 +08:00
|
|
|
|
1999-04-25 08:21:51 +08:00
|
|
|
runtime-info.h:
|
2003-10-21 22:11:13 +08:00
|
|
|
echo "" > tmp-runtime.m
|
2000-07-30 03:19:43 +08:00
|
|
|
echo "/* This file is automatically generated */" > $@
|
2003-10-24 05:20:54 +08:00
|
|
|
$(CC) $(MULTIFLAGS) -print-objc-runtime-info -S tmp-runtime.m >> $@
|
2003-10-21 22:11:13 +08:00
|
|
|
rm -f tmp-runtime.m tmp-runtime.s
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
archive_gc.lo: archive.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
class_gc.lo: class.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
encoding_gc.lo: encoding.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
gc.lo: gc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
gc_gc.lo: gc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
hash_gc.lo: hash.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
re PR libobjc/19024 (name collisions libobjc/libmysqlclient)
2005-03-02 David Ayers <d.ayers@inode.at>
PR libobjc/19024
* Makefile.in (OBJS): Add hash_compat.lo.
(OBJS_GC): Add hash_compat_gc.lo.
(hash_compat_gc.lo): New target and rule.
* objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
(hash_next, hash_value_for_key, hash_is_key_in_hash)
(hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
with objc_. Add deprecated non prefixed inlined versions.
(OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
declarations.
* hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
(hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
update callers.
* hash_compat.c: New file.
* archive.c: Update callers.
* init.c: Likewise.
* selector.c: Likewise.
* libobjc.def: Add objc_ versions of hash functions.
From-SVN: r95793
2005-03-03 03:37:03 +08:00
|
|
|
hash_compat_gc.lo: hash_compat.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
init_gc.lo: init.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
linking.lo: linking.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
linking_gc.lo: linking.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
misc_gc.lo: misc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
nil_method_gc.lo: nil_method.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
NXConstStr.lo: NXConstStr.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
NXConstStr_gc.lo: NXConstStr.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
Object.lo: Object.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
Object_gc.lo: Object.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
objects_gc.lo: objects.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
Protocol.lo: Protocol.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
Protocol_gc.lo: Protocol.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
sarray_gc.lo: sarray.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
selector_gc.lo: selector.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
sendmsg.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
sendmsg_gc.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
thr_gc.lo: thr.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
$(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD_FILE).c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2004-06-18 09:00:28 +08:00
|
|
|
exception.lo: exception.c
|
2004-06-20 07:46:27 +08:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
-fexceptions $(INCLUDES) $<
|
|
|
|
|
|
|
|
exception_gc.lo: exception.c
|
2004-06-18 09:00:28 +08:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
-fexceptions $(INCLUDES) $<
|
|
|
|
|
1998-09-30 10:13:15 +08:00
|
|
|
doc: info dvi html
|
|
|
|
|
2004-05-26 06:39:02 +08:00
|
|
|
libobjc$(libext).la: $(OBJS)
|
2002-02-12 02:10:05 +08:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
|
2004-04-09 21:08:31 +08:00
|
|
|
-rpath $(toolexeclibdir) \
|
2005-08-14 07:44:14 +08:00
|
|
|
-version-info $(LIBOBJC_VERSION) $(extra_ldflags_libobjc)
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2004-05-26 06:39:02 +08:00
|
|
|
libobjc_gc$(libext).la: $(OBJS_GC)
|
2002-02-12 02:10:05 +08:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS_GC) \
|
2004-04-09 21:08:31 +08:00
|
|
|
-rpath $(toolexeclibdir) \
|
2005-08-14 07:44:14 +08:00
|
|
|
-version-info $(LIBOBJC_GC_VERSION) $(extra_ldflags_libobjc)
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2000-07-30 03:19:43 +08:00
|
|
|
#
|
|
|
|
# FIXME -- The following part does not fit in the libtool context.
|
|
|
|
# Libtool is supposed to [going to] be able to create a win 32 DLL
|
|
|
|
# without extra code but since I don't have a win machine to test
|
|
|
|
# if it already works, I leave the old code here.
|
|
|
|
#
|
|
|
|
libobjc_s.a: libobjc.la
|
1998-09-30 10:13:15 +08:00
|
|
|
mv libobjc.a libobjc_s.a
|
|
|
|
|
|
|
|
# Create a relocatable DLL
|
|
|
|
libobjc.dll: libobjc_s.a libobjc_entry.o
|
|
|
|
$(CC) -mdll -Wl,--base-file -Wl,libobjc.base \
|
|
|
|
-o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
|
|
|
|
$(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
|
|
|
|
--base-file libobjc.base --output-exp libobjc.exp
|
|
|
|
$(GCC_FOR_TARGET) -mdll -Wl,--base-file libobjc.base libobjc.exp \
|
|
|
|
-o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
|
|
|
|
$(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
|
|
|
|
--base-file libobjc.base --output-exp libobjc.exp
|
|
|
|
$(GCC_FOR_TARGET) libobjc.exp -mdll \
|
|
|
|
-o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
|
|
|
|
$(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
|
|
|
|
--output-lib libobjc.a
|
2000-07-30 03:19:43 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
1998-09-30 10:13:15 +08:00
|
|
|
|
2001-05-09 22:16:47 +08:00
|
|
|
info:
|
|
|
|
dvi:
|
|
|
|
html:
|
1998-09-30 10:13:15 +08: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
|
|
|
|
|
2004-10-20 09:26:37 +08:00
|
|
|
${srcdir}/configure: @MAINT@ configure.ac
|
1998-09-30 10:13:15 +08:00
|
|
|
rm -f config.cache
|
|
|
|
cd ${srcdir} && autoconf
|
|
|
|
|
2002-02-12 02:10:05 +08:00
|
|
|
install: install-libs install-headers
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
install-libs: installdirs
|
2004-04-09 21:08:31 +08:00
|
|
|
$(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(toolexeclibdir)
|
2004-05-26 06:39:02 +08:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc$(libext).la $(DESTDIR)$(toolexeclibdir);
|
2000-07-30 03:19:43 +08:00
|
|
|
if [ "$(OBJC_BOEHM_GC)" ]; then \
|
2004-05-26 06:39:02 +08:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc_gc$(libext).la \
|
2004-04-09 21:08:31 +08:00
|
|
|
$(DESTDIR)$(toolexeclibdir);\
|
2000-07-30 03:19:43 +08:00
|
|
|
fi
|
2002-02-12 02:10:05 +08:00
|
|
|
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@"
|
2004-04-09 21:08:31 +08:00
|
|
|
@-$(LIBTOOL) --mode=finish $(DESTDIR)$(toolexeclibdir)
|
1998-09-30 10:13:15 +08:00
|
|
|
|
|
|
|
# Copy Objective C headers to installation include directory.
|
2002-02-12 02:10:05 +08:00
|
|
|
install-headers:
|
2004-05-26 09:21:46 +08:00
|
|
|
$(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(libsubdir)/$(includedirname)/objc
|
1998-09-30 10:13:15 +08:00
|
|
|
for file in $(OBJC_H); do \
|
1998-09-30 16:17:56 +08:00
|
|
|
realfile=$(srcdir)/objc/$${file}; \
|
2004-05-26 09:21:46 +08:00
|
|
|
$(INSTALL_DATA) $${realfile} $(DESTDIR)$(libsubdir)/$(includedirname)/objc; \
|
1998-09-30 10:13:15 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
check uninstall install-strip dist installcheck installdirs:
|
|
|
|
|
|
|
|
mostlyclean:
|
2004-05-26 06:39:02 +08:00
|
|
|
-$(LIBTOOL_CLEAN) rm -f libobjc$(libext).la libobjc_gc$(libext).la *.lo
|
2000-07-30 03:19:43 +08:00
|
|
|
-rm -f runtime-info.h tmp-runtime.s *.o *.lo libobjc* xforward \
|
1998-09-30 10:13:15 +08:00
|
|
|
fflags *.aux *.cp *.dvi *.fn *.info *.ky *.log *.pg \
|
|
|
|
*.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-26 03:37:02 +08:00
|
|
|
|
|
|
|
# Don't export variables to the environment, in order to not confuse
|
|
|
|
# configure.
|
|
|
|
.NOEXPORT:
|