mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
379 lines
11 KiB
Plaintext
379 lines
11 KiB
Plaintext
|
# Makefile for GNU binary-file utilities
|
|||
|
# Copyright (C) 1989-1991 Free Software Foundation, Inc.
|
|||
|
|
|||
|
# This file is part of GNU binutils.
|
|||
|
|
|||
|
# This program is free software; you can redistribute it and/or modify
|
|||
|
# it under the terms of the GNU General Public License as published by
|
|||
|
# the Free Software Foundation; either version 2 of the License, or
|
|||
|
# (at your option) any later version.
|
|||
|
#
|
|||
|
# This program is distributed in the hope that it 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 this program; if not, write to the Free Software
|
|||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||
|
|
|||
|
#$Id$
|
|||
|
|
|||
|
srcdir = .
|
|||
|
|
|||
|
ddestdir = /usr/local
|
|||
|
idestdir = $(ddestdir)
|
|||
|
|
|||
|
SHELL = /bin/sh
|
|||
|
MAKEINFO=makeinfo
|
|||
|
TEXI2ROFF=texi2roff
|
|||
|
|
|||
|
# Distribution version
|
|||
|
VERSION=1.92
|
|||
|
# Distribution name
|
|||
|
DIST_NAME=binutils-beta-${VERSION}
|
|||
|
|
|||
|
#version=`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
|
|||
|
prefix = $(ddestdir)
|
|||
|
bindir = $(prefix)/bin
|
|||
|
mandir = $(idestdir)/man
|
|||
|
|
|||
|
# Where to find texinfo.tex to format docn with TeX
|
|||
|
TEXIDIR = $(srcdir)/../texinfo/fsf
|
|||
|
|
|||
|
MANPAGES= ar.1 nm.1 objdump.1 ranlib.1 size.1 strip.1
|
|||
|
|
|||
|
#INSTALL = install -c
|
|||
|
#INSTALL_PROGRAM = $(INSTALL)
|
|||
|
#INSTALL_FILE = $(INSTALL)
|
|||
|
|
|||
|
#CC=gcc -Wall
|
|||
|
# these two are almost the same program
|
|||
|
AR_PROG=ar
|
|||
|
RANLIB_PROG=ranlib
|
|||
|
|
|||
|
# copy and strip should be the same program
|
|||
|
COPY_PROG=copy
|
|||
|
STRIP_PROG=strip
|
|||
|
|
|||
|
# These should all be the same program too.
|
|||
|
SIZE_PROG=size
|
|||
|
NM_PROG=nm
|
|||
|
OBJDUMP_PROG=objdump
|
|||
|
|
|||
|
PROGS = $(SIZE_PROG) $(COPY_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
|
|||
|
STAGESTUFF = $(PROGS) *.o
|
|||
|
|
|||
|
BASEDIR = $(srcdir)/..
|
|||
|
LIBDIR = ../bfd
|
|||
|
|
|||
|
MINUS_G =
|
|||
|
#### host and target dependant Makefile fragments come in here.
|
|||
|
HDEFINES=-O -D__MSDOS__ -D__GO32__
|
|||
|
TDEFINES=
|
|||
|
MALLOC=
|
|||
|
###
|
|||
|
|
|||
|
INCDIR = $(BASEDIR)/include
|
|||
|
|
|||
|
CFLAGS = $(MINUS_G) -I. -I$(srcdir) -I$(INCDIR) $(HDEFINES) $(TDEFINES)
|
|||
|
|
|||
|
# When adding .o files, to make VPATH work in Sun Make, you have to
|
|||
|
# also add a foo.o: foo.c line at the bottom of the file.
|
|||
|
DISASMS = m68k-pinsn.o i960-pinsn.o sparc-pinsn.o am29k-pinsn.o
|
|||
|
|
|||
|
#
|
|||
|
## Random definitions
|
|||
|
# Hopefully all these may be flushed once we get configuration down pat.
|
|||
|
|
|||
|
# alloca only needed for systems which don't have it and when cc != gcc.
|
|||
|
# ALLOCA = alloca.o
|
|||
|
|
|||
|
# nm tries to malloc enough space for the string table. The old GNU malloc
|
|||
|
# rounds this up to a power of two (e.g. 5M becomes 8M), and so it might
|
|||
|
# fail unnecessarily. I've also seen some Unix malloc's fail, even when
|
|||
|
# there is enough memory. So use the new GNU malloc.
|
|||
|
# MALLOC = gmalloc.o
|
|||
|
|
|||
|
# Use the GNU getopt unless you have problems with it.
|
|||
|
# The IRIS version could probably benefit from being assembled with
|
|||
|
# libmalloc rather than the ordinary malloc.
|
|||
|
LIBIBERTY = ../libiberty/libiberty.a
|
|||
|
|
|||
|
# Code shared by all the binutils.
|
|||
|
BULIBS = bucomm.o version.o filemode.o
|
|||
|
|
|||
|
ADDL_LIBS = $(MALLOC) $(BULIBS) $(BFD) $(LIBIBERTY)
|
|||
|
|
|||
|
BFD = $(LIBDIR)/libbfd.a
|
|||
|
#
|
|||
|
## The rules
|
|||
|
|