home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdb-4.12.tar.gz / gdb-4.12.tar / gdb-4.12 / mmalloc / Makefile.in < prev    next >
Makefile  |  1994-02-03  |  4KB  |  195 lines

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