home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / gdb / testsuite / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-05-12  |  4.9 KB  |  200 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/dejagnu
  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. CFLAGS = -g
  33. CHILLFLAGS = $(CFLAGS)
  34. CHILL_LIB = -lchill
  35. CXXFLAGS = -g
  36.  
  37. LINK=        ln -s
  38. SUBDIRS=
  39. RUNTEST = runtest
  40. RUNTESTFLAGS = 
  41.  
  42. CC = ` \
  43.   if [ -f $${rootme}/../../gcc/Makefile ] ; then \
  44.     echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
  45.   else \
  46.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  47.       echo cc; \
  48.     else \
  49.       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  50.     fi; \
  51.   fi`
  52.  
  53. CHILL = ` \
  54.   if [ -f $${rootme}/../../gcc/Makefile ] ; then \
  55.     echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/ -L$${rootme}../../chillrt/; \
  56.   else \
  57.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  58.       echo gcc; \
  59.     else \
  60.       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  61.     fi; \
  62.   fi`
  63.  
  64. CXX = ` \
  65.   if [ -f $${rootme}/../../gcc/Makefile ] ; then \
  66.     echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
  67.   else \
  68.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  69.       echo gcc; \
  70.     else \
  71.       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  72.     fi; \
  73.   fi`
  74.  
  75. GDB = ` \
  76.   if [ -f $${rootme}/../gdb ] ; then \
  77.     echo $${rootme}/../gdb ; \
  78.   else echo gdb; \
  79.   fi`
  80.  
  81. GDBFLAGS = -nx
  82.  
  83. EXPECT = `if [ -f $${rootme}../../expect/expect ] ; \
  84.     then echo $${rootme}../../expect/expect ; \
  85.     else echo expect; fi`
  86.  
  87. #### host, target, and site specific Makefile frags come in here.
  88.  
  89. FLAGS_TO_PASS = \
  90.     "CXX=$(CXX)" \
  91.     "CXXFLAGS=$(CXXFLAGS)" \
  92.     "CC=$(CC)" \
  93.     "CFLAGS=$(CFLAGS)" \
  94.     "CHILLFLAGS=$(CHILLFLAGS)" \
  95.     "CHILL=$(CHILL)" \
  96.     "CHILL_LIB=$(CHILL_LIB)" \
  97.     "INSTALL=$(INSTALL)" \
  98.     "INSTALL_DATA=$(INSTALL_DATA)" \
  99.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  100.     "LDFLAGS=$(LDFLAGS)" \
  101.     "LINK=$(LINK)" \
  102.     "LOADLIBES=$(LOADLIBES)" \
  103.     "MAKEINFO=$(MAKEINFO)" \
  104.     "exec_prefix=$(exec_prefix)" \
  105.     "prefix=$(prefix)" 
  106.  
  107. all:        subdirs
  108.  
  109. .NOEXPORT:
  110. INFODIRS=doc
  111. info:
  112. install-info:
  113. dvi:
  114.  
  115. install:
  116.  
  117. uninstall: force
  118.  
  119. site.exp: ./config.status Makefile
  120.     @echo "Making a new config file..."
  121.     -@rm -f ./tmp?
  122.     @touch site.exp
  123.     -@mv site.exp site.bak
  124.     @echo "## these variables are automatically generated by make ##" > ./tmp0
  125.     @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
  126.     @echo "# add them to the last section" >> ./tmp0
  127.     @echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0
  128.     @echo "set host_os ${host_os}" >> ./tmp0
  129.     @echo "set host_alias ${host_alias}" >> ./tmp0
  130.     @echo "set host_cpu ${host_cpu}" >> ./tmp0
  131.     @echo "set host_vendor ${host_vendor}" >> ./tmp0
  132.     @echo "set target_os ${target_os}" >> ./tmp0
  133.     @echo "set target_alias ${target_alias}" >> ./tmp0
  134.     @echo "set target_cpu ${target_cpu}" >> ./tmp0
  135.     @echo "set target_vendor ${target_vendor}" >> ./tmp0
  136.     @echo "set host_triplet ${host_canonical}" >> ./tmp0
  137.     @echo "set target_triplet ${target_canonical}" >> ./tmp0
  138.     @echo "set srcdir ${srcdir}" >> ./tmp0
  139.         @echo "set objdir `pwd`" >> ./tmp0
  140.     @echo "set tool gdb" >> ./tmp0
  141.     @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
  142.         @cat ./tmp0 > site.exp
  143.     @cat site.bak | sed \
  144.             -e '1,/^## All variables above are.*##/ d' >> site.exp
  145.     -@rm -f ./tmp?
  146.  
  147. installcheck:
  148. check: site.exp all just-check
  149. just-check:
  150.     rootme=`pwd`; export rootme; \
  151.     $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB) --srcdir $(srcdir)
  152.  
  153. subdir_do: force
  154.     @for i in $(DODIRS); do \
  155.         if [ -d ./$$i ] ; then \
  156.             if (rootme=`pwd`/ ; export rootme ; \
  157.                 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  158.                 cd ./$$i; \
  159.                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
  160.             else exit 1 ; fi ; \
  161.         else true ; fi ; \
  162.     done
  163.  
  164. force:;
  165.  
  166.  
  167. subdirs:
  168.     for dir in ${SUBDIRS}; \
  169.     do \
  170.         echo "$$dir:"; \
  171.         if [ -d $$dir ]; then \
  172.             (rootme=`pwd`/ ; export rootme ; \
  173.              rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
  174.              cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
  175.         fi; \
  176.     done
  177.  
  178. clean mostlyclean:
  179.     -rm -f *~ core *.o a.out xgdb *.x
  180.     for dir in ${SUBDIRS}; \
  181.     do \
  182.         echo "$$dir:"; \
  183.         if [ -d $$dir ]; then \
  184.             (cd $$dir; $(MAKE) clean); \
  185.         fi; \
  186.     done
  187.  
  188. distclean realclean: clean
  189.     -rm -f *~ core
  190.     -rm -f Makefile config.status *-init.exp
  191.     -rm -fr *.log summary detail
  192.     for dir in ${SUBDIRS}; \
  193.     do \
  194.         echo "$$dir:"; \
  195.         (cd $$dir; $(MAKE) distclean); \
  196.     done
  197.  
  198. Makefile : $(srcdir)/Makefile.in $(srcdir)/configure.in $(host_makefile_frag) $(target_makefile_frag)
  199.     $(SHELL) ./config.status
  200.