]> gcc.gnu.org Git - gcc.git/blame - libobjc/Makefile.in
cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb, don't inspect BLOCK_F...
[gcc.git] / libobjc / Makefile.in
CommitLineData
05dcec66 1# Makefile for GNU Objective C runtime library.
9c01f395 2# Copyright 1993, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
05dcec66 3# Free Software Foundation, Inc.
bce1b489 4
6c82ad25 5#This file is part of GCC.
bce1b489 6
6c82ad25 7#GCC is free software; you can redistribute it and/or modify
bce1b489
BE
8#it under the terms of the GNU General Public License as published by
9#the Free Software Foundation; either version 2, or (at your option)
10#any later version.
11
6c82ad25 12#GCC is distributed in the hope that it will be useful,
bce1b489
BE
13#but WITHOUT ANY WARRANTY; without even the implied warranty of
14#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#GNU General Public License for more details.
16
17#You should have received a copy of the GNU General Public License
6c82ad25 18#along with GCC; see the file COPYING. If not, write to
5f38fdda
JL
19#the Free Software Foundation, 59 Temple Place - Suite 330,
20#Boston, MA 02111-1307, USA. */
bce1b489
BE
21
22#This was cribbed from the libchill, libiberty and libstdc++
23#Makefile.in files. Some of this stuff may be unnecessary and
24#worthless.
25
9aa338ec 26SHELL = @SHELL@
b150efee 27MAKEOVERRIDES=
bce1b489
BE
28
29#### Start of system configuration section. ####
30
b150efee
FS
31srcdir = @glibcpp_srcdir@
32VPATH = @glibcpp_srcdir@
bce1b489
BE
33prefix = @prefix@
34exec_prefix = @exec_prefix@
9c01f395 35target_noncanonical = @target_noncanonical@
bce1b489 36gcc_version = @gcc_version@
b150efee
FS
37top_srcdir = @top_srcdir@
38toplevel_srcdir = @toplevel_srcdir@
eb01299a 39toolexecdir = @toolexecdir@
a42a57cb 40# Toolexecdir is used only by toolexeclibdir
608e1e0c 41toolexeclibdir = @toolexeclibdir@
b150efee 42
7d34a5a9 43includedirname = @includedirname@
ff65de76
AP
44libext = @libext@
45
b150efee 46top_builddir = .
bce1b489
BE
47
48libdir = $(exec_prefix)/lib
9c01f395 49libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
bce1b489
BE
50
51# Multilib support variables.
52MULTISRCTOP =
53MULTIBUILDTOP =
54MULTIDIRS =
55MULTISUBDIR =
56MULTIDO = true
57MULTICLEAN = true
58
59# Not configured per top-level version, since that doesn't get passed
60# down at configure time, but overrridden by the top-level install
61# target.
62INSTALL = @INSTALL@
63INSTALL_PROGRAM = @INSTALL_PROGRAM@
64INSTALL_DATA = @INSTALL_DATA@
65
66AR = @AR@
67AR_FLAGS = rc
68
69RANLIB = @RANLIB@
70
71CC = @CC@
72CFLAGS = @CFLAGS@
9aa338ec 73WARN_CFLAGS = -W -Wall -Wwrite-strings -Wstrict-prototypes
15794a95 74GTHREAD_FLAGS=@GTHREAD_FLAGS@
9aa338ec 75ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARN_CFLAGS) \
8f8cdf33 76 $(GTHREAD_FLAGS) -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing
bce1b489 77
c161c99b
NP
78# Libtool
79# The following strings describe the version of the obj-C library
80# begin compiled and compatibility issues.
81# Please refer to Libtool documentation about how to manage these
82# numbers.
68a1af87
MH
83LIBOBJC_VERSION = @VERSION@
84LIBOBJC_GC_VERSION = @VERSION@
435317e2 85LIBTOOL = @LIBTOOL@
c161c99b
NP
86LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
87LIBTOOL_LINK = $(LIBTOOL) --mode=link
88LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
89LIBTOOL_CLEAN = $(LIBTOOL) --mode=clean
90#LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
91
5e2f657b 92INCLUDES = -I$(srcdir)/objc -I$(srcdir)/$(MULTISRCTOP)../gcc \
84beab38
KG
93 -I$(srcdir)/$(MULTISRCTOP)../gcc/config -I$(MULTIBUILDTOP)../../gcc \
94 -I$(srcdir)/$(MULTISRCTOP)../include
bce1b489
BE
95
96OBJC_GCFLAGS=-DOBJC_WITH_GC=1
15794a95 97OBJC_THREAD_FILE=thr-objc
c161c99b 98OBJC_BOEHM_GC=@OBJC_BOEHM_GC@
bce1b489
BE
99
100.SUFFIXES:
c161c99b 101.SUFFIXES: .c .m .lo
bce1b489 102
c161c99b
NP
103.c.lo:
104 $(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
bce1b489 105
c161c99b
NP
106.m.lo:
107 $(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
bce1b489 108
4102f627
RL
109# Flags to pass to a recursive make.
110FLAGS_TO_PASS = \
111 "AR=$(AR)" \
112 "AR_FLAGS=$(AR_FLAGS)" \
113 "CC=$(CC)" \
114 "CFLAGS=$(CFLAGS)" \
90e5b39f 115 "DESTDIR=$(DESTDIR)" \
4102f627
RL
116 "LIBCFLAGS=$(LIBCFLAGS)" \
117 "EXTRA_OFILES=$(EXTRA_OFILES)" \
118 "HDEFINES=$(HDEFINES)" \
119 "INSTALL=$(INSTALL)" \
120 "INSTALL_DATA=$(INSTALL_DATA)" \
121 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
122 "LDFLAGS=$(LDFLAGS)" \
c161c99b 123 "LIBTOOL=$(LIBTOOL)" \
4102f627
RL
124 "LOADLIBES=$(LOADLIBES)" \
125 "PICFLAG=$(PICFLAG)" \
126 "RANLIB=$(RANLIB)" \
76632dd0
DJ
127 "SHELL=$(SHELL)" \
128 "prefix=$(prefix)" \
129 "exec_prefix=$(exec_prefix)" \
130 "libdir=$(libdir)" \
131 "libsubdir=$(libsubdir)" \
132 "tooldir=$(tooldir)"
4102f627 133
ff65de76 134all: libobjc$(libext).la $(OBJC_BOEHM_GC)
6c5d742e 135 : $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
bce1b489
BE
136
137# User-visible header files.
138
139OBJC_H = hash.h objc-list.h sarray.h objc.h objc-api.h \
140 NXConstStr.h Object.h Protocol.h encoding.h typedstream.h \
435317e2 141 thr.h objc-decls.h
bce1b489
BE
142
143# Modules that comprise the runtime library.
144
c161c99b
NP
145OBJS = archive.lo class.lo encoding.lo gc.lo hash.lo init.lo linking.lo \
146 misc.lo nil_method.lo NXConstStr.lo Object.lo objects.lo \
147 Protocol.lo sarray.lo selector.lo sendmsg.lo thr.lo \
a776161b 148 $(OBJC_THREAD_FILE).lo exception.lo
bce1b489 149
c161c99b
NP
150OBJS_GC = archive_gc.lo class_gc.lo encoding_gc.lo gc_gc.lo hash_gc.lo \
151 init_gc.lo linking_gc.lo misc_gc.lo nil_method_gc.lo \
152 NXConstStr_gc.lo Object_gc.lo objects_gc.lo Protocol_gc.lo \
153 sarray_gc.lo selector_gc.lo sendmsg_gc.lo thr_gc.lo \
5520b936 154 $(OBJC_THREAD_FILE)_gc.lo exception_gc.lo
bce1b489 155
7af06410 156runtime-info.h:
54b98a47 157 echo "" > tmp-runtime.m
c161c99b 158 echo "/* This file is automatically generated */" > $@
7989e4dc 159 $(CC) $(MULTIFLAGS) -print-objc-runtime-info -S tmp-runtime.m >> $@
54b98a47 160 rm -f tmp-runtime.m tmp-runtime.s
bce1b489 161
c161c99b
NP
162archive_gc.lo: archive.c
163 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
164 $(INCLUDES) $<
bce1b489 165
c161c99b
NP
166class_gc.lo: class.c
167 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
168 $(INCLUDES) $<
bce1b489 169
c161c99b
NP
170encoding_gc.lo: encoding.c
171 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
172 $(INCLUDES) $<
bce1b489 173
c161c99b
NP
174gc.lo: gc.c
175 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
bce1b489 176
c161c99b
NP
177gc_gc.lo: gc.c
178 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
179 $(INCLUDES) $<
bce1b489 180
c161c99b
NP
181hash_gc.lo: hash.c
182 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
183 $(INCLUDES) $<
bce1b489 184
c161c99b
NP
185init_gc.lo: init.c
186 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
187 $(INCLUDES) $<
bce1b489 188
c161c99b
NP
189linking.lo: linking.m
190 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
191 $(INCLUDES) $<
bce1b489 192
c161c99b
NP
193linking_gc.lo: linking.m
194 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
195 $(OBJC_GCFLAGS) $(INCLUDES) $<
bce1b489 196
c161c99b
NP
197misc_gc.lo: misc.c
198 $(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
199 $(INCLUDES) $<
bce1b489 200
c161c99b
NP
201nil_method_gc.lo: nil_method.c
202 $(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
203 $(INCLUDES) $<
bce1b489 204
c161c99b
NP
205NXConstStr.lo: NXConstStr.m
206 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
207 $(INCLUDES) $<
bce1b489 208
c161c99b
NP
209NXConstStr_gc.lo: NXConstStr.m
210 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
211 $(OBJC_GCFLAGS) $(INCLUDES) $<
bce1b489 212
c161c99b
NP
213Object.lo: Object.m
214 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
215 $(INCLUDES) $<
bce1b489 216
c161c99b
NP
217Object_gc.lo: Object.m
218 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
219 $(OBJC_GCFLAGS) $(INCLUDES) $<
bce1b489 220
c161c99b
NP
221objects_gc.lo: objects.c
222 $(LIBTOOL_COMPILE) $(CC) -c $(ALL_CFLAGS) -o $@ $(OBJC_GCFLAGS) \
223 $(INCLUDES) $<
bce1b489 224
c161c99b
NP
225Protocol.lo: Protocol.m
226 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
227 $(INCLUDES) $<
bce1b489 228
c161c99b
NP
229Protocol_gc.lo: Protocol.m
230 $(LIBTOOL_COMPILE) $(CC) -fgnu-runtime -c -o $@ $(ALL_CFLAGS) \
231 $(OBJC_GCFLAGS) $(INCLUDES) $<
bce1b489 232
c161c99b
NP
233sarray_gc.lo: sarray.c
234 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
235 $(INCLUDES) $<
bce1b489 236
c161c99b
NP
237selector_gc.lo: selector.c
238 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
239 $(INCLUDES) $<
bce1b489 240
c161c99b
NP
241sendmsg.lo: sendmsg.c runtime-info.h
242 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(INCLUDES) $<
bce1b489 243
c161c99b
NP
244sendmsg_gc.lo: sendmsg.c runtime-info.h
245 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
246 $(INCLUDES) $<
bce1b489 247
c161c99b
NP
248thr_gc.lo: thr.c
249 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
250 $(INCLUDES) $<
bce1b489 251
c161c99b
NP
252$(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD_FILE).c
253 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
254 $(INCLUDES) $<
bce1b489 255
a776161b 256exception.lo: exception.c
5520b936
AM
257 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) \
258 -fexceptions $(INCLUDES) $<
259
260exception_gc.lo: exception.c
a776161b
RH
261 $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
262 -fexceptions $(INCLUDES) $<
263
bce1b489
BE
264doc: info dvi html
265
ff65de76 266libobjc$(libext).la: $(OBJS)
b150efee 267 $(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
608e1e0c 268 -rpath $(toolexeclibdir) \
c161c99b 269 -version-info $(LIBOBJC_VERSION)
bce1b489 270
ff65de76 271libobjc_gc$(libext).la: $(OBJS_GC)
b150efee 272 $(LIBTOOL_LINK) $(CC) -o $@ $(OBJS_GC) \
608e1e0c 273 -rpath $(toolexeclibdir) \
c161c99b 274 -version-info $(LIBOBJC_GC_VERSION)
bce1b489 275
c161c99b
NP
276#
277# FIXME -- The following part does not fit in the libtool context.
278# Libtool is supposed to [going to] be able to create a win 32 DLL
279# without extra code but since I don't have a win machine to test
280# if it already works, I leave the old code here.
281#
282libobjc_s.a: libobjc.la
bce1b489
BE
283 mv libobjc.a libobjc_s.a
284
285# Create a relocatable DLL
286libobjc.dll: libobjc_s.a libobjc_entry.o
287 $(CC) -mdll -Wl,--base-file -Wl,libobjc.base \
288 -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
289 $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
290 --base-file libobjc.base --output-exp libobjc.exp
291 $(GCC_FOR_TARGET) -mdll -Wl,--base-file libobjc.base libobjc.exp \
292 -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
293 $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
294 --base-file libobjc.base --output-exp libobjc.exp
295 $(GCC_FOR_TARGET) libobjc.exp -mdll \
296 -o libobjc.dll libobjc_s.a libobjc_entry.o -lkernel32
297 $(DLLTOOL) --dllname libobjc.dll --def $(srcdir)/libobjc.def \
298 --output-lib libobjc.a
c161c99b
NP
299#
300#
301#
302#
303#
bce1b489 304
10c179f3
JM
305info:
306dvi:
307html:
bce1b489
BE
308
309Makefile: Makefile.in config.status
310 $(SHELL) config.status
311
312config.status: configure
313 rm -f config.cache
314 CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
315 CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
316
3adc31d1 317${srcdir}/configure: configure.ac
bce1b489
BE
318 rm -f config.cache
319 cd ${srcdir} && autoconf
320
b150efee 321install: install-libs install-headers
bce1b489
BE
322
323install-libs: installdirs
608e1e0c 324 $(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(toolexeclibdir)
ff65de76 325 $(LIBTOOL_INSTALL) $(INSTALL) libobjc$(libext).la $(DESTDIR)$(toolexeclibdir);
c161c99b 326 if [ "$(OBJC_BOEHM_GC)" ]; then \
ff65de76 327 $(LIBTOOL_INSTALL) $(INSTALL) libobjc_gc$(libext).la \
608e1e0c 328 $(DESTDIR)$(toolexeclibdir);\
c161c99b 329 fi
b150efee 330 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO="$@"
608e1e0c 331 @-$(LIBTOOL) --mode=finish $(DESTDIR)$(toolexeclibdir)
bce1b489
BE
332
333# Copy Objective C headers to installation include directory.
b150efee 334install-headers:
7d34a5a9 335 $(SHELL) $(toplevel_srcdir)/mkinstalldirs $(DESTDIR)$(libsubdir)/$(includedirname)/objc
bce1b489 336 for file in $(OBJC_H); do \
789eb4f5 337 realfile=$(srcdir)/objc/$${file}; \
7d34a5a9 338 $(INSTALL_DATA) $${realfile} $(DESTDIR)$(libsubdir)/$(includedirname)/objc; \
bce1b489
BE
339 done
340
341check uninstall install-strip dist installcheck installdirs:
342
343mostlyclean:
ff65de76 344 -$(LIBTOOL_CLEAN) rm -f libobjc$(libext).la libobjc_gc$(libext).la *.lo
c161c99b 345 -rm -f runtime-info.h tmp-runtime.s *.o *.lo libobjc* xforward \
bce1b489
BE
346 fflags *.aux *.cp *.dvi *.fn *.info *.ky *.log *.pg \
347 *.toc *.tp *.vr *.html libobj.exp
348 @$(MULTICLEAN) multi-clean DO=mostlyclean
349
350clean: mostlyclean
351 rm -f config.log
352 @$(MULTICLEAN) multi-clean DO=clean
353
354distclean: clean
355 @$(MULTICLEAN) multi-clean DO=distclean
356 rm -f config.cache config.status Makefile configure
357
358maintainer-clean realclean: distclean
359
360.PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
361 install-strip dist installcheck installdirs
54b2f310
DJ
362
363# Don't export variables to the environment, in order to not confuse
364# configure.
365.NOEXPORT:
This page took 0.435391 seconds and 5 git commands to generate.