Annotation of gcc/objc/Makefile, revision 1.1.1.4

1.1.1.2   root        1: #  GNU Objective C Runtime Makefile
                      2: #  Copyright (C) 1993 Free Software Foundation, Inc.
                      3: #
                      4: #  This file is part of GNU CC.
                      5: #
                      6: #  GNU CC is free software; you can redistribute it and/or modify it under the
                      7: #  terms of the GNU General Public License as published by the Free Software
                      8: #  Foundation; either version 2, or (at your option) any later version.
                      9: #
                     10: #  GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY
                     11: #  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
                     12: #  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
                     13: #  details.
                     14: #
                     15: #  You should have received a copy of the GNU General Public License along with
                     16: #  GNU CC; see the file COPYING.  If not, write to the Free Software
                     17: #  Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
                     18: 
                     19: #  This makefile is run by the parent dir's makefile.
                     20: #  thisdir1=`pwd`; \
                     21: #  srcdir1=`cd $(srcdir); pwd`; \
                     22: #  cd objc; \
                     23: #  $(MAKE) $(MAKEFLAGS) -f $$srcdir1/objc/Makefile libobjc.a \
                     24: #    srcdir=$$srcdir1 tooldir=$(tooldir) AR="$(AR)" AR_FLAGS="$(AR_FLAGS)" \
                     25: #    GCC_FOR_TARGET="$$thisdir1/xgcc -B$$thisdir1/" \
                     26: #    GCC_CFLAGS="$(GCC_CFLAGS)" incinstalldir=$$thisdir1/include
                     27: #  Two targets are used by ../Makefile: `all' and `mostlyclean'.
1.1       root       28: 
                     29: .SUFFIXES: .m
                     30: 
1.1.1.2   root       31: OPTIMIZE= -O
                     32: 
1.1       root       33: VPATH = $(srcdir)/objc
                     34: 
                     35: AR = ar
                     36: AR_FLAGS = rc
                     37: 
                     38: # Always search these dirs when compiling.
                     39: SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config
                     40: 
                     41: .c.o:
1.1.1.2   root       42:        $(GCC_FOR_TARGET) $(OPTIMIZE) \
                     43:                -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
1.1       root       44: 
                     45: .m.o:
1.1.1.2   root       46:        $(GCC_FOR_TARGET) $(OPTIMIZE) -fgnu-runtime \
                     47:                -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
1.1       root       48: 
                     49: # If we were not invoked from the parent dir,
                     50: # invoke make in the parent dir and have reinvoke this makefile.
                     51: # That's necessary to get the right values for srcdir, etc.
                     52: all:
                     53:        cd ..; $(MAKE) sublibobjc.a
                     54: 
1.1.1.3   root       55: OBJC_O = hash.o sarray.o class.o sendmsg.o init.o archive.o encoding.o \
1.1.1.2   root       56:          selector.o objects.o misc.o Object.o Protocol.o
                     57: 
                     58: libobjc.a: $(OBJC_O)
1.1       root       59:        -rm -f libobjc.a
1.1.1.2   root       60:        $(AR) rc libobjc.a $(OBJC_O)
1.1       root       61: # ranlib is run in the parent directory's makefile.
                     62: 
1.1.1.2   root       63: OBJC_H = hash.h list.h sarray.h objc.h \
                     64:          objc-api.h \
1.1.1.3   root       65:         Object.h Protocol.h encoding.h typedstream.h
1.1.1.2   root       66: 
                     67: # copy objc headers to installation include directory
                     68: copy-headers: 
                     69:        -rm -fr $(incinstalldir)/objc
                     70:        -mkdir $(incinstalldir)/objc
                     71:        for file in $(OBJC_H); do \
                     72:          realfile=$(srcdir)/objc/$$file; \
                     73:          cp $$realfile $(incinstalldir)/objc; \
                     74:          chmod a+r $(incinstalldir)/objc/$$file; \
                     75:        done
                     76: 
1.1       root       77: mostlyclean:
1.1.1.2   root       78:        -rm -f *.o libobjc.a xforward fflags
1.1       root       79: clean: mostlyclean
                     80: distclean: mostlyclean
                     81: extraclean: mostlyclean
1.1.1.4 ! root       82: 
        !            83: # For Sun VPATH.
        !            84: 
        !            85: hash.o: hash.c
        !            86: sarray.o: sarray.c
        !            87: class.o: class.c
        !            88: sendmsg.o: sendmsg.c
        !            89: init.o: init.c
        !            90: archive.o: archive.c
        !            91: encoding.o: encoding.c
        !            92: selector.o: selector.c
        !            93: objects.o: objects.c
        !            94: misc.o: misc.c
        !            95: Object.o: Object.m
        !            96: Protocol.o: Protocol.m

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.