1998-09-30 04:13:15 +02:00
|
|
|
#Makefile for GNU Objective C runtime library.
|
2001-05-02 02:39:01 +02:00
|
|
|
#Copyright (C) 1993, 95-98, 1999, 2001 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
|
|
|
|
#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-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
|
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
|
|
|
#along with GCC; see the file COPYING. If not, write to
|
1999-01-11 14:34:38 +01:00
|
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
#Boston, MA 02111-1307, USA. */
|
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@
|
|
|
|
target_alias = @target_alias@
|
|
|
|
gcc_version = @gcc_version@
|
|
|
|
gcc_version_trigger = @gcc_version_trigger@
|
2002-02-11 19:10:05 +01:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
toplevel_srcdir = @toplevel_srcdir@
|
|
|
|
toolexecdir = @glibcpp_toolexecdir@
|
|
|
|
glibcpp_toolexecdir = @glibcpp_toolexecdir@
|
|
|
|
glibcpp_toolexeclibdir = @glibcpp_toolexeclibdir@
|
|
|
|
|
|
|
|
top_builddir = .
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
|
|
|
|
|
|
|
|
# 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
|
2000-07-20 09:27:26 +02:00
|
|
|
GTHREAD_FLAGS=@GTHREAD_FLAGS@
|
2002-05-20 18:35:19 +02:00
|
|
|
ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARN_CFLAGS) \
|
2000-07-20 09:27:26 +02:00
|
|
|
$(GTHREAD_FLAGS) -DIN_GCC -DIN_TARGET_LIBS
|
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.
|
|
|
|
LIBOBJC_VERSION = 1:0:0
|
|
|
|
LIBOBJC_GC_VERSION = 1:0:0
|
|
|
|
# @LIBTOOL@ does not get it right, so we hack it in - FIXME
|
|
|
|
LIBTOOL = ./libtool
|
|
|
|
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
|
|
|
|
|
1999-04-25 02:21:51 +02:00
|
|
|
#
|
|
|
|
# Define the cc1obj in terms of the CC that is passed on from higher
|
|
|
|
# level make. This is needed to make sure we can create runtime-info.h
|
|
|
|
# when doing canadian cross builds where running ../../gcc/cc1obj
|
|
|
|
# does not make any sense.
|
|
|
|
#
|
|
|
|
CC1OBJ = `$(CC) -print-prog-name=cc1obj`
|
|
|
|
|
1998-10-06 21:33:27 +02:00
|
|
|
INCLUDES = -I$(srcdir)/objc -I$(srcdir)/$(MULTISRCTOP)../gcc \
|
1998-11-08 15:47:19 +01:00
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../gcc/config -I$(MULTIBUILDTOP)../../gcc \
|
|
|
|
-I$(srcdir)/$(MULTISRCTOP)../include
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
OBJC_GCFLAGS=-DOBJC_WITH_GC=1
|
2000-07-20 09:27:26 +02:00
|
|
|
OBJC_THREAD_FILE=thr-objc
|
2000-07-29 21:19:43 +02:00
|
|
|
OBJC_BOEHM_GC=@OBJC_BOEHM_GC@
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
.SUFFIXES:
|
2000-07-29 21:19:43 +02:00
|
|
|
.SUFFIXES: .c .m .lo
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
.c.lo:
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
.m.lo:
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
1998-10-01 23:35:22 +02:00
|
|
|
# Flags to pass to a recursive make.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
2003-01-09 09:08:30 +01:00
|
|
|
"DESTDIR=$(DESTDIR)" \
|
1998-10-01 23:35:22 +02:00
|
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
|
|
"EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|
|
|
"HDEFINES=$(HDEFINES)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
2000-07-29 21:19:43 +02:00
|
|
|
"LIBTOOL=$(LIBTOOL)" \
|
1998-10-01 23:35:22 +02:00
|
|
|
"LOADLIBES=$(LOADLIBES)" \
|
|
|
|
"PICFLAG=$(PICFLAG)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
1999-08-07 07:37:16 +02:00
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1998-10-01 23:35:22 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
all: libobjc.la $(OBJC_BOEHM_GC)
|
2002-09-23 05:52:55 +02:00
|
|
|
: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
1998-09-30 04:13:15 +02: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 \
|
|
|
|
thr.h
|
|
|
|
|
|
|
|
# Modules that comprise the runtime library.
|
|
|
|
|
2000-07-29 21:19:43 +02: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 \
|
|
|
|
$(OBJC_THREAD_FILE).lo
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02: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 \
|
|
|
|
$(OBJC_THREAD_FILE)_gc.lo
|
1998-09-30 04:13:15 +02:00
|
|
|
|
1999-04-25 02:21:51 +02:00
|
|
|
runtime-info.h:
|
2000-07-29 21:19:43 +02:00
|
|
|
echo "" > tmp-runtime
|
|
|
|
echo "/* This file is automatically generated */" > $@
|
|
|
|
$(CC1OBJ) -print-objc-runtime-info tmp-runtime >> $@
|
|
|
|
rm -f tmp-runtime
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
archive_gc.lo: archive.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
class_gc.lo: class.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
encoding_gc.lo: encoding.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
gc.lo: gc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
gc_gc.lo: gc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
hash_gc.lo: hash.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
init_gc.lo: init.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
linking.lo: linking.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
linking_gc.lo: linking.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
misc_gc.lo: misc.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
nil_method_gc.lo: nil_method.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
NXConstStr.lo: NXConstStr.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
NXConstStr_gc.lo: NXConstStr.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
Object.lo: Object.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
Object_gc.lo: Object.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
objects_gc.lo: objects.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
Protocol.lo: Protocol.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
Protocol_gc.lo: Protocol.m
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
|
|
|
|
$(OBJC_GCFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
sarray_gc.lo: sarray.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
selector_gc.lo: selector.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
sendmsg.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
sendmsg_gc.lo: sendmsg.c runtime-info.h
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
thr_gc.lo: thr.c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
$(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD_FILE).c
|
|
|
|
$(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
|
|
|
|
$(INCLUDES) $<
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
doc: info dvi html
|
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
libobjc.la: $(OBJS)
|
2002-02-11 19:10:05 +01:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
|
|
|
|
-rpath $(glibcpp_toolexeclibdir) \
|
2000-07-29 21:19:43 +02:00
|
|
|
-version-info $(LIBOBJC_VERSION)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02:00
|
|
|
libobjc_gc.la: $(OBJS_GC)
|
2002-02-11 19:10:05 +01:00
|
|
|
$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS_GC) \
|
|
|
|
-rpath $(glibcpp_toolexeclibdir) \
|
2000-07-29 21:19:43 +02:00
|
|
|
-version-info $(LIBOBJC_GC_VERSION)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2000-07-29 21:19:43 +02: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 04:13:15 +02: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-29 21:19:43 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
1998-09-30 04:13:15 +02:00
|
|
|
|
2001-05-09 16:16:47 +02:00
|
|
|
info:
|
|
|
|
dvi:
|
|
|
|
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
|
|
|
|
|
|
|
|
${srcdir}/configure: configure.in
|
|
|
|
rm -f config.cache
|
|
|
|
cd ${srcdir} && autoconf
|
|
|
|
|
2002-02-11 19:10:05 +01:00
|
|
|
install: install-libs install-headers
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
install-libs: installdirs
|
2003-01-09 09:08:30 +01:00
|
|
|
$(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(glibcpp_toolexeclibdir)
|
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc.la $(DESTDIR)$(glibcpp_toolexeclibdir);
|
2000-07-29 21:19:43 +02:00
|
|
|
if [ "$(OBJC_BOEHM_GC)" ]; then \
|
2002-02-11 19:10:05 +01:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL) libobjc_gc.la \
|
2003-01-09 09:08:30 +01:00
|
|
|
$(DESTDIR)$(glibcpp_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="$@"
|
2003-01-09 09:08:30 +01:00
|
|
|
@-$(LIBTOOL) --mode=finish $(DESTDIR)$(glibcpp_toolexeclibdir)
|
1998-09-30 04:13:15 +02:00
|
|
|
|
|
|
|
# Copy Objective C headers to installation include directory.
|
2002-02-11 19:10:05 +01:00
|
|
|
install-headers:
|
2003-01-09 09:08:30 +01:00
|
|
|
$(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(libsubdir)/include/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}; \
|
2003-01-09 09:08:30 +01:00
|
|
|
$(INSTALL_DATA) $${realfile} $(DESTDIR)$(libsubdir)/include/objc; \
|
1998-09-30 04:13:15 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
check uninstall install-strip dist installcheck installdirs:
|
|
|
|
|
|
|
|
mostlyclean:
|
2000-07-29 21:19:43 +02:00
|
|
|
-$(LIBTOOL_CLEAN) rm -f libobjc.la libobjc_gc.la *.lo
|
|
|
|
-rm -f runtime-info.h tmp-runtime.s *.o *.lo libobjc* xforward \
|
1998-09-30 04:13:15 +02: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
|