5
|
1 # |
|
2 # Common configuration rules for all of octave's Makefiles. |
|
3 # |
|
4 # John W. Eaton |
|
5 # jwe@che.utexas.edu |
|
6 # Department of Chemical Engineering |
|
7 # The University of Texas at Austin |
|
8 |
|
9 SHELL = /bin/sh |
|
10 |
|
11 #### Start of system configuration section. #### |
|
12 |
|
13 LEX = @LEX@ |
|
14 LFLAGS = @LFLAGS@ |
|
15 LEXLIB = @LEXLIB@ |
|
16 |
|
17 YACC = @YACC@ |
|
18 YFLAGS = -dv |
|
19 |
|
20 INSTALL = @INSTALL@ |
169
|
21 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
5
|
22 INSTALL_DATA = @INSTALL_DATA@ |
|
23 |
|
24 RANLIB = @RANLIB@ |
|
25 |
|
26 RUNTEST = @RUNTEST@ |
|
27 |
|
28 DEFAULT_PAGER = @DEFAULT_PAGER@ |
|
29 |
|
30 # Fortran to C translator and associated flags. |
|
31 |
|
32 F2C = @F2C@ |
|
33 F2CFLAGS = @F2CFLAGS@ |
|
34 |
|
35 # Fortran compiler flags. |
|
36 |
|
37 FFLAGS = @FFLAGS@ |
|
38 |
|
39 # cc and associated flags. |
|
40 |
|
41 INCFLAGS = -I. -I$(srcdir) |
|
42 LIBFLAGS = -L$(TOPDIR) |
|
43 DEFS = @DEFS@ |
|
44 |
|
45 CC = @CC@ |
|
46 CFLAGS = @CFLAGS@ |
|
47 ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(CFLAGS) |
|
48 |
198
|
49 CXX = @CXX@ |
|
50 CXXFLAGS = @CXXFLAGS@ |
5
|
51 ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(CXXFLAGS) |
|
52 |
|
53 LDFLAGS = @LDFLAGS@ |
|
54 ALL_LDFLAGS = $(LIBFLAGS) $(LDFLAGS) |
|
55 |
|
56 FLIBS = @FLIBS@ |
|
57 |
|
58 # A shell command to extract the version number from version.h. |
|
59 getversion = sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q |
|
60 |
|
61 # The version number. TOPDIR is something like `.' or `..' or `../..' |
|
62 # and gets us back up to the top level of the source tree. |
|
63 version = `$(getversion) $(srcdir)/$(TOPDIR)/src/version.h` |
|
64 |
|
65 # Common prefix for installation directories. |
|
66 # NOTE: This directory must exist when you start installation. |
|
67 prefix = /usr/local |
|
68 |
|
69 # Directory in which to put host dependent programs and libraries |
|
70 exec_prefix = $(prefix) |
|
71 |
|
72 # Where to install the executables. |
|
73 bindir = $(exec_prefix)/bin |
|
74 |
|
75 # Where to put libraries like libcruft.a, liboctave.a, and libreadline.a |
|
76 libdir = $(exec_prefix)/lib |
|
77 |
|
78 # Where octave will look for M-files |
|
79 libsubdir = $(libdir)/octave/$(version) |
|
80 |
|
81 # Where to put the manual pages. |
|
82 mandir = $(prefix)/man/man1 |
|
83 # Extension (not including `.') for the installed manual page filenames. |
|
84 manext = 1 |
|
85 |
|
86 # Where to put the info files. |
|
87 infodir = $(prefix)/info |
|
88 |
|
89 # Where to put extra data files, system-wide startup files, etc. |
|
90 datadir = $(prefix)/lib/octave |
|
91 |
|
92 # Where to put installed include files. |
|
93 includedir = $(prefix)/include |
|
94 |
|
95 # The type of computer we are running on. |
|
96 target_host_type = @target_host_type@ |
|
97 |
|
98 # The following pattern rules and the substitution functions require |
|
99 # GNU make. If you don't have it, get it! |
|
100 |
|
101 @DEFAULT_DOT_C_FROM_DOT_F@ |
|
102 |
|
103 @DEFAULT_DOT_O_FROM_DOT_F@ |
|
104 |
|
105 # How to make .o files from .c files: |
|
106 |
|
107 .c.o: |
|
108 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
|
109 |
|
110 .cc.o: |
|
111 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< |