home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / GDB / GDB-4.13 / GDB-4 / gdb-4.13 / sim / h8300 / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-10-26  |  4.2 KB  |  174 lines

  1. #    Makefile template for Configure for the h8300sim library.
  2. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  3. #    Written by Cygnus Support.
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. srcdir = .
  17. srcroot = $(srcdir)/../../
  18.  
  19.  
  20. prefix = /usr/local
  21.  
  22. program_transform_name =
  23. exec_prefix = $(prefix)
  24. bindir = $(exec_prefix)/bin
  25. libdir = $(exec_prefix)/lib
  26. tooldir = $(libdir)/$(target_alias)
  27.  
  28. datadir = $(prefix)/lib
  29. mandir = $(prefix)/man
  30. man1dir = $(mandir)/man1
  31. man2dir = $(mandir)/man2
  32. man3dir = $(mandir)/man3
  33. man4dir = $(mandir)/man4
  34. man5dir = $(mandir)/man5
  35. man6dir = $(mandir)/man6
  36. man7dir = $(mandir)/man7
  37. man8dir = $(mandir)/man8
  38. man9dir = $(mandir)/man9
  39. infodir = $(prefix)/info
  40. includedir = $(prefix)/include
  41. oldincludedir =
  42. docdir = $(srcdir)/doc
  43.  
  44. SHELL = /bin/sh
  45.  
  46.  
  47.  
  48. INSTALL = $${srcroot}/install.sh -c
  49. INSTALL_PROGRAM = $(INSTALL)
  50. INSTALL_DATA = $(INSTALL)
  51. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  52. INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
  53.  
  54. AR = ar
  55. AR_FLAGS = qc
  56. CFLAGS = -g
  57. BISON = bison
  58. MAKEINFO = makeinfo
  59. RANLIB = ranlib
  60.  
  61. INCDIR = $(srcdir)/../../include 
  62. CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
  63. DEP = mkdep
  64.  
  65. #### host, target, and site specific Makefile frags come in here.
  66.  
  67. all:    run
  68.  
  69.  
  70. run:    compile.o run.o
  71.     $(CC) -o run compile.o  run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
  72.  
  73. compile.o:compile.c
  74. run.o:run.c 
  75.  
  76. #### host and target dependent Makefile fragments come in here.
  77. ###
  78.  
  79. FLAGS_TO_PASS = \
  80.     "against=$(against)" \
  81.     "AR=$(AR)" \
  82.     "AR_FLAGS=$(AR_FLAGS)" \
  83.     "CC=$(CC)" \
  84.     "CFLAGS=$(CFLAGS)" \
  85.     "RANLIB=$(RANLIB)" \
  86.     "MAKEINFO=$(MAKEINFO)" \
  87.     "INSTALL=$(INSTALL)" \
  88.     "INSTALL_DATA=$(INSTALL_DATA)" \
  89.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  90.     "BISON=$(BISON)"
  91.  
  92. .c.o:
  93.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  94.  
  95.  
  96.  
  97. .NOEXPORT:
  98.  
  99. check:
  100.  
  101. info:
  102. clean-info:
  103. install-info:
  104.  
  105. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  106.  
  107.  
  108.  
  109. tags etags: TAGS
  110.  
  111. TAGS: force
  112.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  113.  
  114. clean:
  115.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  116.  
  117. clobber realclean: clean
  118.     rm -f libbfd.a TAGS
  119.  
  120. # Mark everything as depending on config.status, since the timestamp on
  121. # sysdep.h might actually move backwards if we reconfig and relink it
  122. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  123. RECONFIG = config.status
  124.  
  125.  
  126.  
  127. # This target should be invoked before building a new release.
  128. # 'VERSION' file must be present and contain a string of the form "x.y"
  129. #
  130. roll:
  131.     @V=`cat VERSION`        ; \
  132.     MAJ=`sed 's/\..*//' VERSION`    ; \
  133.     MIN=`sed 's/.*\.//' VERSION`    ; \
  134.     V=$$MAJ.`expr $$MIN + 1`    ; \
  135.     rm -f VERSION            ; \
  136.     echo $$V >VERSION        ; \
  137.     echo Version $$V
  138.  
  139. # Dummy target to force execution of dependent targets.
  140. #
  141. force:
  142.  
  143. # Copy the files into directories where they will be run.
  144. install:
  145.     srcroot=`cd $(srcroot); pwd`; export srcroot; \
  146.     $(INSTALL_XFORM) run $(bindir)/run ;  \
  147.     n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
  148.     if [ -d $(tooldir) ] ; then \
  149.       if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  150.       rm -f $(tooldir)/bin/run;  \
  151.       ln $(bindir)/$$n $(tooldir)/bin/run \
  152.        || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
  153.     else true; fi
  154.  
  155.  
  156. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  157.     $(SHELL) ./config.status
  158.  
  159. dep: $(CFILES)
  160.     mkdep $(CFLAGS) $?
  161.  
  162.  
  163. # What appears below is generated by a hacked mkdep using gcc -MM.
  164.  
  165. # DO NOT DELETE THIS LINE -- mkdep uses it.
  166. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  167.  
  168.  
  169. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  170.  
  171.