home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / Makeconf.in < prev    next >
Text File  |  1995-02-14  |  7KB  |  246 lines

  1. # @configure_input@
  2. #
  3. # Common configuration rules for all of octave's Makefiles.
  4. #
  5. # John W. Eaton
  6. # jwe@che.utexas.edu
  7. # Department of Chemical Engineering
  8. # The University of Texas at Austin
  9.  
  10. SHELL = /bin/sh
  11.  
  12. #### Start of system configuration section. ####
  13.  
  14. LEX = @LEX@
  15. LFLAGS = @LFLAGS@
  16. LEXLIB = @LEXLIB@
  17.  
  18. YACC = @YACC@
  19. YFLAGS = -dv
  20.  
  21. RANLIB = @RANLIB@
  22.  
  23. RUNTEST = @RUNTEST@
  24.  
  25. DEFAULT_PAGER = @DEFAULT_PAGER@
  26.  
  27. WITH_DLD = @use_dld@
  28.  
  29. OCTAVE_LITE = @lite_kernel@
  30.  
  31. # Fortran to C translator and associated flags.
  32.  
  33. F2C = @F2C@
  34. F2CFLAGS = @F2CFLAGS@
  35.  
  36. # Fortran compiler flags.
  37.  
  38. F77 = @F77@
  39. FFLAGS = @FFLAGS@
  40.  
  41. # cc and associated flags.
  42.  
  43. # Clean up INCFLAGS a bit if we are not compiling in a separate
  44. # directory.
  45. ifeq ($(srcdir),.)
  46.   TMP_IF_1 = -I. -I../src
  47. else
  48.   TMP_IF_1 = -I. -I$(srcdir) -I../src
  49. endif
  50. ifeq ($(TOPDIR),$(top_srcdir))
  51.   TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src
  52. else
  53.   TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
  54.     -I$(top_srcdir) -I$(top_srcdir)/liboctave -I$(top_srcdir)/src
  55. endif
  56. INCFLAGS = $(TMP_IF_1) $(TMP_IF_2)
  57.  
  58. LIBFLAGS = -L$(TOPDIR)
  59.  
  60. DEFS = @DEFS@
  61. UGLY_DEFS = @UGLY_DEFS@
  62.  
  63. CC = @CC@
  64. CFLAGS = @CFLAGS@
  65. GCC_IEEE_FP_FLAG = @GCC_IEEE_FP_FLAG@
  66. ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(GCC_IEEE_FP_FLAG) $(CFLAGS)
  67. UGLY_ALL_CFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(GCC_IEEE_FP_FLAG) $(CFLAGS)
  68. BUG_CFLAGS = $(DEFS) $(GCC_IEEE_FP_FLAG) $(CFLAGS)
  69.  
  70.  
  71. CXX = @CXX@
  72. CXXCPP = @CXXCPP@
  73. CXXFLAGS = @CXXFLAGS@
  74. NO_IMPLICIT_TEMPLATES = @NO_IMPLICIT_TEMPLATES@
  75. HOST_CXXFLAGS = @HOST_CXXFLAGS@
  76. ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(HOST_CXXFLAGS) \
  77.     $(NO_IMPLICIT_TEMPLATES) $(GCC_IEEE_FP_FLAG) $(CXXFLAGS)
  78. UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(HOST_CXXFLAGS) \
  79.     $(NO_IMPLICIT_TEMPLATES) $(GCC_IEEE_FP_FLAG) $(CXXFLAGS)
  80. BUG_CXXFLAGS = $(DEFS) $(HOST_CXXFLAGS) $(NO_IMPLICIT_TEMPLATES) \
  81.     $(GCC_IEEE_FP_FLAG) $(CXXFLAGS)
  82.  
  83. CPPFLAGS = @CPPFLAGS@
  84.  
  85. LDFLAGS = @LDFLAGS@
  86. LD_STATIC_FLAG = @LD_STATIC_FLAG@
  87. ALL_LDFLAGS = $(LIBFLAGS) $(GCC_IEEE_FP_FLAG) $(LD_STATIC_FLAG) $(LDFLAGS)
  88.  
  89. FLIBS = @FLIBS@
  90. FLIB_LIST = @FLIB_LIST@
  91. FLIB_PATH = @FLIB_PATH@
  92.  
  93. CXXLIBS = @CXXLIBS@
  94. CXXLIB_LIST = @CXXLIB_LIST@
  95. CXXLIB_PATH = @CXXLIB_PATH@
  96.  
  97.  
  98. # A shell command to extract the version number from version.h.
  99. getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q
  100.  
  101. # The version number.  TOPDIR is something like `.' or `..' or `../..'
  102. # and gets us back up to the top level of the source tree.
  103. version := $(shell $(getversion) $(srcdir)/$(TOPDIR)/src/version.h)
  104.  
  105. # ==================== Where To Install Things ====================
  106.  
  107. # The default location for installation.  Everything is placed in
  108. # subdirectories of this directory.  The default values for many of
  109. # the variables below are expressed in terms of this one, so you may
  110. # not need to change them.  This defaults to /usr/local.
  111. prefix = @prefix@
  112.  
  113. # Like `prefix', but used for architecture-specific files.
  114. exec_prefix = @exec_prefix@
  115.  
  116. # Where to install Octave and other binaries that people will want to
  117. # run directly.
  118. bindir = @bindir@
  119.  
  120. # Where to install architecture-independent data files.  ${fcnfiledir}
  121. # and ${localfcnfiledir} are subdirectories of this.
  122. datadir = @datadir@
  123.  
  124. # Where to install and expect libraries like libcruft.a, liboctave.a,
  125. # and libreadline.a, executable files to be run by Octave rather than
  126. # directly by users, and other architecture-dependent data.
  127. # ${archlibdir} is a subdirectory of this. 
  128. libdir = @libdir@
  129.  
  130. # Where to install Octave's include files.  The default is
  131. # ${prefix}/include/octave
  132. includedir = @includedir@
  133.  
  134. # Where to install Octave's man pages, and what extension they should
  135. # have.  The default is ${prefix}/man/man1
  136. mandir = @mandir@
  137. manext = 1
  138.  
  139. # Where to install and expect the info files describing Octave..
  140. infodir = @infodir@
  141.  
  142. # ==================== Octave-specific directories ====================
  143.  
  144. # These variables hold the values Octave will actually use.  They are
  145. # based on the values of the standard Make variables above.
  146.  
  147. # Where to install the function file distributed with
  148. # Octave.  This includes the Octave version, so that the
  149. # function files for different versions of Octave will install
  150. # themselves in separate directories.
  151. fcnfiledir = @fcnfiledir@
  152.  
  153. # Directories Octave should search for function files specific
  154. # to this site (i.e. customizations), before consulting
  155. # ${fcnfiledir}.  This should be a colon-separated list of
  156. # directories.
  157. localfcnfiledir = @localfcnfiledir@
  158. localfcnfilepath = @localfcnfilepath@
  159.  
  160. # Where to put executables to be run by Octave rather than
  161. # the user.  This path usually includes the Octave version
  162. # and configuration name, so that multiple configurations
  163. # for multiple versions of Octave may be installed at once.
  164. archlibdir = @archlibdir@
  165.  
  166. # Where to put object files that will by dynamically loaded.
  167. # This path usually includes the Octave version and configuration
  168. # name, so that multiple configurations for multiple versions of
  169. # Octave may be installed at once. 
  170. octfiledir = @octfiledir@
  171.  
  172. # Directories Octave should search for object files that will be
  173. # dynamically loaded and that are specific to this site
  174. # (i.e. customizations), before consulting ${octfiledir}.  This should
  175. # be a colon-separated list of directories.
  176. localoctfiledir = @localoctfiledir@
  177. localoctfilepath = @localoctfilepath@
  178.  
  179. # Where Octave will search to find its function files.  Before
  180. # changing this, check to see if your purpose wouldn't
  181. # better be served by changing localfcnfilepath.  This
  182. # should be a colon-separated list of directories.
  183. fcnfilepath = @fcnfilepath@
  184.  
  185. # Where Octave will search to find image files.es.
  186. imagedir = @imagedir@
  187. imagepath = @imagepath@
  188.  
  189. # The type of computer we are running on.
  190. target_host_type = @target_host_type@
  191.  
  192. # The following pattern rules and the substitution functions require
  193. # GNU make.  If you don't have it, get it!
  194.  
  195. # Rules for making C source from Fortran source (if necessary).
  196. #
  197. # If we are using f2c there will be a command for the `%.c : %.f'
  198. # pattern and no command for the `%.o : %.f' pattern, so that make
  199. # will not invoke the fortran compiler by mistake.
  200. #
  201. # If we are not using f2c, it should be ok to have an empty rule for
  202. # the pattern `%.c : %.f', but we don't want to replace make's default
  203. # rule for making object from Fortran source files, so there should be
  204. # no pattern or command for that.
  205.  
  206. %.c : %.f
  207. @DOT_C_FROM_DOT_F_CMD@
  208.  
  209. @DOT_O_FROM_DOT_F_PAT@
  210.  
  211. # How to make .o files from .c files:
  212.  
  213. .c.o:
  214.     $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
  215.  
  216. .cc.o:
  217.     $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $<
  218.  
  219. # Here is a rule for generating dependencies for .cc files:
  220.  
  221. %.d: %.cc
  222.     @echo making $@ from $<
  223.     @rm -f $@
  224.     @-if test "$(srcdir)" = "." ; then \
  225.       $(CXX) -MM $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
  226.         sed -e 's/$*\.o/& $@/g' > $@.tmp ; \
  227.     else \
  228.       $(CXX) -MM $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
  229.         sed -e 's/$*\.o/& $@/g' -e 's,$(srcdir)/,,g' > $@.tmp ; \
  230.     fi
  231.     @mv $@.tmp $@
  232.  
  233. # And one for .c files.too:
  234.  
  235. %.d: %.c
  236.     @echo making $@ from $<
  237.     @rm -f $@
  238.     @-if test "$(srcdir)" = "." ; then \
  239.       $(CC) -MM $(CPPFLAGS) $(ALL_CFLAGS) $< | \
  240.         sed -e 's/$*\.o/& $@/g' > $@.tmp ; \
  241.     else \
  242.       $(CC) -MM $(CPPFLAGS) $(ALL_CFLAGS) $< | \
  243.         sed -e 's/$*\.o/& $@/g' -e 's,$(srcdir)/,,g' > $@.tmp ; \
  244.     fi
  245.     @mv $@.tmp $@
  246.