home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / g77-0.5.15-src.tgz / tar.out / fsf / g77 / f / runtime / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  114 lines

  1. # Makefile for GNU F77 compiler runtime.
  2. #   Copyright (C) 1995 Free Software Foundation, Inc.
  3. #   Contributed by Dave Love (d.love@dl.ac.uk).
  4. #
  5. #This file is part of GNU Fortran.
  6. #
  7. #GNU Fortran is free software; you can redistribute it and/or modify
  8. #it under the terms of the GNU General Public License as published by
  9. #the Free Software Foundation; either version 2, or (at your option)
  10. #any later version.
  11. #
  12. #GNU Fortran is distributed in the hope that it will be useful,
  13. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #GNU General Public License for more details.
  16. #
  17. #You should have received a copy of the GNU General Public License
  18. #along with GNU Fortran; see the file COPYING.  If not, write to
  19. #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = @srcdir@
  24. VPATH = @srcdir@
  25.  
  26. top_srcdir = @top_srcdir@
  27.  
  28. INSTALL = @INSTALL@        # installs aren't actually done from here
  29. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  30. INSTALL_DATA = @INSTALL_DATA@
  31. RANLIB = @RANLIB@
  32. RANLIB_TEST_FOR_TARGET = @RANLIB_TEST_FOR_TARGET@
  33. RANLIB_FOR_TARGET = @RANLIB_FOR_TARGET@
  34.  
  35. CFLAGS = @CFLAGS@
  36. CPPFLAGS = @CPPFLAGS@ @DEFS@
  37. LDFLAGS = @LDFLAGS@
  38. LIBS = @LIBS@
  39.  
  40. GCC_FOR_TARGET = @CC@
  41. CC = $(GCC_FOR_TARGET)
  42.  
  43. CROSS = @CROSS@
  44.  
  45. transform=@program_transform_name@
  46.  
  47. prefix = @prefix@
  48. exec_prefix = @exec_prefix@
  49.  
  50. AR_FLAGS = rc
  51.  
  52. # Directory in which to install scripts.
  53. bindir = $(exec_prefix)/bin
  54.  
  55. # Directory in which to install library files.
  56. libdir = $(prefix)/lib
  57.  
  58. # Directory in which to install documentation info files.
  59. infodir = $(prefix)/info
  60.  
  61. #### End of system configuration section. ####
  62.  
  63. SHELL = /bin/sh
  64.  
  65. SUBDIRS = libI77 libF77
  66.  
  67. # flags_to_pass to recursive makes & configure (hence the quoting style)
  68. FLAGS_TO_PASS = \
  69.     CROSS="$(CROSS)" \
  70.     AR_FLAGS="$(AR_FLAGS)" \
  71.     AR_FOR_TARGET="$(AR_FOR_TARGET)" \
  72.     GCCFLAGS="$(GCCFLAGS)" \
  73.     GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
  74.     CC="$(GCC_FOR_TARGET)" \
  75.     LDFLAGS="$(LDFLAGS)" \
  76.     RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
  77.     RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
  78.     SHELL="$(SHELL)"
  79.  
  80. all: ../../include/f2c.h libi77 libf77
  81.  
  82. libi77: libI77/Makefile
  83.     cd libI77;  $(MAKE) $(FLAGS_TO_PASS) all
  84. libf77: libF77/Makefile
  85.     cd libF77;  $(MAKE) $(FLAGS_TO_PASS) all
  86.  
  87. ${srcdir}/configure: ${srcdir}/configure.in
  88.     cd ${srcdir} && autoconf && rm -f config.cache
  89. ../../include/f2c.h libI77/Makefile libF77/Makefile Makefile: Makefile.in \
  90.           config.status
  91.     $(FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) config.status
  92. # Extra dependencies for the targets above:
  93. libI77/Makefile: libI77/Makefile.in
  94. libF77/Makefile: libF77/Makefile.in
  95. # include is linked into ..
  96. ../../include/f2c.h: f2c.h.in
  97.  
  98. config.status: configure
  99.     $(FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) config.status --recheck
  100.  
  101. clean:
  102.     -rm -f config.log config.cache
  103.     for i in libI77 libF77; do cd $$i; $(MAKE) clean; cd ..;  done
  104.  
  105. distclean: clean
  106.     -rm -f Makefile lib?77/Makefile config.status config.log ../../include/f2c.h
  107.  
  108. mostlyclean: clean
  109.  
  110. uninstall:
  111.     rm ../../include/f2c.h
  112.  
  113. .PHONY: libf77 libi77
  114.