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 >
Makefile  |  1994-04-30  |  4KB  |  139 lines

  1. # Makefile for GNU binary-file utilities
  2. # Copyright (C) 1989, Free Software Foundation, Inc.
  3. #
  4. # This file is part of the GNU binutils.
  5. # The GNU binutils are free software; you can redistribute them and/or modify
  6. # them under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 1, or (at your option)
  8. # any later version.
  9. # The GNU binutils are distributed in the hope that they will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with the GNU binutils; see the file COPYING.  If not, write to
  15. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. #### Start of system configuration section. ####
  18.  
  19. VPATH = @srcdir@
  20. srcdir = @srcdir@
  21.  
  22. # Common prefix for machine-independent installed files.
  23. prefix = /gnu
  24. # Common prefix for machine-dependent installed files.
  25. exec_prefix = $(prefix)
  26.  
  27. # Directory to install executables in.
  28. bindir = $(exec_prefix)/bin
  29. # Directory to install libraries in.
  30. libdir = $(exec_prefix)/lib
  31. # Directory to install the Info files in.
  32. infodir = $(prefix)/info
  33. # Directory to install the man page in.
  34. mandir = $(prefix)/man/man$(manext)
  35. # Number to put on the man page filename.
  36. manext = 1
  37.  
  38. # Program to install executables.
  39. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  40. # Program to install data like man pages.
  41. INSTALL_DATA = @INSTALL_DATA@
  42. # Generic install program.
  43. INSTALL = @INSTALL@
  44.  
  45. CC = @CC@
  46. CFLAGS = @CFLAGS@
  47. DEFS = @DEFS@
  48. LDFLAGS = @LDFLAGS@
  49. LIBS = @LIBS@
  50.  
  51. #### End of system configuration section. ####
  52.  
  53. # -I. is needed to find config.h in the build directory.
  54. .c.o:
  55.     $(CC) -c -I. -I$(srcdir) $(CFLAGS) $< $(OUTPUT_OPTION)
  56.  
  57. # Don't include gprof.
  58. PROGS = $(archpfx)ld $(archpfx)size \
  59.         $(archpfx)nm $(archpfx)strip $(archpfx)ar $(archpfx)ranlib
  60.  
  61. GNU_GETOPT = $(archpfx)getopt.o
  62. GNU_GETOPT_LONG = $(archpfx)getopt.o $(archpfx)getopt1.o
  63.  
  64. # C++ demangler
  65. CPLUS_DEM = $(archpfx)cplus-dem.o
  66.  
  67. all: $(PROGS)
  68.  
  69. $(archpfx)ld: $(archpfx)ld.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
  70.     $(CC) $(LDFLAGS) -o $(archpfx)ld $(archpfx)ld.o \
  71.         $(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
  72.  
  73. $(archpfx)size: $(archpfx)size.o
  74.     $(CC) $(LDFLAGS) -o $(archpfx)size $(archpfx)size.o $(LIBS)
  75.  
  76. $(archpfx)nm: $(archpfx)nm.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
  77.     $(CC) $(LDFLAGS) -o $(archpfx)nm $(archpfx)nm.o \
  78.         $(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
  79.  
  80. $(archpfx)strip: $(archpfx)strip.o $(GNU_GETOPT_LONG)
  81.     $(CC) $(LDFLAGS) -o $(archpfx)strip $(archpfx)strip.o \
  82.         $(GNU_GETOPT_LONG) $(LIBS)
  83.  
  84. $(archpfx)ar: $(archpfx)ar.o
  85.     $(CC) $(LDFLAGS) -o $(archpfx)ar $(archpfx)ar.o $(LIBS)
  86.  
  87. $(archpfx)gprof: $(archpfx)gprof.o $(GNU_GETOPT_LONG) $(CPLUS_DEM)
  88.     $(CC) $(LDFLAGS) -o $(archpfx)gprof $(archpfx)gprof.o \
  89.         $(GNU_GETOPT_LONG) $(CPLUS_DEM) $(LIBS)
  90.  
  91. $(archpfx)gprof.o: gprof.c gmon.h 
  92.     $(CC) $(CFLAGS) -c gprof.c $(OUTPUT_OPTION)
  93.  
  94. $(archpfx)ranlib: $(archpfx)ranlib.o $(GNU_GETOPT_LONG)
  95.     $(CC) $(LDFLAGS) -o $(archpfx)ranlib $(archpfx)ranlib.o \
  96.         $(GNU_GETOPT_LONG) $(LIBS)
  97.  
  98. $(archpfx)ranlib.o: ranlib.c
  99.     $(CC) $(CFLAGS) -c -I. -I$(srcdir) \
  100.         -DAR_PROG=\"$(bindir)/ar\" $(srcdir)/ranlib.c $(OUTPUT_OPTION)
  101.  
  102. $(archpfx)objdump: $(archpfx)objdump.o $(GNU_GETOPT_LONG) a.out.gnu.h
  103.     $(CC) $(LDFLAGS) -o $(archpfx)objdump $(archpfx)objdump.o \
  104.         $(GNU_GETOPT_LONG) $(LIBS)
  105.  
  106. Makefile: config.status $(srcdir)/Makefile.in
  107.     $(SHELL) config.status
  108.  
  109. # Robotussin is NOT part of `all'.
  110. $(archpfx)robotussin: $(archpfx)robotussin.o
  111.     $(CC) $(LDFLAGS) -o $(archpfx)robotussin $(archpfx)robotussin.o
  112.  
  113. libc.a: $(archpfx)robotussin libconvert $(archpfx)ar
  114.     libconvert /lib/libc.a libc.a
  115.  
  116. # usg-gnulib is the file gcc makes using the usg compiler
  117. gnulib: $(archpfx)robotussin libconvert usg-gnulib $(archpfx)ar
  118.     libconvert usg-gnulib gnulib
  119.  
  120. clean:
  121.     -rm -f *.o core
  122.     -rm -f $(archpfx)*.o
  123.     -rm -f $(PROGS)
  124.  
  125. dist: binutils.tar.Z
  126.  
  127. # Requires GNU tar.
  128. binutils.tar.Z:
  129.     cd ..; tar -cohz -f binutils/binutils.tar.Z -T binutils/ARCHLIST
  130.  
  131. .PHONY: install
  132. install: $(PROGS)
  133.     for file in $(PROGS); do \
  134.     $(INSTALL_PROGRAM) $${file} $(bindir)/$${file}; \
  135.     done
  136.