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 / z8k / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-05-07  |  4.8 KB  |  202 lines

  1. #    Makefile template for Configure for the z8ksim library.
  2. #    Copyright (C) 1993 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. prefix = /usr/local
  20.  
  21. program_transform_name =
  22. exec_prefix = $(prefix)
  23. bindir = $(exec_prefix)/bin
  24. libdir = $(exec_prefix)/lib
  25. tooldir = $(libdir)/$(target_alias)
  26.  
  27. datadir = $(prefix)/lib
  28. mandir = $(prefix)/man
  29. man1dir = $(mandir)/man1
  30. man2dir = $(mandir)/man2
  31. man3dir = $(mandir)/man3
  32. man4dir = $(mandir)/man4
  33. man5dir = $(mandir)/man5
  34. man6dir = $(mandir)/man6
  35. man7dir = $(mandir)/man7
  36. man8dir = $(mandir)/man8
  37. man9dir = $(mandir)/man9
  38. infodir = $(prefix)/info
  39. includedir = $(prefix)/include
  40. oldincludedir =
  41. docdir = $(srcdir)/doc
  42.  
  43. SHELL = /bin/sh
  44.  
  45. INSTALL = $${srcroot}/install.sh -c
  46. INSTALL_PROGRAM = $(INSTALL)
  47. INSTALL_DATA = $(INSTALL)
  48. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  49. INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
  50.  
  51. AR = ar
  52. AR_FLAGS = rc
  53. CFLAGS = -g
  54. BISON = bison
  55. MAKEINFO = makeinfo
  56. RANLIB = ranlib
  57.  
  58. INCDIR = $(srcdir)/../../include
  59. CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
  60. DEP = mkdep
  61.  
  62.  
  63. TARGETLIB = libsim.a
  64.  
  65.  
  66. all:run libsim.a
  67.  
  68. OFILES = iface.o mem.o comped1.o comped3.o comped2.o support.o  quick.o compedb3.o
  69.  
  70. support.o:support.c inlines.h
  71.  
  72. run:$(OFILES) run.o
  73.     $(CC) $(CFLAGS) -o run run.o $(OFILES) ../../bfd/libbfd.a ../../libiberty/libiberty.a  ../../opcodes/libopcodes.a
  74.  
  75. comped1.o:comped1.c tc-gen1.h 
  76.     $(CC) -c -g -o comped1.o $(CSEARCH) $(srcdir)/comped1.c    
  77.  
  78. comped3.o:comped3.c tc-gen3.h 
  79.     $(CC) -c -g -o comped3.o $(CSEARCH) $(srcdir)/comped3.c    
  80.  
  81. compedb3.o:compedb3.c tc-genb3.h 
  82.     $(CC) -c -g -o compedb3.o $(CSEARCH) $(srcdir)/compedb3.c    
  83.  
  84. comped2.o:comped2.c tc-gen2.h
  85.     $(CC) -c -g -o comped2.o $(CSEARCH) $(srcdir)/comped2.c    
  86.  
  87. tc-gen1.h:writecode
  88.     ./writecode  -1 >tc-gen1.h
  89.  
  90. tc-gen2.h:quick.c
  91.     ./writecode  -2 >tc-gen2.h
  92.  
  93. tc-gen3.h:writecode
  94.     ./writecode  -3 >tc-gen3.h
  95.  
  96. tc-genb3.h:writecode
  97.     ./writecode  -b3 >tc-genb3.h
  98.  
  99. writecode:writecode.o list.o quick.o
  100.     $(CC) -o writecode writecode.o list.o quick.o
  101.  
  102.  
  103. clean:
  104.     rm -f *.o tc-gen1.h tc-gen2.h tc-gen3.h tc-genb3.h run writecode libsim.a 
  105.  
  106.  
  107. #### host and target dependent Makefile fragments come in here.
  108. ###
  109.  
  110. FLAGS_TO_PASS = \
  111.     "against=$(against)" \
  112.     "AR=$(AR)" \
  113.     "AR_FLAGS=$(AR_FLAGS)" \
  114.     "CC=$(CC)" \
  115.     "CFLAGS=$(CFLAGS)" \
  116.     "RANLIB=$(RANLIB)" \
  117.     "MAKEINFO=$(MAKEINFO)" \
  118.     "INSTALL=$(INSTALL)" \
  119.     "INSTALL_DATA=$(INSTALL_DATA)" \
  120.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  121.     "BISON=$(BISON)"
  122.  
  123. .c.o:
  124.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  125.  
  126.  
  127. # C source files that correspond to .o's.
  128. CFILES = z8k-dis.c
  129.  
  130. STAGESTUFF = $(TARGETLIB) $(OFILES)
  131.  
  132. all: $(TARGETLIB) 
  133.  
  134.  
  135. .NOEXPORT:
  136.  
  137. check:
  138.  
  139. info:
  140. clean-info:
  141. install-info:
  142.  
  143. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  144.  
  145.  
  146. $(TARGETLIB): $(OFILES)
  147.      rm -f $(TARGETLIB)
  148.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  149.      $(RANLIB) $(TARGETLIB)
  150.  
  151. # Circumvent Sun Make bug with VPATH.
  152. sparc-opc.o: sparc-opc.c
  153.  
  154. tags etags: TAGS
  155.  
  156. TAGS: force
  157.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  158.  
  159.  
  160. # Mark everything as depending on config.status, since the timestamp on
  161. # sysdep.h might actually move backwards if we reconfig and relink it
  162. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  163. RECONFIG = config.status
  164.  
  165.  
  166. # Dummy target to force execution of dependent targets.
  167. #
  168. force:
  169.  
  170. # Copy the files into directories where they will be run.
  171. install:
  172.     srcroot=`cd $(srcroot); pwd`; export srcroot; \
  173.     $(INSTALL_XFORM) run $(bindir)/run ;  \
  174.     n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
  175.     if [ -d $(tooldir) ] ; then \
  176.       if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  177.       rm -f $(tooldir)/bin/run;  \
  178.       ln $(bindir)/$$n $(tooldir)/bin/run \
  179.        || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
  180.     else true; fi
  181.  
  182.  
  183.  
  184. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  185.     $(SHELL) ./config.status
  186.  
  187. dep: $(CFILES)
  188.     mkdep $(CFLAGS) $?
  189.  
  190.  
  191. # What appears below is generated by a hacked mkdep using gcc -MM.
  192.  
  193. # DO NOT DELETE THIS LINE -- mkdep uses it.
  194. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  195.  
  196.  
  197. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  198.  
  199.