home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / mmalloc / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-05-12  |  3.8 KB  |  174 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. TARGETLIB =    libmmalloc.a
  64.  
  65. CFILES =    mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
  66.         mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
  67.         keys.c sbrk-sup.c
  68.  
  69. HFILES =    mmalloc.h
  70.  
  71. OFILES =    mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
  72.         mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
  73.         keys.o sbrk-sup.o
  74.  
  75. #### Host, target, and site specific Makefile fragments come in here.
  76. ###
  77.  
  78. .c.o:
  79.     $(CC) -c $(CFLAGS) -I. -I$(srcdir)/../include $(HDEFINES) $<
  80.  
  81. # Do we want/need any config overrides?
  82. #     
  83.  
  84. STAGESTUFF =    $(TARGETLIB) *.o
  85.  
  86. all:        $(TARGETLIB)
  87.  
  88. info:
  89. clean-info:
  90. install-info:
  91. dvi:
  92. installcheck:
  93. check:
  94.  
  95. install:    all
  96.         -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
  97.         if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  98.         -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
  99.         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
  100.         $(RANLIB) $(libdir)/$(TARGETLIB).n
  101.         mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
  102.  
  103. $(TARGETLIB):    $(OFILES)
  104.         $(RM) -rf $@
  105.         $(AR) $(AR_FLAGS) $@ $(OFILES)
  106.         $(RANLIB) $@
  107.  
  108. $(OFILES) :    $(HFILES)
  109.  
  110. .always.:
  111. # Do nothing.
  112.  
  113. .PHONEY: all etags tags ls clean stage1 stage2 .always.
  114.  
  115. stage1:        force
  116.         -mkdir stage1
  117.         -mv -f $(STAGESTUFF) stage1
  118.  
  119. stage2:        force
  120.         -mkdir stage2
  121.         -mv -f $(STAGESTUFF) stage2
  122.  
  123. stage3:        force
  124.         -mkdir stage3
  125.         -mv -f $(STAGESTUFF) stage3
  126.  
  127. stage4:        force
  128.         -mkdir stage4
  129.         -mv -f $(STAGESTUFF) stage4
  130.  
  131. against=stage2
  132.  
  133. comparison:    force
  134.         for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  135.  
  136. de-stage1:    force
  137.         -(cd stage1 ; mv -f * ..)
  138.         -rmdir stage1
  139.  
  140. de-stage2:    force
  141.         -(cd stage2 ; mv -f * ..)
  142.         -rmdir stage2
  143.  
  144. de-stage3:    force
  145.         -(cd stage3 ; mv -f * ..)
  146.         -rmdir stage3
  147.  
  148. de-stage4:    force
  149.         -(cd stage4 ; mv -f * ..)
  150.         -rmdir stage4
  151.  
  152. etags tags:    TAGS
  153.  
  154. TAGS:        $(CFILES)
  155.         etags $(HFILES) $(CFILES)
  156.  
  157. ls:
  158.         @echo Makefile $(HFILES) $(CFILES)
  159.  
  160. # Need to deal with profiled libraries, too.
  161.  
  162. clean:
  163.         rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors 
  164.  
  165. distclean:    clean 
  166.         rm -f config.status
  167.         rm -f Makefile depend
  168.  
  169. force:
  170.  
  171. Makefile:    $(srcdir)/Makefile.in $(host_makefile_frag) \
  172.         $(target_makefile_frag)
  173.         $(SHELL) ./config.status
  174.