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

  1. srcdir = .
  2. prefix = /usr/local
  3.  
  4. exec_prefix = $(prefix)
  5. bindir = $(exec_prefix)/bin
  6. libdir = $(exec_prefix)/lib
  7. tooldir = $(libdir)/$(target_alias)
  8.  
  9. datadir = $(exec_prefix)/lib/deja-gnu
  10. mandir = $(prefix)/man
  11. man1dir = $(mandir)/man1
  12. man2dir = $(mandir)/man2
  13. man3dir = $(mandir)/man3
  14. man4dir = $(mandir)/man4
  15. man5dir = $(mandir)/man5
  16. man6dir = $(mandir)/man6
  17. man7dir = $(mandir)/man7
  18. man8dir = $(mandir)/man8
  19. man9dir = $(mandir)/man9
  20. infodir = $(prefix)/info
  21. includedir = $(prefix)/include
  22. gxx_includedir = $(tooldir)/g++-include
  23. docdir = $(datadir)/doc
  24. targetdir = $(datadir)/$(target_alias)
  25.  
  26. SHELL = /bin/sh
  27.  
  28. INSTALL = install -c
  29. INSTALL_PROGRAM = $(INSTALL)
  30. INSTALL_DATA = $(INSTALL)
  31.  
  32. $(start-sanitize-chill)
  33. CFLAGS = -g
  34. CHILLFLAGS = $(CFLAGS)
  35. CHILL_LIB = -lchill
  36. $(end-sanitize-chill)
  37. CXX = gcc
  38. CXXFLAGS = -g -O
  39.  
  40. LINK=        ln -s
  41. SUBDIRS=
  42.  
  43. RUNTEST = runtest
  44. RUNTESTFLAGS = 
  45. FLAGS_TO_PASS =
  46.  
  47. #### host, target, and site specific Makefile frags come in here.
  48.  
  49. all:        subdirs
  50.  
  51. .NOEXPORT:
  52. INFODIRS=doc
  53. info:
  54.     @rootme=`pwd`/ ; export rootme ; \
  55.     rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  56.     $(MAKE) subdir_do DO=info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
  57.  
  58. install-info:
  59.     @rootme=`pwd`/ ; export rootme ; \
  60.     $(MAKE) subdir_do DO=install-info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
  61.  
  62. check: site.exp all
  63.     $(RUNTEST) $(RUNTESTFLAGS) $(FLAGS_TO_PASS) --tool binutils --srcdir $(srcdir) --target $(target_canonical)
  64.  
  65. site.exp: ./config.status Makefile
  66.     @echo "Making a new config file..."
  67.     -@rm -f ./tmp?
  68.     @touch site.exp
  69.  
  70.     -@mv site.exp site.bak
  71.     @echo "## these variables are automatically generated by make ##" > ./tmp0
  72.     @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
  73.     @echo "# add them to the last section" >> ./tmp0
  74.     @echo "set host_os ${host_os}" >> ./tmp0
  75.     @echo "set host_alias ${host_alias}" >> ./tmp0
  76.     @echo "set host_cpu ${host_cpu}" >> ./tmp0
  77.     @echo "set host_vendor ${host_vendor}" >> ./tmp0
  78.     @echo "set target_os ${target_os}" >> ./tmp0
  79.     @echo "set target_alias ${target_alias}" >> ./tmp0
  80.     @echo "set target_cpu ${target_cpu}" >> ./tmp0
  81.     @echo "set target_vendor ${target_vendor}" >> ./tmp0
  82.     @echo "set host_triplet ${host_canonical}" >> ./tmp0
  83.     @echo "set target_triplet ${target_canonical}" >> ./tmp0
  84.     @echo "set tool binutils" >> ./tmp0
  85.     @echo "set srcdir ${srcdir}" >> ./tmp0
  86.     @echo "set objdir `pwd`" >> ./tmp0
  87.     @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
  88.         @cat ./tmp0 > site.exp
  89.     @cat site.bak | sed \
  90.             -e '1,/^## All variables above are.*##/ d' >> site.exp
  91.     -@rm -f ./tmp?
  92.  
  93. install:
  94. uninstall: force
  95.  
  96. subdir_do: force
  97.     @for i in $(DODIRS); do \
  98.         if [ -d ./$$i ] ; then \
  99.             if (rootme=`pwd`/ ; export rootme ; \
  100.                 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  101.                 cd ./$$i; \
  102.                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
  103.             else exit 1 ; fi ; \
  104.         else true ; fi ; \
  105.     done
  106. force:
  107.  
  108.  
  109. subdirs:
  110.     for dir in ${SUBDIRS}; \
  111.     do \
  112.         echo "$$dir:"; \
  113.         if [ -d $$dir ]; then \
  114.             (rootme=`pwd`/ ; export rootme ; \
  115.              rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  116.              cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
  117.         fi; \
  118.     done
  119.  
  120. clean:
  121.     -rm -f *~ core *.o a.out xgdb *.x
  122.         for dir in ${SUBDIRS}; \
  123.         do \
  124.             echo "$$dir:"; \
  125.             if [ -d $$dir ]; then \
  126.                 (cd $$dir; $(MAKE) clean); \
  127.             fi; \
  128.         done
  129.  
  130. distclean: clean
  131.     -rm -f *~ core
  132.     -rm -f Makefile config.status *-init.exp
  133.     -rm -fr *.log summary detail
  134.         for dir in ${SUBDIRS}; \
  135.         do \
  136.             echo "$$dir:"; \
  137.             (cd $$dir; $(MAKE) distclean); \
  138.         done
  139.  
  140. Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  141.     $(SHELL) ./config.status
  142.  
  143.