home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gdb-4.12-src.lha / src / build / gdb-4.12 / mmalloc / Makefile < prev   
Encoding:
Makefile  |  1994-02-22  |  5.0 KB  |  215 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. VPATH = /ISO/gdb/gdb-4.12-amiga/mmalloc
  3. links = 
  4. host_alias = amigados
  5. host_cpu = m68k
  6. host_vendor = cbm
  7. host_os = amigados
  8. host_canonical = m68k-cbm-amigados
  9. target_alias = amigados
  10. target_cpu = m68k
  11. target_vendor = cbm
  12. target_os = amigados
  13. target_canonical = m68k-cbm-amigados
  14. host_makefile_frag = /ISO/gdb/gdb-4.12-amiga/mmalloc/config/mh-amigados
  15. # Copyright (C) 1992 Free Software Foundation, Inc.
  16. # This file is part of the GNU C Library.
  17.  
  18. # The GNU C Library is free software; you can redistribute it and/or
  19. # modify it under the terms of the GNU Library General Public License as
  20. # published by the Free Software Foundation; either version 2 of the
  21. # License, or (at your option) any later version.
  22.  
  23. # The GNU C Library is distributed in the hope that it will be useful,
  24. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  26. # Library General Public License for more details.
  27.  
  28. # You should have received a copy of the GNU Library General Public
  29. # License along with the GNU C Library; see the file COPYING.LIB.  If
  30. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  31. # Cambridge, MA 02139, USA.
  32.  
  33. #
  34. # Makefile for mmalloc directory
  35. #
  36.  
  37. # Directory containing source files.  Don't clean up the spacing,
  38. # this exact string is matched for by the "configure" script.
  39. srcdir = /ISO/gdb/gdb-4.12-amiga/mmalloc
  40.  
  41. prefix = /gnu
  42.  
  43. exec_prefix = $(prefix)
  44.  
  45. bindir =    $(exec_prefix)/bin
  46. libdir =    $(exec_prefix)/lib
  47.  
  48. datadir =    $(prefix)/lib
  49. mandir =    $(prefix)/man
  50. man1dir =    $(mandir)/man1
  51. man2dir =    $(mandir)/man2
  52. man3dir =    $(mandir)/man3
  53. man4dir =    $(mandir)/man4
  54. man5dir =    $(mandir)/man5
  55. man6dir =    $(mandir)/man6
  56. man7dir =    $(mandir)/man7
  57. man8dir =    $(mandir)/man8
  58. man9dir =    $(mandir)/man9
  59. infodir =    $(prefix)/info
  60. includedir =    $(prefix)/include
  61. docdir =    $(datadir)/doc
  62.  
  63. SHELL = /bin/sh
  64.  
  65. INSTALL =    install -c
  66. INSTALL_PROGRAM = $(INSTALL)
  67. INSTALL_DATA =    $(INSTALL)
  68.  
  69. AR =        ar
  70. AR_FLAGS =    qv
  71. CFLAGS =    -g
  72. BISON =        bison
  73. MAKEINFO =    makeinfo
  74. RANLIB =    ranlib
  75. RM =        rm
  76.  
  77. # where to find makeinfo
  78. MAKEINFO=makeinfo
  79.  
  80. SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$$TEXINPUTS
  81.  
  82. # The TeX formatter
  83. TEX = tex
  84.  
  85. TARGETLIB =    libmmalloc.a
  86.  
  87. CFILES =    mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
  88.         mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
  89.         keys.c sbrk-sup.c
  90.  
  91. HFILES =    mmalloc.h
  92.  
  93. OFILES =    mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
  94.         mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
  95.         keys.o sbrk-sup.o
  96.  
  97. #### Host, target, and site specific Makefile fragments come in here.
  98. # Host configuration for Commodore Amiga running AmigaDOS.
  99. # We don't actually use libmmalloc.a, since there is no sbrk(),
  100. # but this allows us to compile it (and then ignore it).
  101.  
  102. CC=gcc
  103. # We don't need -g yet, so do -O instead.
  104. CFLAGS=-O###
  105.  
  106. .c.o:
  107.     $(CC) -c $(CFLAGS) -I. -I$(srcdir)/../include $(HDEFINES) $<
  108.  
  109. # Do we want/need any config overrides?
  110. #     
  111.  
  112. STAGESTUFF =    $(TARGETLIB) *.o
  113.  
  114. all:        $(TARGETLIB)
  115.  
  116. info: mmalloc.info
  117. dvi: mmalloc.dvi
  118. clean-info:
  119. installcheck:
  120.  
  121. mmalloc.info: mmalloc.texi
  122.     $(MAKEINFO) -I $(srcdir) -o ./mmalloc.info mmalloc.texi
  123.  
  124. # This file doesn't need texindex currently.
  125. mmalloc.dvi: mmalloc.texi
  126.     $(SET_TEXINPUTS) $(TEX) mmalloc.texi
  127.     rm -f mmalloc.?? mmalloc.??s mmalloc.log mmalloc.aux mmalloc.toc
  128.  
  129. install-info: info
  130.     $(INSTALL_DATA) mmalloc.info $(infodir)/$$i
  131.  
  132. check: test1.c
  133. #    $(CC) -g $(srcdir)/test1.c libmmalloc.a
  134. # This loses for Canadian cross (building mmalloc with a cross-compiler).
  135. # There is probably some dejagnu-ish solution (such as what we are doing
  136. # for gdb, perhaps).
  137. #    ./a.out
  138.  
  139. install:    all
  140.         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
  141.         $(RANLIB) $(libdir)/$(TARGETLIB).n
  142.         mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
  143.  
  144. $(TARGETLIB):    $(OFILES)
  145.         $(RM) -rf $@
  146.         $(AR) $(AR_FLAGS) $@ $(OFILES)
  147.         $(RANLIB) $@
  148.  
  149. $(OFILES) :    $(HFILES)
  150.  
  151. .always.:
  152. # Do nothing.
  153.  
  154. .PHONEY: all etags tags ls clean stage1 stage2 .always.
  155.  
  156. stage1:        force
  157.         -mkdir stage1
  158.         -mv -f $(STAGESTUFF) stage1
  159.  
  160. stage2:        force
  161.         -mkdir stage2
  162.         -mv -f $(STAGESTUFF) stage2
  163.  
  164. stage3:        force
  165.         -mkdir stage3
  166.         -mv -f $(STAGESTUFF) stage3
  167.  
  168. stage4:        force
  169.         -mkdir stage4
  170.         -mv -f $(STAGESTUFF) stage4
  171.  
  172. against=stage2
  173.  
  174. comparison:    force
  175.         for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  176.  
  177. de-stage1:    force
  178.         -(cd stage1 ; mv -f * ..)
  179.         -rmdir stage1
  180.  
  181. de-stage2:    force
  182.         -(cd stage2 ; mv -f * ..)
  183.         -rmdir stage2
  184.  
  185. de-stage3:    force
  186.         -(cd stage3 ; mv -f * ..)
  187.         -rmdir stage3
  188.  
  189. de-stage4:    force
  190.         -(cd stage4 ; mv -f * ..)
  191.         -rmdir stage4
  192.  
  193. etags tags:    TAGS
  194.  
  195. TAGS:        $(CFILES)
  196.     etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done`
  197.  
  198. ls:
  199.         @echo Makefile $(HFILES) $(CFILES)
  200.  
  201. # Need to deal with profiled libraries, too.
  202.  
  203. mostlyclean clean:
  204.         rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors 
  205.  
  206. distclean realclean:    clean 
  207.         rm -f config.status
  208.         rm -f Makefile depend
  209.  
  210. force:
  211.  
  212. Makefile:    $(srcdir)/Makefile.in $(host_makefile_frag) \
  213.         $(target_makefile_frag)
  214.         $(SHELL) ./config.status
  215.