home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / sim / sh / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-05-12  |  4.2 KB  |  179 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.  
  18. prefix = /usr/local
  19. program_transform_name =
  20. exec_prefix = $(prefix)
  21. bindir = $(exec_prefix)/bin
  22. libdir = $(exec_prefix)/lib
  23.  
  24. datadir = $(prefix)/lib
  25. mandir = $(prefix)/man
  26. man1dir = $(mandir)/man1
  27. man2dir = $(mandir)/man2
  28. man3dir = $(mandir)/man3
  29. man4dir = $(mandir)/man4
  30. man5dir = $(mandir)/man5
  31. man6dir = $(mandir)/man6
  32. man7dir = $(mandir)/man7
  33. man8dir = $(mandir)/man8
  34. man9dir = $(mandir)/man9
  35. infodir = $(prefix)/info
  36. includedir = $(prefix)/include
  37. oldincludedir =
  38. docdir = $(srcdir)/doc
  39.  
  40. SHELL = /bin/sh
  41.  
  42. INSTALL = install -c
  43. INSTALL_PROGRAM = $(INSTALL)
  44. INSTALL_DATA = $(INSTALL)
  45.  
  46. AR = ar
  47. AR_FLAGS = qc
  48. CFLAGS = -g
  49. BISON = bison
  50. MAKEINFO = makeinfo
  51. RANLIB = ranlib
  52.  
  53. INCDIR = $(srcdir)/../../include 
  54. CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I$(srcdir)/../../bfd  
  55. DEP = mkdep
  56.  
  57. #### host, target, and site specific Makefile frags come in here.
  58.  
  59. all:    run
  60.  
  61.  
  62. run:    interp.o run.o table.o
  63.     $(CC) -o run interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
  64.  
  65. interp.o:interp.c code.c table.c
  66. run.o:run.c 
  67.  
  68. code.c:gencode
  69.     ./gencode -x >code.c
  70.     indent code.c
  71.  
  72. table.c:gencode
  73.     ./gencode -s >table.c
  74.     indent table.c
  75.  
  76. gencode.o:gencode.c
  77.  
  78. gencode:gencode.o
  79.  
  80.  
  81. #### host and target dependent Makefile fragments come in here.
  82. ###
  83.  
  84. FLAGS_TO_PASS = \
  85.     "against=$(against)" \
  86.     "AR=$(AR)" \
  87.     "AR_FLAGS=$(AR_FLAGS)" \
  88.     "CC=$(CC)" \
  89.     "CFLAGS=$(CFLAGS)" \
  90.     "RANLIB=$(RANLIB)" \
  91.     "MAKEINFO=$(MAKEINFO)" \
  92.     "INSTALL=$(INSTALL)" \
  93.     "INSTALL_DATA=$(INSTALL_DATA)" \
  94.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  95.     "BISON=$(BISON)"
  96.  
  97. .c.o:
  98.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  99.  
  100.  
  101.  
  102. .NOEXPORT:
  103.  
  104. check:
  105.  
  106. info:
  107. clean-info:
  108. install-info:
  109.  
  110. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  111.  
  112.  
  113.  
  114. tags etags: TAGS
  115.  
  116. TAGS: force
  117.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  118.  
  119. clean:
  120.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  121.  
  122. clobber realclean: clean
  123.     rm -f libbfd.a TAGS
  124.  
  125. # Mark everything as depending on config.status, since the timestamp on
  126. # sysdep.h might actually move backwards if we reconfig and relink it
  127. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  128. RECONFIG = config.status
  129.  
  130.  
  131.  
  132. # This target should be invoked before building a new release.
  133. # 'VERSION' file must be present and contain a string of the form "x.y"
  134. #
  135. roll:
  136.     @V=`cat VERSION`        ; \
  137.     MAJ=`sed 's/\..*//' VERSION`    ; \
  138.     MIN=`sed 's/.*\.//' VERSION`    ; \
  139.     V=$$MAJ.`expr $$MIN + 1`    ; \
  140.     rm -f VERSION            ; \
  141.     echo $$V >VERSION        ; \
  142.     echo Version $$V
  143.  
  144. # Dummy target to force execution of dependent targets.
  145. #
  146. force:
  147.  
  148. install:
  149.     -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
  150.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  151.     -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
  152.     -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
  153.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  154.     -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
  155.     -n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
  156.     $(INSTALL_PROGRAM) run $(bindir)/$$n; \
  157.     $(M_INSTALL)
  158.  
  159.  
  160.  
  161. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  162.     $(SHELL) ./config.status
  163.  
  164. dep: $(CFILES)
  165.     mkdep $(CFLAGS) $?
  166.  
  167.  
  168. # What appears below is generated by a hacked mkdep using gcc -MM.
  169.  
  170. # DO NOT DELETE THIS LINE -- mkdep uses it.
  171. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  172.  
  173.  
  174. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  175.  
  176.