Annotation of binutils/Makefile, revision 1.1.1.3

1.1.1.2   root        1: # Makefile for GNU binary-file utilities
                      2: # select a set of CFLAGS and PROGS, below, depending on the system type
1.1.1.3 ! root        3: # Copyright (C) 1989, Free Software Foundation, Inc.
        !             4: #
        !             5: # This file is part of GNU CC.
        !             6: # 
        !             7: # GNU CC is free software; you can redistribute it and/or modify
        !             8: # it under the terms of the GNU General Public License as published by
        !             9: # the Free Software Foundation; either version 1, or (at your option)
        !            10: # any later version.
        !            11: # 
        !            12: # GNU CC is distributed in the hope that it will be useful,
        !            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
        !            18: # along with GNU CC; see the file COPYING.  If not, write to
        !            19: # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
        !            20: 
1.1.1.2   root       21: 
1.1       root       22: GNUCC = gcc -O
1.1.1.2   root       23: 
                     24: # for BSD systems
1.1       root       25: CFLAGS = -g
1.1.1.2   root       26: # Don't add robotussin; it won't compile on BSD or GNU systems.
                     27: # objdump also won't compile on most systems (trouble with N_DATADDR).
                     28: PROGS = gprof ld size nm strip ar ranlib
                     29: 
                     30: # for USG systems using COFF_ENCAPSULATE
                     31: # also, you will want to make the target libc.a (but it takes a long time)
                     32: # Note that you should leave a copy of `ar' in this directory
                     33: # after you install it, since `ranlib' will try to run it from here.
1.1.1.3 ! root       34: #CFLAGS = -g -DUSG -DCOFF_ENCAPSULATE -DPORTAR -DNON_NATIVE
        !            35: #PROGS = ld size nm strip ar robotussin objdump ranlib gprof
        !            36: #it's better to move a copy of alloca into your libc than to risk getting some
        !            37: #incompatiable functions from -lPW (like index()), but if you
        !            38: #want to be lazy, uncomment this line
1.1.1.2   root       39: #LIBS = -lPW
1.1.1.3 ! root       40: # For HP-UX systems
        !            41: # Don't add robotussin; use hpxt instead.
        !            42: # Note that you should leave a copy of `ar' in this directory
        !            43: # after you install it, since `ranlib' will try to run it from here.
        !            44: #CFLAGS = -g -Ihp-include -DUSG -DNON_NATIVE
        !            45: #PROGS = ld size nm strip ar ranlib
        !            46: #LIBS = alloca.o
        !            47: 
        !            48: # Use the GNU getopt unless you have problems with it.
        !            49: GNU_GETOPT = getopt.o
1.1       root       50: 
1.1.1.2   root       51: all: $(PROGS)
1.1       root       52: 
                     53: ld: ld.o
1.1.1.2   root       54: # LIBS is used here since ld needs to use alloca.
                     55: # Alternatively, compile it with GNU C--then the compiler handles alloca.
                     56:        $(CC) -o ld ld.o $(LIBS)
1.1       root       57: 
                     58: size: size.o
                     59:        $(CC) -o size size.o
                     60: 
1.1.1.3 ! root       61: nm: nm.o $(GNU_GETOPT)
        !            62:        $(CC) -o nm nm.o $(LIBS) $(GNU_GETOPT)
1.1       root       63: 
1.1.1.3 ! root       64: strip: strip.o $(GNU_GETOPT)
        !            65:        $(CC) -o strip strip.o $(GNU_GETOPT)
1.1       root       66: 
                     67: ar: ar.o
                     68:        $(CC) -o ar ar.o
                     69: 
1.1.1.3 ! root       70: gprof: gprof.o $(GNU_GETOPT)
        !            71:        $(GNUCC) -o gprof gprof.o $(GNU_GETOPT)
        !            72: gprof.o: gprof.c gmon.h 
1.1       root       73:        $(GNUCC) -c $(CFLAGS) gprof.c
1.1.1.2   root       74: 
                     75: ranlib: ranlib.o
                     76:        $(CC) -o ranlib ranlib.o
                     77: ranlib.o: ranlib.c
                     78:        $(CC) -c -g -DAR_PROG=\"`pwd`/ar\" ranlib.c
                     79: 
                     80: # Robotussin is NOT part of `all'.
                     81: robotussin: robotussin.o
                     82:        $(CC) -o robotussin robotussin.o
                     83: 
1.1.1.3 ! root       84: libc.a: robotussin libconvert ar
        !            85:        libconvert /lib/libc.a libc.a
        !            86: 
        !            87: # usg-gnulib is the file gcc makes using the usg compiler
        !            88: gnulib: robotussin libconvert usg-gnulib ar
        !            89:        libconvert usg-gnulib gnulib
1.1.1.2   root       90: 
                     91: clean:
                     92:        -rm -f *.o core
                     93:        -rm -f gprof ar nm size strip ld robotussin objdump ranlib
                     94: 
                     95: dist:
                     96:        -rm -rf binutils
                     97:        mkdir binutils
1.1.1.3 ! root       98:        -cd binutils; ln -s ../* .
        !            99:        cd binutils; \
        !           100:                rm -f GNUmakefile *~ "#*" log* binutils binutils.tar* =*; \
        !           101:                make clean
        !           102:        tar cohf binutils.tar binutils
1.1.1.2   root      103:        compress < binutils.tar > binutils.tar.Z
                    104:        rm -rf binutils

unix.superglobalmegacorp.com

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