home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / opcodes / makefile.in < prev    next >
Encoding:
Makefile  |  1993-05-30  |  4.7 KB  |  190 lines

  1. #    Makefile template for Configure for the opcodes 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.  
  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. BFDDIR = $(srcdir)/../bfd
  55. CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I$(BFDDIR)
  56. DEP = mkdep
  57.  
  58.  
  59. TARGETLIB = libopcodes.a
  60.  
  61. # To circumvent a Sun make VPATH bug, each file listed here
  62. # should also have a foo.o: foo.c line further along in this file.
  63. DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o dis-buf.o \
  64.     sparc-dis.o a29k-dis.o i960-dis.o alpha-dis.o sh-dis.o hppa-dis.o
  65.  
  66. OFILES = $(DIS_LIBS) sparc-opc.o m68881-ext.o
  67. #### host and target dependent Makefile fragments come in here.
  68. ###
  69.  
  70. FLAGS_TO_PASS = \
  71.     "against=$(against)" \
  72.     "AR=$(AR)" \
  73.     "AR_FLAGS=$(AR_FLAGS)" \
  74.     "CC=$(CC)" \
  75.     "CFLAGS=$(CFLAGS)" \
  76.     "RANLIB=$(RANLIB)" \
  77.     "MAKEINFO=$(MAKEINFO)" \
  78.     "INSTALL=$(INSTALL)" \
  79.     "INSTALL_DATA=$(INSTALL_DATA)" \
  80.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  81.     "BISON=$(BISON)"
  82.  
  83. .c.o:
  84.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  85.  
  86.  
  87. # C source files that correspond to .o's.
  88. CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
  89.  
  90. STAGESTUFF = $(TARGETLIB) $(OFILES)
  91.  
  92. all: $(TARGETLIB) 
  93.  
  94.  
  95. .NOEXPORT:
  96.  
  97. installcheck check:
  98.  
  99. info:
  100. clean-info:
  101. install-info:
  102. dvi:
  103.  
  104. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  105.  
  106.  
  107. $(TARGETLIB): $(OFILES)
  108.      rm -f $(TARGETLIB)
  109.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  110.      $(RANLIB) $(TARGETLIB)
  111.  
  112. # Circumvent Sun Make bug with VPATH.
  113. a29k-dis.o: a29k-dis.c
  114. dis-buf.o: dis-buf.c
  115. h8500-dis.o: h8500-dis.c
  116. i386-dis.o: i386-dis.c
  117. i960-dis.o: i960-dis.c
  118. m68881-ext.o: m68881-ext.c
  119. m68k-dis.o: m68k-dis.c
  120. mips-dis.o: mips-dis.c
  121. sparc-dis.o: sparc-dis.c
  122. sparc-opc.o: sparc-opc.c
  123. z8k-dis.o: z8k-dis.c
  124. sh-dis.o: sh-dis.c
  125. alpha-dis.o: alpha-dis.c
  126. hppa-dis.o: hppa-dis.c $(srcdir)/../include/opcode/hppa.h
  127.  
  128. tags etags: TAGS
  129.  
  130. TAGS: force
  131.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  132.  
  133. MOSTLYCLEAN = *.o core *.E *.p *.ip
  134. mostyclean:
  135.     rm -rf $(MOSTLYCLEAN)
  136. clean:
  137.     rm -f *.a $(MOSTLYCLEAN)
  138. distclean: clean
  139.     rm -rf Makefile config.status sysdep.h TAGS
  140. clobber realclean: distclean
  141.  
  142. # Mark everything as depending on config.status, since the timestamp on
  143. # sysdep.h might actually move backwards if we reconfig and relink it
  144. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  145. RECONFIG = config.status
  146.  
  147.  
  148.  
  149. # This target should be invoked before building a new release.
  150. # 'VERSION' file must be present and contain a string of the form "x.y"
  151. #
  152. roll:
  153.     @V=`cat VERSION`        ; \
  154.     MAJ=`sed 's/\..*//' VERSION`    ; \
  155.     MIN=`sed 's/.*\.//' VERSION`    ; \
  156.     V=$$MAJ.`expr $$MIN + 1`    ; \
  157.     rm -f VERSION            ; \
  158.     echo $$V >VERSION        ; \
  159.     echo Version $$V
  160.  
  161. # Dummy target to force execution of dependent targets.
  162. #
  163. force:
  164.  
  165. install:
  166.     -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
  167.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  168.     -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
  169.     $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
  170.     $(RANLIB) $(libdir)/libopcodes.a
  171.  
  172. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  173.     $(SHELL) ./config.status
  174.  
  175. dep: $(CFILES)
  176.     mkdep $(CFLAGS) $?
  177.  
  178.  
  179. # What appears below is generated by a hacked mkdep using gcc -MM.
  180.  
  181. # DO NOT DELETE THIS LINE -- mkdep uses it.
  182. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  183.  
  184.  
  185. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  186.  
  187.