home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / sim / z8k / Makefile.in < prev    next >
Makefile  |  1995-10-10  |  5KB  |  180 lines

  1. #    Makefile template for Configure for the z8k sim library.
  2. #    Copyright (C) 1993, 1995 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15.  
  16. VPATH = @srcdir@
  17. srcdir = @srcdir@
  18. srcroot = $(srcdir)/../..
  19.  
  20. prefix = @prefix@
  21. exec_prefix = @exec_prefix@
  22.  
  23. host_alias = @host_alias@
  24. target_alias = @target_alias@
  25. program_transform_name = @program_transform_name@
  26. bindir = $(exec_prefix)/bin
  27. libdir = $(exec_prefix)/lib
  28. tooldir = $(libdir)/$(target_alias)
  29.  
  30. datadir = $(prefix)/lib
  31. mandir = $(prefix)/man
  32. man1dir = $(mandir)/man1
  33. man2dir = $(mandir)/man2
  34. man3dir = $(mandir)/man3
  35. man4dir = $(mandir)/man4
  36. man5dir = $(mandir)/man5
  37. man6dir = $(mandir)/man6
  38. man7dir = $(mandir)/man7
  39. man8dir = $(mandir)/man8
  40. man9dir = $(mandir)/man9
  41. infodir = $(prefix)/info
  42. includedir = $(prefix)/include
  43. docdir = $(datadir)/doc
  44.  
  45. SHELL = /bin/sh
  46.  
  47. INSTALL = $(srcroot)/install.sh -c
  48. INSTALL_PROGRAM = $(INSTALL)
  49. INSTALL_DATA = $(INSTALL)
  50. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  51. INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
  52.  
  53. AR = @AR@
  54. AR_FLAGS = rc
  55. CC = @CC@
  56. CFLAGS = @CFLAGS@
  57. CC_FOR_BUILD = @CC_FOR_BUILD@
  58. MAKEINFO = makeinfo
  59. RANLIB = @RANLIB@
  60.  
  61. HDEFINES = @HDEFINES@
  62. TDEFINES =
  63.  
  64. .NOEXPORT:
  65. MAKEOVERRIDES=
  66.  
  67. INCDIR = $(srcdir)/../../include
  68. CSEARCH = -I. -I$(srcdir)  -I../../include  \
  69.   -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/z8k
  70. DEP = mkdep
  71.  
  72. TARGETLIB = libsim.a
  73.  
  74. all:    run libsim.a
  75.  
  76. CFILES = z8k-dis.c
  77. OFILES = iface.o mem.o comped1.o comped3.o comped2.o support.o  quick.o compedb3.o
  78.  
  79. run:$(OFILES) run.o
  80.     $(CC) $(CFLAGS) -o run run.o $(OFILES) ../../bfd/libbfd.a ../../libiberty/libiberty.a  ../../opcodes/libopcodes.a
  81.  
  82. support.o:support.c inlines.h config.h
  83. mem.o: mem.c config.h tm.h mem.h sim.h
  84.  
  85. comped1.o:comped1.c tc-gen1.h config.h
  86.     $(CC) -c -g -o comped1.o $(CSEARCH) $(srcdir)/comped1.c    
  87.  
  88. comped3.o:comped3.c tc-gen3.h config.h
  89.     $(CC) -c -g -o comped3.o $(CSEARCH) $(srcdir)/comped3.c    
  90.  
  91. compedb3.o:compedb3.c tc-genb3.h config.h
  92.     $(CC) -c -g -o compedb3.o $(CSEARCH) $(srcdir)/compedb3.c    
  93.  
  94. comped2.o:comped2.c tc-gen2.h config.h
  95.     $(CC) -c -g -o comped2.o $(CSEARCH) $(srcdir)/comped2.c    
  96.  
  97. tc-gen1.h:writecode
  98.     ./writecode  -1 >tc-gen1.h
  99.  
  100. tc-gen2.h:writecode
  101.     ./writecode  -2 >tc-gen2.h
  102.  
  103. tc-gen3.h:writecode
  104.     ./writecode  -3 >tc-gen3.h
  105.  
  106. tc-genb3.h:writecode
  107.     ./writecode  -b3 >tc-genb3.h
  108.  
  109. writecode:writecode.o list.o quick.o
  110.     $(CC_FOR_BUILD) -o writecode writecode.o list.o quick.o
  111.  
  112. writecode.o: writecode.c config.h
  113.     $(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/writecode.c
  114.  
  115. list.o: list.c
  116.     $(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/list.c
  117.  
  118. quick.o: quick.c
  119.     $(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/quick.c
  120.  
  121. $(TARGETLIB): $(OFILES)
  122.      rm -f $(TARGETLIB)
  123.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  124.      $(RANLIB) $(TARGETLIB)
  125.  
  126. .c.o:
  127.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  128.  
  129. check:
  130.  
  131. info:
  132. clean-info:
  133. install-info:
  134.  
  135. tags etags: TAGS
  136.  
  137. TAGS: force
  138.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  139.  
  140. mostlyclean clean:
  141.     rm -f *.[oa] *~ core tc-gen1.h tc-gen2.h tc-gen3.h tc-genb3.h writecode 
  142.     rm -f run libsim.a config.log
  143.  
  144. distclean maintainer-clean realclean: clean
  145.     rm -f TAGS
  146.     rm -f Makefile config.cache config.log config.status config.h stamp-h
  147.  
  148. # Dummy target to force execution of dependent targets.
  149. #
  150. force:
  151.  
  152. # Copy the files into directories where they will be run.
  153. install:
  154.     $(INSTALL_XFORM) run $(bindir)/run
  155.  
  156. Makefile: Makefile.in config.status
  157.     CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
  158.  
  159. config.h: stamp-h ; @true
  160. stamp-h: config.in config.status
  161.     CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
  162.  
  163. config.status: configure
  164.     $(SHELL) ./config.status --recheck
  165.  
  166. dep: $(CFILES)
  167.     mkdep $(CFLAGS) $?
  168.  
  169.  
  170. # What appears below is generated by a hacked mkdep using gcc -MM.
  171.  
  172. # DO NOT DELETE THIS LINE -- mkdep uses it.
  173. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  174.  
  175.  
  176. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  177.