home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
binutils-1.8.x-src.lha
/
GNU
/
src
/
amiga
/
binutils-1.8.x
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1994-04-30
|
4KB
|
139 lines
# Makefile for GNU binary-file utilities
# Copyright (C) 1989, Free Software Foundation, Inc.
#
# This file is part of the GNU binutils.
#
# The GNU binutils are free software; you can redistribute them and/or modify
# them under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# The GNU binutils are distributed in the hope that they will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the GNU binutils; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#### Start of system configuration section. ####
VPATH = @srcdir@
srcdir = @srcdir@
# Common prefix for machine-independent installed files.
prefix = /gnu
# Common prefix for machine-dependent installed files.
exec_prefix = $(prefix)
# Directory to install executables in.
bindir = $(exec_prefix)/bin
# Directory to install libraries in.
libdir = $(exec_prefix)/lib
# Directory to install the Info files in.
infodir = $(prefix)/info
# Directory to install the man page in.
mandir = $(prefix)/man/man$(manext)
# Number to put on the man page filename.
manext = 1
# Program to install executables.
INSTALL_PROGRAM = @INSTALL_PROGRAM@
# Program to install data like man pages.
INSTALL_DATA = @INSTALL_DATA@
# Generic install program.
INSTALL = @INSTALL@
CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
#### End of system configuration section. ####
# -I. is needed to find config.h in the build directory.
.c.o:
$(CC) -c -I. -I$(srcdir) $(CFLAGS) $< $(OUTPUT_OPTION)
# Don't include gprof.
PROGS = $(archpfx)ld $(archpfx)size \
$(archpfx)nm $(archpfx)strip $(archpfx)ar $(archpfx)ranlib
GNU_GETOPT = $(archpfx)getopt.o
GNU_GETOPT_LONG = $(archpfx)getopt.o $(archpfx)getopt1.o
# C++ demangler
CPLUS_DEM = $(archpfx)cplus-dem.o
all: $(PROGS)
$(archpfx)ld: $(archpfx)ld.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
$(CC) $(LDFLAGS) -o $(archpfx)ld $(archpfx)ld.o \
$(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
$(archpfx)size: $(archpfx)size.o
$(CC) $(LDFLAGS) -o $(archpfx)size $(archpfx)size.o $(LIBS)
$(archpfx)nm: $(archpfx)nm.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
$(CC) $(LDFLAGS) -o $(archpfx)nm $(archpfx)nm.o \
$(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
$(archpfx)strip: $(archpfx)strip.o $(GNU_GETOPT_LONG)
$(CC) $(LDFLAGS) -o $(archpfx)strip $(archpfx)strip.o \
$(GNU_GETOPT_LONG) $(LIBS)
$(archpfx)ar: $(archpfx)ar.o
$(CC) $(LDFLAGS) -o $(archpfx)ar $(archpfx)ar.o $(LIBS)
$(archpfx)gprof: $(archpfx)gprof.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
$(CC) $(LDFLAGS) -o $(archpfx)gprof $(archpfx)gprof.o \
$(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
$(archpfx)gprof.o: gprof.c gmon.h
$(CC) $(CFLAGS) -c gprof.c $(OUTPUT_OPTION)
$(archpfx)ranlib: $(archpfx)ranlib.o $(GNU_GETOPT_LONG)
$(CC) $(LDFLAGS) -o $(archpfx)ranlib $(archpfx)ranlib.o \
$(GNU_GETOPT_LONG) $(LIBS)
$(archpfx)ranlib.o: ranlib.c
$(CC) $(CFLAGS) -c -I. -I$(srcdir) \
-DAR_PROG=\"$(bindir)/ar\" $(srcdir)/ranlib.c $(OUTPUT_OPTION)
$(archpfx)objdump: $(archpfx)objdump.o $(GNU_GETOPT_LONG) a.out.gnu.h
$(CC) $(LDFLAGS) -o $(archpfx)objdump $(archpfx)objdump.o \
$(GNU_GETOPT_LONG) $(LIBS)
Makefile: config.status $(srcdir)/Makefile.in
$(SHELL) config.status
# Robotussin is NOT part of `all'.
$(archpfx)robotussin: $(archpfx)robotussin.o
$(CC) $(LDFLAGS) -o $(archpfx)robotussin $(archpfx)robotussin.o
libc.a: $(archpfx)robotussin libconvert $(archpfx)ar
libconvert /lib/libc.a libc.a
# usg-gnulib is the file gcc makes using the usg compiler
gnulib: $(archpfx)robotussin libconvert usg-gnulib $(archpfx)ar
libconvert usg-gnulib gnulib
clean:
-rm -f *.o core
-rm -f $(archpfx)*.o
-rm -f $(PROGS)
dist: binutils.tar.Z
# Requires GNU tar.
binutils.tar.Z:
cd ..; tar -cohz -f binutils/binutils.tar.Z -T binutils/ARCHLIST
.PHONY: install
install: $(PROGS)
for file in $(PROGS); do \
$(INSTALL_PROGRAM) $${file} $(bindir)/$${file}; \
done