diff options
author | Tom Wood <wood@gnu.org> | 1993-04-10 01:03:51 +0000 |
---|---|---|
committer | Tom Wood <wood@gnu.org> | 1993-04-10 01:03:51 +0000 |
commit | 3e676e9922ee91afec02fa7b8f598cce3cdc9f97 (patch) | |
tree | 09bcfa00ddd950ce80cb964ebd8ba79641d6628c | |
parent | fe67cf58ffd46926ea2cd37267fd6b88244ac7ee (diff) | |
download | gcc-3e676e9922ee91afec02fa7b8f598cce3cdc9f97.zip gcc-3e676e9922ee91afec02fa7b8f598cce3cdc9f97.tar.gz gcc-3e676e9922ee91afec02fa7b8f598cce3cdc9f97.tar.bz2 |
Initial revision
From-SVN: r4075
-rw-r--r-- | gcc/objc/Makefile.in | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gcc/objc/Makefile.in b/gcc/objc/Makefile.in new file mode 100644 index 0000000..1a3ba78 --- /dev/null +++ b/gcc/objc/Makefile.in @@ -0,0 +1,50 @@ +# This makefile is run by the parent dir's makefile. +# thisdir1=`pwd`; \ +# srcdir1=`cd $(srcdir); pwd`; \ +# cd objc; \ +# $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile libobjc.a \ +# srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \ +# GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \ +# GCC_CFLAGS="$(GCC_CFLAGS)" +# Two targets are used by ../Makefile: `all' and `mostlyclean'. + +.SUFFIXES: .m + +VPATH = $(srcdir)/objc + +AR = ar +AR_FLAGS = rc + +# Always search these dirs when compiling. +SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config + +.c.o: + $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $< + +.m.o: + $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $< + +# If we were not invoked from the parent dir, +# invoke make in the parent dir and have reinvoke this makefile. +# That's necessary to get the right values for srcdir, etc. +all: + cd ..; $(MAKE) sublibobjc.a + +libobjc.a: core.o hash.o object.o + -rm -f libobjc.a + $(AR) rc libobjc.a object.o core.o hash.o +# ranlib is run in the parent directory's makefile. + +OBJC_H = objc.h objc-proto.h record.h $(srcdir)/assert.h $(srcdir)/gstdarg.h +HASH_H = hash.h mutex.h + +core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h +hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h +object.o: object.m object.h $(OBJC_H) + $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $< + +mostlyclean: + -rm -f core.o hash.o object.o libobjc.a +clean: mostlyclean +distclean: mostlyclean +extraclean: mostlyclean |