Mercurial > octave
annotate src/Makefile.am @ 15156:141b0b108292 gui
allow building without gui to work
* configure.ac: Enable building GUI by default. Rename OCTAVE_GUI to
AMCOND_BUILD_GUI. Don't define or substitute GUIDIR. Don't check for
GUI toolkit tools and libraries if building GUI is disabled.
* Makefile.am: Use else clause for AMCOND_BUILD_GUI automake conditional.
* src/Makefile.am: If not building GUI, make octave and octave-cli
binaries identical.
* gui/src/Makefile.am: Style fixes. Use - instead of _ and .cc
instead of .cpp in generated file names.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 11 Aug 2012 11:47:03 -0400 |
parents | bfc220d1de67 |
children | f3a5338aaa01 |
rev | line source |
---|---|
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
1 # Makefile for Octave's src directory |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
14023
diff
changeset
|
3 # Copyright (C) 1993-2012 John W. Eaton |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 # |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 # This file is part of Octave. |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
13024
diff
changeset
|
6 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 # Octave is free software; you can redistribute it and/or modify it |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 # under the terms of the GNU General Public License as published by the |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 # Free Software Foundation; either version 3 of the License, or (at |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 # your option) any later version. |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
13024
diff
changeset
|
11 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 # Octave is distributed in the hope that it will be useful, but WITHOUT |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 # for more details. |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
13024
diff
changeset
|
16 # |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 # You should have received a copy of the GNU General Public License |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 # along with Octave; see the file COPYING. If not, see |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 # <http://www.gnu.org/licenses/>. |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
21 include $(top_srcdir)/build-aux/common.mk |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
15132
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
23 AUTOMAKE_OPTIONS = subdir-objects |
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
24 |
14397
670feb71afde
maint: Move @CPPFLAGS@ to end of AM_CPPFLAGS lists in Makefiles.
John W. Eaton <jwe@octave.org>
parents:
14348
diff
changeset
|
25 ## Search local directories before those specified by the user. |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 AM_CPPFLAGS = \ |
10061
ec0c445d0d6f
include -I../libgnu in AM_CPPFLAGS
John W. Eaton <jwe@octave.org>
parents:
10051
diff
changeset
|
27 -I$(top_srcdir)/libcruft/misc \ |
ec0c445d0d6f
include -I../libgnu in AM_CPPFLAGS
John W. Eaton <jwe@octave.org>
parents:
10051
diff
changeset
|
28 -I../liboctave -I$(top_srcdir)/liboctave \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
29 -Ioctave-value -I$(srcdir)/octave-value \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
30 -Iparse-tree -I$(srcdir)/parse-tree \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
31 -Ioperators -I$(srcdir)/operators \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
32 -Iinterp-core -I$(srcdir)/interp-core \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
33 -Iinterpfcn -I$(srcdir)/interpfcn \ |
15086
a782752adcf3
search corefcn directory in build tree for include files
John W. Eaton <jwe@octave.org>
parents:
15085
diff
changeset
|
34 -Icorefcn \ |
15132
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
35 -I$(top_builddir)/libgnu -I$(top_srcdir)/libgnu |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 |
12727
40b16bb69fec
maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents:
12720
diff
changeset
|
37 octlib_LTLIBRARIES = liboctinterp.la |
40b16bb69fec
maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents:
12720
diff
changeset
|
38 |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
39 if AMCOND_BUILD_COMPILED_AUX_PROGRAMS |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
40 bin_PROGRAMS = \ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
41 mkoctfile \ |
15156
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
42 $(OCTAVE_PROGRAMS) \ |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
43 octave-config |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
44 |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
45 mkoctfile_SOURCES = |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
46 nodist_mkoctfile_SOURCES = mkoctfile.cc |
15132
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
47 mkoctfile_LDADD = $(top_builddir)/libgnu/libgnu.la $(LIBS) |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
48 |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
49 octave_config_SOURCES = |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
50 nodist_octave_config_SOURCES = octave-config.cc |
15132
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
51 octave_config_LDADD = \ |
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
52 corefcn/libcorefcn.la \ |
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
53 $(top_builddir)/libgnu/libgnu.la \ |
3e5b00d964ad
Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents:
15131
diff
changeset
|
54 $(LIBS) |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
55 |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
56 BUILT_SOURCES_EXTRA = \ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
57 mkoctfile.cc \ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
58 octave-config.cc |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
59 else |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
60 bin_PROGRAMS = \ |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
61 octave \ |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
62 octave-cli |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
63 |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
64 bin_SCRIPTS = \ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
65 mkoctfile \ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
66 octave-config |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
67 endif |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
68 |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
13024
diff
changeset
|
69 ## Order matters here. Leave builtins.cc last, because it depends on |
9906 | 70 ## $(DEF_FILES), and building those requires all the sources |
9911
ac7606d51a3d
src/Makefile.in (BUILT_SOURCES): include graphics-props.cc in the list
John W. Eaton <jwe@octave.org>
parents:
9907
diff
changeset
|
71 ## (except builtins.cc) to be available. |
9906 | 72 BUILT_SOURCES = \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
73 interp-core/mxarray.h \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
74 interp-core/oct-errno.cc \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
75 interpfcn/defaults.h \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
76 interpfcn/graphics-props.cc \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
77 interpfcn/graphics.h \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
78 operators/ops.cc \ |
15085
28f5f4a4a80a
maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents:
15083
diff
changeset
|
79 parse-tree/lex.cc \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
80 parse-tree/oct-gperf.h \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
81 parse-tree/oct-parse.cc \ |
9906 | 82 oct-conf.h \ |
83 version.h \ | |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
84 $(BUILT_SOURCES_EXTRA) \ |
9906 | 85 builtins.cc |
86 | |
87 BUILT_DISTFILES = \ | |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
88 parse-tree/oct-gperf.h \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
89 parse-tree/oct-parse.h |
9906 | 90 |
12727
40b16bb69fec
maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents:
12720
diff
changeset
|
91 ## Files that are created during build process and installed, |
40b16bb69fec
maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents:
12720
diff
changeset
|
92 ## BUT not distributed in tarball. |
9906 | 93 BUILT_NODISTFILES = \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
94 interp-core/mxarray.h \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
95 interp-core/oct-errno.cc \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
96 interpfcn/defaults.h \ |
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
97 interpfcn/graphics.h \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
98 operators/ops.cc \ |
9906 | 99 oct-conf.h \ |
100 version.h \ | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
101 $(OPT_HANDLERS) \ |
9906 | 102 $(OPT_INC) \ |
12720
ccfe03bebeba
src/Makefile.am: Fixes to get 'make dist' working
Rik <octave@nomad.inbox5.com>
parents:
12717
diff
changeset
|
103 $(ALL_DEF_FILES) \ |
9906 | 104 builtins.cc |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
106 EXTRA_DIST = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 Makefile.in \ |
9927
ecbf1577200c
Distribute DOCSTRINGS to prevent unnecessary documentation rebuild
Rik <rdrider0-list@yahoo.com>
parents:
9917
diff
changeset
|
108 DOCSTRINGS \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 find-defun-files.sh \ |
14649
5fa6a41d4fbe
build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents:
14630
diff
changeset
|
110 gendoc.pl \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 genprops.awk \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 mk-errno-list \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 mk-pkg-add \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
114 mkbuiltins \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
115 mkdefs \ |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
116 mkoctfile.in.cc \ |
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
117 mkoctfile.in.sh \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
118 mkops \ |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
119 oct-conf.in.h \ |
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
120 octave-config.in.cc \ |
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
121 octave-config.in.sh \ |
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
122 version.in.h \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
123 $(BUILT_DISTFILES) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
124 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
125 octinclude_HEADERS = \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
126 interpfcn/graphics-props.cc \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
127 parse-tree/oct-gperf.h \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
128 builtins.h \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
129 octave.h \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
130 $(OV_INCLUDES) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
131 $(OV_SPARSE_INCLUDES) \ |
15016
005cb78e1dd1
Split pt-jit into multiple files.
Max Brister <max@2bass.com>
parents:
14916
diff
changeset
|
132 $(PT_INCLUDES) \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
133 $(OPERATOR_INCLUDES) \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
134 $(INTERP_CORE_INCLUDES) \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
135 $(INTERPFCN_INCLUDES) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
136 |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
137 nodist_octinclude_HEADERS = \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
138 interp-core/mxarray.h \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
139 interpfcn/defaults.h \ |
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
140 interpfcn/graphics.h \ |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
141 oct-conf.h \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
142 version.h |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
143 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
144 DIST_SRC = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
145 octave.cc \ |
15057
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
146 $(OCTAVE_VALUE_SRC) \ |
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
147 $(PARSE_TREE_SRC) \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
148 $(INTERP_CORE_SRC) \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
149 $(INTERPFCN_SRC) \ |
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
150 $(COREFCN_SRC) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
151 |
15039
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
152 noinst_LTLIBRARIES = |
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
153 |
15057
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
154 include parse-tree/module.mk |
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
155 include octave-value/module.mk |
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
156 include operators/module.mk |
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
15051
diff
changeset
|
157 include template-inst/module.mk |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
158 include interp-core/module.mk |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
159 include interpfcn/module.mk |
15039
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
160 include corefcn/module.mk |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
161 include dldfcn/module.mk |
10376
1ed7cc046c52
Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents:
10342
diff
changeset
|
162 |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
163 $(srcdir)/dldfcn/module.mk: $(srcdir)/dldfcn/config-module.sh $(srcdir)/dldfcn/config-module.awk $(srcdir)/dldfcn/module-files |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
164 $(srcdir)/dldfcn/config-module.sh $(top_srcdir) |
10376
1ed7cc046c52
Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents:
10342
diff
changeset
|
165 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
166 if AMCOND_ENABLE_DYNAMIC_LINKING |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
167 OCT_FILES = $(DLDFCN_LIBS:.la=.oct) |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
168 OCT_STAMP_FILES = $(subst dldfcn/,dldfcn/$(am__leading_dot),$(DLDFCN_LIBS:.la=.oct-stamp)) |
14295
21572e9bd365
make --disable-dl work again
John W. Eaton <jwe@octave.org>
parents:
14192
diff
changeset
|
169 DLD_LIBOCTINTERP_LIBADD = liboctinterp.la |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
170 else |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
171 OCT_FILES = |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
11576
diff
changeset
|
172 OCT_STAMP_FILES = |
14295
21572e9bd365
make --disable-dl work again
John W. Eaton <jwe@octave.org>
parents:
14192
diff
changeset
|
173 DLD_LIBOCTINTERP_LIBADD = |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
174 endif |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
175 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
176 liboctinterp_la_SOURCES = \ |
15107
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
177 octave.cc \ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
178 $(OPERATORS_SRC) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
179 $(TEMPLATE_INST_SRC) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
180 |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
181 nodist_liboctinterp_la_SOURCES = \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
182 interp-core/mxarray.h \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
183 interp-core/oct-errno.cc \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
184 interpfcn/defaults.h \ |
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
185 interpfcn/graphics.h \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
186 operators/ops.cc \ |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
187 builtins.cc \ |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
188 oct-conf.h \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
189 version.h \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
190 $(OPT_INC) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
191 |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
192 liboctinterp_la_CPPFLAGS = @OCTINTERP_DLL_DEFS@ $(AM_CPPFLAGS) |
9906 | 193 |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
194 include link-deps.mk |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
195 |
13022
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
196 liboctinterp_la_LIBADD = \ |
15107
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
197 octave-value/liboctave-value.la \ |
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
198 parse-tree/libparse-tree.la \ |
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
199 interp-core/libinterp-core.la \ |
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
200 interpfcn/libinterpfcn.la \ |
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15100
diff
changeset
|
201 corefcn/libcorefcn.la \ |
13022
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
202 ../liboctave/liboctave.la \ |
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
203 ../libcruft/libcruft.la \ |
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
204 $(LIBOCTINTERP_LINK_DEPS) |
9816
b1462c588dd5
add -DX_DLL_DEFS to CPPFLAGS
John W. Eaton <jwe@octave.org>
parents:
9798
diff
changeset
|
205 |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
206 # Increment these as needed and according to the rules in the libtool manual: |
14192
5d5400bd1f62
maint: update library version numbers for release
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
207 liboctinterp_current = 1 |
14348 | 208 liboctinterp_revision = 1 |
12708
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
209 liboctinterp_age = 0 |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
210 |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
211 liboctinterp_version_info = $(liboctinterp_current):$(liboctinterp_revision):$(liboctinterp_age) |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
212 |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
213 liboctinterp_la_LDFLAGS = \ |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
214 -version-info $(liboctinterp_version_info) \ |
e34f2bf7319d
maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents:
12218
diff
changeset
|
215 $(NO_UNDEFINED_LDFLAG) \ |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
216 -bindir $(bindir) \ |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
217 $(LIBOCTINTERP_LINK_OPTS) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
218 |
15039
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
219 ## FIXME: Does this rule need to be uncommented? |
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
220 #fft.df fft.lo fft2.df fft2.lo fftn.df fftn.lo: CPPFLAGS += $(FFTW_XCPPFLAGS) |
e753177cde93
maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents:
15016
diff
changeset
|
221 |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
222 OCTAVE_CORE_LIBS = \ |
13022
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
223 liboctinterp.la \ |
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
224 ../liboctave/liboctave.la \ |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
225 ../libcruft/libcruft.la |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
226 |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
227 octave_cli_SOURCES = main-cli.cc |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
228 |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
229 octave_cli_LDADD = \ |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
230 $(OCTAVE_CORE_LIBS) |
13022
05534f03377d
maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
231 $(OCTAVE_LINK_DEPS) |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
232 |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
233 octave_cli_LDFLAGS = \ |
13024
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13022
diff
changeset
|
234 $(NO_UNDEFINED_LDFLAG) \ |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13022
diff
changeset
|
235 $(OCTAVE_LINK_OPTS) |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
236 |
15156
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
237 if AMCOND_BUILD_GUI |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
238 octave_SOURCES = main.cc |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
239 OCTAVE_GUI_LIBS = ../gui/src/liboctgui.la |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
240 OCTAVE_GUI_CPPFLAGS = -I$(top_srcdir)/gui/src |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
241 else |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
242 octave_SOURCES = main-cli.cc |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
243 OCTAVE_GUI_LIBS = |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
244 OCTAVE_GUI_CPPFLAGS = |
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
245 endif |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
246 |
15156
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
247 octave_CPPFLAGS = $(OCTAVE_GUI_CPPFLAGS) |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
248 |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
249 octave_LDADD = \ |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
250 $(OCTAVE_CORE_LIBS) \ |
15156
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
251 $(OCTAVE_GUI_LIBS) \ |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
252 $(OCTAVE_LINK_DEPS) |
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
253 |
15156
141b0b108292
allow building without gui to work
John W. Eaton <jwe@octave.org>
parents:
15139
diff
changeset
|
254 octave_LDFLAGS = $(octave_cli_LDFLAGS) |
15139
bfc220d1de67
include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents:
15132
diff
changeset
|
255 |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
256 ## Section for defining and creating DEF_FILES |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
257 SRC_DEF_FILES := $(shell $(srcdir)/find-defun-files.sh "$(srcdir)" $(DIST_SRC)) |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
258 |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
259 DLDFCN_DEF_FILES = $(DLDFCN_SRC:.cc=.df) |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
260 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
261 ## builtins.cc depends on $(DEF_FILES), so DEF_FILES should only include |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
262 ## .df files that correspond to sources included in liboctave. |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
263 if AMCOND_ENABLE_DYNAMIC_LINKING |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
264 DEF_FILES = $(SRC_DEF_FILES) |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
265 else |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
266 DEF_FILES = $(SRC_DEF_FILES) $(DLDFCN_DEF_FILES) |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
267 endif |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
268 |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
269 ALL_DEF_FILES = $(SRC_DEF_FILES) $(DLDFCN_DEF_FILES) |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
270 |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
271 $(SRC_DEF_FILES): mkdefs Makefile |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
272 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
273 $(DEF_FILES): $(OPT_HANDLERS) $(OPT_INC) |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
274 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
275 DLL_CDEFS = @OCTINTERP_DLL_DEFS@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
276 DLL_CXXDEFS = @OCTINTERP_DLL_DEFS@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
277 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
278 ## Rule to build a DEF file from a .cc file |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
279 %.df: %.cc |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
280 $(CXXCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
281 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
282 -DMAKE_BUILTINS $< | $(srcdir)/mkdefs $(srcdir) $< > $@-t |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
283 mv $@-t $@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
284 |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
13024
diff
changeset
|
285 ## Special rules: |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
286 ## Mostly for sources which must be built before rest of compilation. |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
287 |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15088
diff
changeset
|
288 ## oct-conf.h must depend on Makefile. Calling configure |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
289 ## may change default/config values. However, calling configure will also |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
290 ## regenerate the Makefiles from Makefile.am and trigger the rules below. |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
291 oct-conf.h: oct-conf.in.h Makefile |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
292 @$(do_subst_config_vals) |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
293 |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
294 version.h: version.in.h Makefile |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
295 $(SED) < $< \ |
15100
8523df595d42
maint: Add DO NOT EDIT messages to build system for src/*.in.h.
Rik <rik@octave.org>
parents:
15096
diff
changeset
|
296 -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(<F) by Make.|" \ |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
297 -e "s|%OCTAVE_API_VERSION_NUMBER%|${OCTAVE_API_VERSION_NUMBER}|" \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
298 -e "s|%OCTAVE_API_VERSION%|\"${OCTAVE_API_VERSION}\"|" \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
299 -e "s|%OCTAVE_COPYRIGHT%|\"${OCTAVE_COPYRIGHT}\"|" \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
300 -e "s|%OCTAVE_RELEASE_DATE%|\"${OCTAVE_RELEASE_DATE}\"|" \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
301 -e "s|%OCTAVE_VERSION%|\"${OCTAVE_VERSION}\"|" > $@-t |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
302 mv $@-t $@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
303 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
304 builtins.cc: $(DEF_FILES) mkbuiltins |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
305 $(srcdir)/mkbuiltins $(DEF_FILES) > $@-t |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
306 mv $@-t $@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
307 |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
308 if AMCOND_ENABLE_DYNAMIC_LINKING |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
309 DLDFCN_PKG_ADD_FILE = dldfcn/PKG_ADD |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
310 |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
311 dldfcn/PKG_ADD: $(DLDFCN_DEF_FILES) mk-pkg-add |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
312 $(srcdir)/mk-pkg-add $(DLDFCN_DEF_FILES) > $@-t |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
313 mv $@-t $@ |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12958
diff
changeset
|
314 endif |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
315 |
14432
e053d1622f4e
build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents:
14398
diff
changeset
|
316 if AMCOND_BUILD_DOCS |
14649
5fa6a41d4fbe
build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents:
14630
diff
changeset
|
317 .DOCSTRINGS: $(ALL_DEF_FILES) gendoc.pl |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
318 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/DOCSTRINGS ] && [ ! -f DOCSTRINGS ]; then \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
319 cp $(srcdir)/DOCSTRINGS DOCSTRINGS; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
320 touch -r $(srcdir)/DOCSTRINGS DOCSTRINGS; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
321 fi |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
322 @echo "creating .DOCSTRINGS from .cc source files" |
14649
5fa6a41d4fbe
build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents:
14630
diff
changeset
|
323 @$(PERL) $(srcdir)/gendoc.pl $(ALL_DEF_FILES) > $@ |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
324 $(top_srcdir)/build-aux/move-if-change $@ DOCSTRINGS |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
325 touch $@ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
326 |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
327 all-local: $(OCT_STAMP_FILES) $(DLDFCN_PKG_ADD_FILE) .DOCSTRINGS |
14432
e053d1622f4e
build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents:
14398
diff
changeset
|
328 else |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
329 all-local: $(OCT_STAMP_FILES) $(DLDFCN_PKG_ADD_FILE) |
14432
e053d1622f4e
build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents:
14398
diff
changeset
|
330 endif |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
331 |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
332 if AMCOND_BUILD_COMPILED_AUX_PROGRAMS |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
333 octave-config.cc: octave-config.in.cc Makefile |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
334 @$(do_subst_default_vals) |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
335 |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
336 mkoctfile.cc: mkoctfile.in.cc Makefile |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
337 @$(do_subst_config_vals) |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
338 else |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
339 octave-config: octave-config.in.sh Makefile |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
340 @$(do_subst_default_vals) |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
341 chmod a+rx $@ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
342 |
14547
1bf39e944e43
rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents:
14432
diff
changeset
|
343 mkoctfile: mkoctfile.in.sh Makefile |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
344 @$(do_subst_config_vals) |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
345 chmod a+rx $@ |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
346 endif |
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
347 |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
348 install-exec-hook: make-version-links |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
349 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
350 install-data-hook: install-oct |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
351 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
352 uninstall-local: remove-version-links uninstall-oct |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
353 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
354 make-version-links: |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
355 cd $(DESTDIR)$(bindir) && \ |
12754
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
356 for f in $(basename $(bin_PROGRAMS)); do \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
357 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
358 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
359 done |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
360 if ! AMCOND_BUILD_COMPILED_AUX_PROGRAMS |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
361 cd $(DESTDIR)$(bindir) && \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
362 for f in $(basename $(bin_SCRIPTS)); do \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
363 mv $$f $$f-$(version) && \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
364 $(LN_S) $$f-$(version) $$f; \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
365 done |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
366 endif |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
367 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
368 remove-version-links: |
12754
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
369 for f in $(basename $(bin_PROGRAMS)); do \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
370 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
371 done |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
372 if ! AMCOND_BUILD_COMPILED_AUX_PROGRAMS |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
373 for f in $(basename $(bin_SCRIPTS)); do \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
374 rm -f $(DESTDIR)$(bindir)/$$f-$(version); \ |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
375 done |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
376 endif |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
377 |
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
378 .PHONY: make-version-links remove-version-links |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
379 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
380 if AMCOND_ENABLE_DYNAMIC_LINKING |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
381 install-oct: |
12733
b67c2d580a25
maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents:
12730
diff
changeset
|
382 $(top_srcdir)/build-aux/mkinstalldirs $(DESTDIR)$(octfiledir) |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
383 if [ -n "`cat $(DLDFCN_PKG_ADD_FILE)`" ]; then \ |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
384 $(INSTALL_DATA) $(DLDFCN_PKG_ADD_FILE) $(DESTDIR)$(octfiledir)/PKG_ADD; \ |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
385 fi |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
386 cd $(DESTDIR)$(octlibdir) && \ |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
387 for ltlib in $(DLDFCN_LIBS); do \ |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
388 f=`echo $$ltlib | $(SED) 's,.*/,,'`; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
389 dl=`$(SED) -n -e "s/dlname='\([^']*\)'/\1/p" < $$f`; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
390 if [ -n "$$dl" ]; then \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
391 $(INSTALL_PROGRAM) $$dl $(DESTDIR)$(octfiledir)/`echo $$f | $(SED) 's,^lib,,; s,\.la$$,.oct,'`; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
392 else \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
393 echo "error: dlname is empty in $$ltlib!"; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
394 exit 1; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
395 fi; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
396 lnames=`$(SED) -n -e "s/library_names='\([^']*\)'/\1/p" < $$f`; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
397 if [ -n "$$lnames" ]; then \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
398 rm -f $$f $$lnames $$dl; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
399 fi \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
400 done |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
401 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
402 uninstall-oct: |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
403 for f in $(notdir $(OCT_FILES)); do \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
404 rm -f $(DESTDIR)$(octfiledir)/$$f; \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
405 done |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
406 rm -f $(DESTDIR)$(octfiledir)/PKG_ADD |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
407 endif |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
408 .PHONY: install-oct uninstall-oct |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
409 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
410 CLEANFILES = \ |
12754
5ee4fc58585f
* Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
411 $(bin_SCRIPTS) \ |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15075
diff
changeset
|
412 $(DLDFCN_PKG_ADD_FILE) \ |
15088
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
413 interpfcn/graphics-props.cc \ |
60ff2cef569d
maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents:
15086
diff
changeset
|
414 parse-tree/oct-parse.output |
12730
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
415 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
416 DISTCLEANFILES = \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
417 .DOCSTRINGS \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
418 DOCSTRINGS \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
419 $(BUILT_NODISTFILES) \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
420 $(OCT_FILES) \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
421 $(OCT_STAMP_FILES) |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
422 |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
423 MAINTAINERCLEANFILES = \ |
633ef00d963c
maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents:
12727
diff
changeset
|
424 $(BUILT_DISTFILES) |