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 / sh / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-10-26  |  4.5 KB  |  192 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.  
  55.  
  56. CC_FOR_BUILD = cc
  57. AR = ar
  58. AR_FLAGS = qc
  59. CFLAGS = -g
  60. BISON = bison
  61. MAKEINFO = makeinfo
  62. RANLIB = ranlib
  63.  
  64. INCDIR = $(srcdir)/../../include 
  65. CSEARCH = -I. -I$(srcdir)  -I../../include  -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
  66. DEP = mkdep
  67.  
  68. #### host, target, and site specific Makefile frags come in here.
  69.  
  70. all:    run
  71.  
  72.  
  73. run:    interp.o run.o table.o
  74.     $(CC) $(CFLAGS) -o run interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
  75.  
  76. interp.o:interp.c code.c table.c
  77. run.o:run.c 
  78.  
  79. code.c:gencode
  80.     ./gencode -x >code.c
  81. #    indent code.c
  82.  
  83. table.c:gencode
  84.     ./gencode -s >table.c
  85. #    indent table.c
  86.  
  87. gencode:gencode.c
  88.     $(CC_FOR_BUILD) -o gencode $<
  89.  
  90.  
  91. #### host and target dependent Makefile fragments come in here.
  92. ###
  93.  
  94. FLAGS_TO_PASS = \
  95.     "against=$(against)" \
  96.     "AR=$(AR)" \
  97.     "AR_FLAGS=$(AR_FLAGS)" \
  98.     "CC=$(CC)" \
  99.     "CFLAGS=$(CFLAGS)" \
  100.     "RANLIB=$(RANLIB)" \
  101.     "MAKEINFO=$(MAKEINFO)" \
  102.     "INSTALL=$(INSTALL)" \
  103.     "INSTALL_DATA=$(INSTALL_DATA)" \
  104.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  105.     "BISON=$(BISON)"
  106.  
  107. .c.o:
  108.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  109.  
  110.  
  111.  
  112. .NOEXPORT:
  113.  
  114. check:
  115.  
  116. info:
  117. clean-info:
  118. install-info:
  119.  
  120. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  121.  
  122.  
  123.  
  124. tags etags: TAGS
  125.  
  126. TAGS: force
  127.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  128.  
  129. clean:
  130.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  131.  
  132. clobber realclean: clean
  133.     rm -f libbfd.a TAGS
  134.  
  135. # Mark everything as depending on config.status, since the timestamp on
  136. # sysdep.h might actually move backwards if we reconfig and relink it
  137. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  138. RECONFIG = config.status
  139.  
  140.  
  141.  
  142. # This target should be invoked before building a new release.
  143. # 'VERSION' file must be present and contain a string of the form "x.y"
  144. #
  145. roll:
  146.     @V=`cat VERSION`        ; \
  147.     MAJ=`sed 's/\..*//' VERSION`    ; \
  148.     MIN=`sed 's/.*\.//' VERSION`    ; \
  149.     V=$$MAJ.`expr $$MIN + 1`    ; \
  150.     rm -f VERSION            ; \
  151.     echo $$V >VERSION        ; \
  152.     echo Version $$V
  153.  
  154. # Dummy target to force execution of dependent targets.
  155. #
  156. force:
  157.  
  158. # Copy the files into directories where they will be run.
  159. install:
  160.     srcroot=`cd $(srcroot); pwd`; export srcroot; \
  161.     $(INSTALL_XFORM) run $(bindir)/run ;  \
  162.     n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
  163.     if [ -d $(tooldir) ] ; then \
  164.       if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  165.       rm -f $(tooldir)/bin/run;  \
  166.       ln $(bindir)/$$n $(tooldir)/bin/run \
  167.        || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
  168.     else true; fi
  169.  
  170. install-man: run.1
  171.     $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
  172.  
  173.  
  174. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  175.     $(SHELL) ./config.status
  176.  
  177. dep: $(CFILES)
  178.     mkdep $(CFLAGS) $?
  179.  
  180.  
  181. # What appears below is generated by a hacked mkdep using gcc -MM.
  182.  
  183. # DO NOT DELETE THIS LINE -- mkdep uses it.
  184. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  185.  
  186.  
  187. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  188.  
  189.