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