annotate src/Makefile.in @ 7947:c2d50b69b19f

src/Makefile.in (__magick_read__.df): Append MAGICK_INCFLAGS to CPPFLAGS
author John W. Eaton <jwe@octave.org>
date Fri, 18 Jul 2008 16:36:22 -0400
parents ebe275f82bd5
children 3ffc34caec65
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
1 # Makefile for octave's src directory
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
2 #
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
5 #
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
6 # This file is part of Octave.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
7 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
8 # Octave is free software; you can redistribute it and/or modify it
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
9 # under the terms of the GNU General Public License as published by the
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
10 # Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
11 # your option) any later version.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
12 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
13 # Octave is distributed in the hope that it will be useful, but WITHOUT
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
16 # for more details.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
17 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
18 # You should have received a copy of the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
19 # along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
20 # <http://www.gnu.org/licenses/>.
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
21
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
22 TOPDIR = ..
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
23
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
24 srcdir = @srcdir@
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
25 top_srcdir = @top_srcdir@
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
26 VPATH = @srcdir@:@srcdir@/DLD-FUNCTIONS:@srcdir@/OPERATORS:@srcdir@/TEMPLATE-INST
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
27
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
28 include $(TOPDIR)/Makeconf
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
29
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6111
diff changeset
30 DLL_CDEFS = @OCTINTERP_DLL_DEFS@
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6111
diff changeset
31 DLL_CXXDEFS = @OCTINTERP_DLL_DEFS@
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6080
diff changeset
32
651
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
33 INSTALL = @INSTALL@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
35 INSTALL_DATA = @INSTALL_DATA@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
36
7905
bcacdcc726f7 Allow octave compilation without FLTK/OpenGL
John W. Eaton <jwe@octave.org>
parents: 7885
diff changeset
37 GL_RENDER_SRC = @GL_RENDER_SRC@
bcacdcc726f7 Allow octave compilation without FLTK/OpenGL
John W. Eaton <jwe@octave.org>
parents: 7885
diff changeset
38 FLTK_BACKEND_SRC = @FLTK_BACKEND_SRC@
bcacdcc726f7 Allow octave compilation without FLTK/OpenGL
John W. Eaton <jwe@octave.org>
parents: 7885
diff changeset
39
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
40 PT_FLAGS = -fexternal-templates -fno-implicit-templates
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
41 CXXFLAGS_NO_PT_FLAGS = $(filter-out $(PT_FLAGS), $(ALL_CXXFLAGS))
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
42
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
43 %.df : %.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
44 @echo making $@ from $<
6218
c1b66b74937d [project @ 2006-12-27 17:43:50 by jwe]
jwe
parents: 6152
diff changeset
45 @(echo "// DO NOT EDIT! Generated automatically by mkdefs." ; \
c1b66b74937d [project @ 2006-12-27 17:43:50 by jwe]
jwe
parents: 6152
diff changeset
46 egrep '^(///*|/\*) *PKG_ADD:' $< ; \
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
47 $(CXXCPP) $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) -DMAKE_BUILTINS $< \
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
48 | $(srcdir)/mkdefs) > $@-t
6603
629844711f49 [project @ 2007-04-30 17:28:56 by jwe]
jwe
parents: 6595
diff changeset
49 @mv $@-t $@
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
50
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
51 # How to make a .oct file from a .o file:
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
52
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
53 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
54 ifdef CXXPICFLAG
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
55 %.oct : pic/%.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
56 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
57 else
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
58 %.oct : %.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
59 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
60 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
61 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
62
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
63 OPT_BASE := $(addsuffix -opts, DASPK DASRT DASSL LSODE NLEqn Quad)
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
64 OPT_HANDLERS := $(addsuffix .cc, $(OPT_BASE))
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
65 OPT_IN := $(addprefix ../liboctave/, $(addsuffix .in, $(OPT_BASE)))
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
66 OPT_INC := $(addprefix ../liboctave/, $(addsuffix .h, $(OPT_BASE)))
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
67
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7580
diff changeset
68 DLD_XSRC := amd.cc balance.cc besselj.cc betainc.cc bsxfun.cc cellfun.cc \
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7580
diff changeset
69 chol.cc ccolamd.cc colamd.cc colloc.cc conv2.cc convhulln.cc daspk.cc \
7580
b4aa9ef3d3ef Port dlmread, dlmwrite, csvread and csvwrite from octave-forge
David Bateman <dbateman@free.fr>
parents: 7515
diff changeset
70 dasrt.cc dassl.cc det.cc dispatch.cc dlmread.cc dmperm.cc eig.cc \
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
71 expm.cc fft.cc fft2.cc fftn.cc fftw.cc filter.cc find.cc \
7905
bcacdcc726f7 Allow octave compilation without FLTK/OpenGL
John W. Eaton <jwe@octave.org>
parents: 7885
diff changeset
72 $(FLTK_BACKEND_SRC) fsolve.cc \
5819
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
73 gammainc.cc gcd.cc getgrent.cc getpwent.cc getrusage.cc \
7671
4fbaba9abec1 implement compiled binary lookup
Jaroslav Hajek <highegg@gmail.com>
parents: 7662
diff changeset
74 givens.cc hess.cc hex2num.cc inv.cc kron.cc lookup.cc lsode.cc \
7662
a168157f08ee rename minmax.cc to max.cc
John W. Eaton <jwe@octave.org>
parents: 7640
diff changeset
75 lu.cc luinc.cc matrix_type.cc max.cc md5sum.cc pinv.cc qr.cc \
7788
45f5faba05a2 Add the rcond function
David Bateman <dbateman@free.fr>
parents: 7671
diff changeset
76 quad.cc qz.cc rand.cc rcond.cc regexp.cc schur.cc sparse.cc \
7515
f3c00dc0912b Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents: 7505
diff changeset
77 spparms.cc sqrtm.cc svd.cc syl.cc symrcm.cc symbfact.cc \
f3c00dc0912b Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents: 7505
diff changeset
78 time.cc tsearch.cc typecast.cc \
6868
975fcdfb0d2d [project @ 2007-09-06 16:34:29 by dbateman]
dbateman
parents: 6823
diff changeset
79 urlwrite.cc __contourc__.cc __delaunayn__.cc __dsearchn__.cc \
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
80 __glpk__.cc __lin_interpn__.cc __magick_read__.cc __pchip_deriv__.cc \
7640
3398ce778b4b Added support for N-dimensional convolution
sh@sh-laptop
parents: 7639
diff changeset
81 __qp__.cc __voronoi__.cc __convn__.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
82
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
83 DLD_SRC := $(addprefix DLD-FUNCTIONS/, $(DLD_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
84
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
85 DLD_OBJ_1 := $(patsubst %.l, %.o, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
86 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_OBJ_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
87
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
88 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
89 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
90 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
91 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
92 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
93 DLD_PICOBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
94 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
95 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
96 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
97 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
98
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
99 OV_INTTYPE_INC := ov-base-int.h ov-int-traits.h ov-intx.h \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
100 ov-int8.h ov-int16.h ov-int32.h ov-int64.h \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
101 ov-uint8.h ov-uint16.h ov-uint32.h ov-uint64.h
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
102
3977
95663a3a2682 [project @ 2002-07-05 17:43:37 by jwe]
jwe
parents: 3931
diff changeset
103 OV_INCLUDES := ov-re-mat.h ov-cx-mat.h ov-ch-mat.h ov-cs-list.h ov-list.h \
5848
415ae81d331b [project @ 2006-06-08 20:37:29 by jwe]
jwe
parents: 5838
diff changeset
104 ov-struct.h ov-scalar.h ov-range.h ov-complex.h \
3223
3ee04ff37b3e [project @ 1998-11-20 19:34:15 by jwe]
jwe
parents: 3221
diff changeset
105 ov-colon.h ov-base.h ov-base-mat.h ov-base-scalar.h \
7885
f336dd8e96d0 eliminate streamoff type
John W. Eaton <jwe@octave.org>
parents: 7874
diff changeset
106 ov-str-mat.h ov-bool-mat.h ov-bool.h \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
107 ov-cell.h ov.h ov-fcn.h ov-builtin.h ov-dld-fcn.h \
7503
8c32f95c2639 convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents: 7466
diff changeset
108 ov-mex-fcn.h ov-usr-fcn.h ov-fcn-handle.h \
7336
745a8299c2b5 [project @ 2007-12-28 20:56:55 by jwe]
jwe
parents: 7258
diff changeset
109 ov-fcn-inline.h ov-class.h ov-typeinfo.h ov-type-conv.h \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
110 ov-flt-re-mat.h ov-flt-cx-mat.h ov-float.h ov-flt-complex.h \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
111 $(OV_INTTYPE_INC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
112
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
113 OV_SPARSE_INCLUDES := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
114 ov-base-sparse.h ov-bool-sparse.h ov-cx-sparse.h ov-re-sparse.h
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
115
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2991
diff changeset
116 PT_INCLUDES := pt.h pt-all.h pt-arg-list.h pt-assign.h pt-binop.h \
7800
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
117 pt-bp.h pt-cbinop.h pt-cell.h pt-check.h pt-cmd.h pt-colon.h \
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
118 pt-const.h pt-decl.h pt-except.h pt-exp.h pt-fcn-handle.h \
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
119 pt-id.h pt-idx.h pt-jump.h pt-loop.h pt-mat.h pt-misc.h \
3770
bf6116ca10eb [project @ 2001-02-02 02:21:40 by jwe]
jwe
parents: 3731
diff changeset
120 pt-pr-code.h pt-select.h pt-stmt.h pt-unop.h pt-walk.h \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
121
7258
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
122 INCLUDES := Cell.h base-list.h builtins.h c-file-ptr-stream.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
123 comment-list.h debug.h defun-dld.h defun-int.h defun.h \
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
124 dirfns.h dynamic-ld.h error.h file-io.h gl-render.h \
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
125 gripes.h help.h input.h lex.h load-path.h load-save.h ls-hdf5.h \
7258
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
126 ls-mat-ascii.h ls-mat4.h ls-mat5.h ls-oct-ascii.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
127 ls-oct-binary.h ls-utils.h mex.h mexproto.h oct-errno.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
128 oct-fstrm.h oct-hist.h oct-iostrm.h oct-map.h oct-obj.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
129 oct-prcstrm.h oct-procbuf.h oct-stdstrm.h oct-stream.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
130 zfstream.h oct-strstrm.h oct-lvalue.h oct.h octave.h ops.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
131 pager.h parse.h pr-output.h procstream.h sighandlers.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
132 siglist.h sparse-xdiv.h sparse-xpow.h symtab.h sysdep.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
133 token.h toplev.h unwind-prot.h utils.h variables.h \
ab394b6ed06d [project @ 2007-12-05 17:07:42 by jwe]
jwe
parents: 7253
diff changeset
134 version.h xdiv.h xpow.h \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
135 $(OV_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
136 $(PT_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
137 $(OV_SPARSE_INCLUDES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
138
7336
745a8299c2b5 [project @ 2007-12-28 20:56:55 by jwe]
jwe
parents: 7258
diff changeset
139 TI_XSRC := Array-os.cc Array-tc.cc
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
140
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
141 TI_SRC := $(addprefix TEMPLATE-INST/, $(TI_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
142
5075
b6a9f78f60e9 [project @ 2004-11-10 03:13:26 by jwe]
jwe
parents: 4960
diff changeset
143 INTTYPE_OP_XSRC := op-int-concat.cc op-int-conv.cc op-double-conv.cc \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
144 op-i8-i8.cc op-i16-i16.cc op-i32-i32.cc op-i64-i64.cc \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
145 op-ui8-ui8.cc op-ui16-ui16.cc op-ui32-ui32.cc op-ui64-ui64.cc
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
146
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
147 SPARSE_OP_XSRC := op-bm-sbm.cc op-b-sbm.cc op-cm-scm.cc op-cm-sm.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
148 op-cs-scm.cc op-cs-sm.cc op-m-scm.cc op-m-sm.cc op-sbm-b.cc \
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
149 op-sbm-bm.cc op-sbm-sbm.cc op-scm-cm.cc op-scm-cs.cc op-scm-m.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
150 op-scm-s.cc op-scm-scm.cc op-scm-sm.cc op-sm-cm.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
151 op-sm-cs.cc op-sm-m.cc op-sm-s.cc op-sm-scm.cc op-sm-sm.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
152 op-s-scm.cc op-s-sm.cc
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
153
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
154 DOUBLE_OP_XSRC := op-cm-cm.cc op-cm-cs.cc op-cm-m.cc \
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3927
diff changeset
155 op-cm-s.cc op-cs-cm.cc op-cs-cs.cc op-cs-m.cc \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
156 op-cs-s.cc op-m-cm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
157 op-m-cs.cc op-m-m.cc op-m-s.cc op-s-cm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
158 op-s-cs.cc op-s-m.cc op-s-s.cc
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
159
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
160 FLOAT_OP_XSRC := op-fcm-fcm.cc op-fcm-fcs.cc op-fcm-fm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
161 op-fcm-fs.cc op-fcs-fcm.cc op-fcs-fcs.cc op-fcs-fm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
162 op-fcs-fs.cc op-fm-fcm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
163 op-fm-fcs.cc op-fm-fm.cc op-fm-fs.cc op-fs-fcm.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
164 op-fs-fcs.cc op-fs-fm.cc op-fs-fs.cc
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
165
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
166 OP_XSRC := op-b-b.cc op-b-bm.cc op-bm-b.cc op-bm-bm.cc op-cell.cc \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
167 op-chm.cc op-class.cc op-list.cc op-range.cc op-str-m.cc \
7885
f336dd8e96d0 eliminate streamoff type
John W. Eaton <jwe@octave.org>
parents: 7874
diff changeset
168 op-str-s.cc op-str-str.cc op-struct.cc \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
169 $(DOUBLE_OP_XSRC) $(FLOAT_OP_XSRC) $(INTTYPE_OP_XSRC) \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
170 $(SPARSE_OP_XSRC)
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
171
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
172 OP_SRC := $(addprefix OPERATORS/, $(OP_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
173
4960
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
174 OP_INCLUDES := OPERATORS/op-int.h
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
175
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
176 OV_INTTYPE_SRC := \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
177 ov-int8.cc ov-int16.cc ov-int32.cc ov-int64.cc \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
178 ov-uint8.cc ov-uint16.cc ov-uint32.cc ov-uint64.cc
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
179
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
180 OV_SPARSE_SRC := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
181 ov-base-sparse.cc ov-bool-sparse.cc ov-cx-sparse.cc ov-re-sparse.cc
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
182
5113
cd9a8ae4e6d4 [project @ 2005-01-21 03:32:09 by jwe]
jwe
parents: 5103
diff changeset
183 OV_SRC := ov-base.cc ov-ch-mat.cc \
3977
95663a3a2682 [project @ 2002-07-05 17:43:37 by jwe]
jwe
parents: 3931
diff changeset
184 ov-cs-list.cc ov-list.cc ov-re-mat.cc ov-cx-mat.cc \
4643
ef3a14fb6847 [project @ 2003-11-22 12:25:44 by jwe]
jwe
parents: 4633
diff changeset
185 ov-range.cc ov-scalar.cc ov-complex.cc ov-str-mat.cc \
7885
f336dd8e96d0 eliminate streamoff type
John W. Eaton <jwe@octave.org>
parents: 7874
diff changeset
186 ov-struct.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
187 ov-colon.cc ov-bool-mat.cc ov-bool.cc ov-cell.cc \
7503
8c32f95c2639 convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents: 7466
diff changeset
188 ov.cc ov-fcn.cc ov-builtin.cc ov-dld-fcn.cc \
5864
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
189 ov-mex-fcn.cc ov-usr-fcn.cc ov-fcn-handle.cc ov-fcn-inline.cc \
7336
745a8299c2b5 [project @ 2007-12-28 20:56:55 by jwe]
jwe
parents: 7258
diff changeset
190 ov-class.cc ov-typeinfo.cc \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7788
diff changeset
191 ov-flt-re-mat.cc ov-flt-cx-mat.cc ov-float.cc ov-flt-complex.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
192 $(OV_INTTYPE_SRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
193 $(OV_SPARSE_SRC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
194
4342
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
195 PT_SRC := pt.cc pt-arg-list.cc pt-assign.cc pt-bp.cc pt-binop.cc \
7800
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
196 pt-cbinop.cc pt-cell.cc pt-check.cc pt-cmd.cc pt-colon.cc \
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
197 pt-const.cc pt-decl.cc pt-except.cc pt-exp.cc pt-fcn-handle.cc \
5861b95e9879 support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
198 pt-id.cc pt-idx.cc pt-jump.cc pt-loop.cc pt-mat.cc pt-misc.cc \
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
199 pt-pr-code.cc pt-select.cc pt-stmt.cc pt-unop.cc
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
200
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4901
diff changeset
201 DIST_SRC := Cell.cc bitfcns.cc c-file-ptr-stream.cc comment-list.cc \
4120
29f648e1cd46 [project @ 2002-10-23 02:12:50 by jwe]
jwe
parents: 4119
diff changeset
202 cutils.c data.cc debug.cc defaults.cc defun.cc dirfns.cc \
7905
bcacdcc726f7 Allow octave compilation without FLTK/OpenGL
John W. Eaton <jwe@octave.org>
parents: 7885
diff changeset
203 dynamic-ld.cc error.cc file-io.cc $(GL_RENDER_SRC) graphics.cc \
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
204 gripes.cc help.cc input.cc lex.l load-path.cc load-save.cc \
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
205 ls-hdf5.cc ls-mat-ascii.cc ls-mat4.cc ls-mat5.cc ls-oct-ascii.cc \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
206 ls-oct-binary.cc ls-utils.cc main.c mappers.cc matherr.c \
5864
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
207 mex.cc oct-fstrm.cc oct-hist.cc oct-iostrm.cc oct-map.cc \
5654
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
208 oct-obj.cc oct-prcstrm.cc oct-procbuf.cc oct-stream.cc \
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
209 octave.cc zfstream.cc oct-strstrm.cc oct-lvalue.cc pager.cc \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
210 parse.y pr-output.cc procstream.cc sighandlers.cc \
6111
ed81d74118bb [project @ 2006-10-27 02:43:23 by jwe]
jwe
parents: 6087
diff changeset
211 siglist.c sparse-xdiv.cc sparse-xpow.cc strfns.cc \
7336
745a8299c2b5 [project @ 2007-12-28 20:56:55 by jwe]
jwe
parents: 7258
diff changeset
212 syscalls.cc symtab.cc sysdep.cc token.cc toplev.cc \
6111
ed81d74118bb [project @ 2006-10-27 02:43:23 by jwe]
jwe
parents: 6087
diff changeset
213 unwind-prot.cc utils.cc variables.cc xdiv.cc xpow.cc \
3546
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
214 $(OV_SRC) \
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
215 $(PT_SRC)
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
216
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
217 SOURCES := $(DIST_SRC) $(OP_SRC) $(TI_SRC)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
218
6874
94bda6abc224 [project @ 2007-09-06 21:34:24 by jwe]
jwe
parents: 6868
diff changeset
219 BUILT_EXTRAS := graphics.h mxarray.h
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
220
7946
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
221 EXTRAS := ov-base-int.cc ov-base-mat.cc ov-base-scalar.cc graphics-props.cc
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
222
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
223 EXTRA_OBJECTS := oct-errno.o octave.o builtins.o ops.o
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
224
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
225 INCLUDES_FOR_INSTALL := $(INCLUDES) $(EXTRAS) $(BUILT_EXTRAS)
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
226
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
227 OBJECTS_4 := $(notdir $(SOURCES))
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
228 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
229 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
230 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
231 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1)) $(EXTRA_OBJECTS)
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
232
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
233 ifeq ($(SHARED_LIBS), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
234 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
235 PICOBJ := $(addprefix pic/, $(OBJECTS))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
236 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
237 PICOBJ := $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
238 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
239 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
240
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
241 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
242
6011
d3112590883f [project @ 2006-09-29 18:20:08 by jwe]
jwe
parents: 6006
diff changeset
243 DEP_5 := $(SOURCES) $(DLD_SRC) builtins.cc oct-errno.cc ops.cc main.c
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
244 DEP_4 := $(notdir $(DEP_5))
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
245 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
246 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
247 DEP_1 := $(patsubst %.c, %.d, $(DEP_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
248 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
249
3233
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
250 # Some stupid egreps don't like empty elements in alternation patterns,
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
251 # so we have to repeat ourselves because some stupid egreps don't like
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
252 # empty elements in alternation patterns.
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
253
7503
8c32f95c2639 convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents: 7466
diff changeset
254 DEFUN_PATTERN = "^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT)[ \t]*\\("
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
255
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
256 DLD_DEF_FILES_1 := $(patsubst %.l, %.df, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
257 DLD_DEF_FILES := $(patsubst %.cc, %.df, $(DLD_DEF_FILES_1))
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
258
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
259 DEF_4 := $(addprefix $(srcdir)/, $(SOURCES))
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
260 DEF_3 := $(notdir $(shell egrep -l $(DEFUN_PATTERN) $(DEF_4)))
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
261 DEF_2 := $(patsubst %.y, %.df, $(DEF_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
262 DEF_1 := $(patsubst %.l, %.df, $(DEF_2))
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
263 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1)) $(DLD_DEF_FILES)
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
264
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
265 DOC_FILES := $(sort $(DEF_FILES))
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
266
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
267 OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
268 -L$(TOPDIR)/src $(RLD_FLAG)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
269
5333
ac8d64b9e76a [project @ 2005-05-02 18:15:20 by jwe]
jwe
parents: 5330
diff changeset
270 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
271 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
272 $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
7253
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7177
diff changeset
273 $(LIBPLPLOT) $(LIBGLOB)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
274 else
6823
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6797
diff changeset
275 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) $(QHULL_LIBS) \
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
276 $(GLPK_LIBS) $(MAGICK_LIBS) $(REGEX_LIBS) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
7253
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7177
diff changeset
277 $(LIBPLPLOT) $(LIBGLOB)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
278 endif
4038
243f50d6f3d5 [project @ 2002-08-14 19:31:19 by jwe]
jwe
parents: 4016
diff changeset
279
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
280 OCTINTERP_LINK_DEPS = \
7914
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
281 -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS) \
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
282 $(OPENGL_LIBS)
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
283
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
284 OCT_LINK_DEPS = \
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
285 -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \
5455
ec44bd0917fe [project @ 2005-09-19 16:07:56 by jwe]
jwe
parents: 5451
diff changeset
286 -L. $(LIBOCTINTERP) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6011
diff changeset
287 $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5582
diff changeset
288 $(FFTW_LIBS) $(LIBS) $(FLIBS)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
289
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
290 BUILT_DISTFILES = DOCSTRINGS oct-gperf.h parse.cc lex.cc y.tab.h \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
291 $(OPT_HANDLERS) $(BUILT_EXTRAS)
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
292
6909
fc55a5e1760b [project @ 2007-09-17 20:47:40 by jwe]
jwe
parents: 6876
diff changeset
293 DISTFILES = Makefile.in ChangeLog genprops.awk mkdefs mkops mkgendoc \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
294 mkbuiltins mk-errno-list mk-pkg-add \
6874
94bda6abc224 [project @ 2007-09-06 21:34:24 by jwe]
jwe
parents: 6868
diff changeset
295 defaults.h.in graphics.h.in mxarray.h.in oct-conf.h.in \
94bda6abc224 [project @ 2007-09-06 21:34:24 by jwe]
jwe
parents: 6868
diff changeset
296 oct-errno.cc.in octave.gperf \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
297 $(INCLUDES) $(DIST_SRC) $(EXTRAS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
298
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
299 all: octave$(EXEEXT) $(OCT_FILES) PKG_ADD DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
300 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
301
3613
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
302 objects: $(OBJECTS)
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
303
7358
6a0d7b8159a0 [project @ 2008-01-10 22:38:05 by jwe]
jwe
parents: 7336
diff changeset
304 lex.o parse.o pic/lex.o pic/parse.o: \
5761
f78d64fbe590 [project @ 2006-04-14 04:47:21 by jwe]
jwe
parents: 5760
diff changeset
305 ALL_CXXFLAGS := $(filter-out -Wold-style-cast, $(ALL_CXXFLAGS))
5760
8d7162924bd3 [project @ 2006-04-14 04:01:37 by jwe]
jwe
parents: 5739
diff changeset
306
6080
40ab35ab651c [project @ 2006-10-25 03:26:36 by jwe]
jwe
parents: 6051
diff changeset
307 $(DLD_PICOBJ): \
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6111
diff changeset
308 ALL_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(ALL_CXXFLAGS))
6080
40ab35ab651c [project @ 2006-10-25 03:26:36 by jwe]
jwe
parents: 6051
diff changeset
309
7914
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
310 fltk_backend.o pic/fltk_backend.o: \
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
311 ALL_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(ALL_CXXFLAGS) $(GRAPHICS_CFLAGS))
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
312
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
313 XERBLA = ../libcruft/blas-xtra/xerbla.o
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
314 ifdef FPICFLAG
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
315 PIC_XERBLA = ../libcruft/blas-xtra/pic/xerbla.o
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
316 else
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
317 PIC_XERBLA = $(XERBLA)
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
318 endif
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
319
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
320 ifeq ($(SHARED_LIBS), true)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
321 ifeq ($(STATIC_LIBS), true)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
322 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) $(LIBPRE)octinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
323 else
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
324 LIBRARIES = $(LIBPRE)octinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
325 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
326 else
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
327 ifeq ($(STATIC_LIBS), true)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
328 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
329 else
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
330 ## This is not going to work, but hey, you asked for it...
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
331 LIBRARIES =
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
332 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
333 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
334
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
335 libraries: $(LIBRARIES)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
336 .PHONY: libraries
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
337
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
338 $(LIBPRE)octinterp.$(LIBEXT): $(OBJECTS) $(XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
339 rm -f $@
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3770
diff changeset
340 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
341 $(RANLIB) $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
342
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
343 $(LIBPRE)octinterp.$(SHLEXT_VER): $(LIBPRE)octinterp.$(SHLEXT)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
344 rm -f $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
345 $(LN_S) $< $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
346
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
347 $(LIBPRE)octinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
348 rm -f $@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
349 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
350
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
351 octave$(EXEEXT): $(LIBRARIES) main.o $(DLD_STATIC_OBJ)
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3695
diff changeset
352 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
353 $(ALL_LDFLAGS) -o $@ \
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
354 main.o $(DLD_STATIC_OBJ) \
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
355 $(OCTAVE_LFLAGS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
356 $(OCTAVE_LIBS) \
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6011
diff changeset
357 $(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5582
diff changeset
358 $(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7800
diff changeset
359 $(FFTW_LIBS) $(OPENGL_LIBS) $(LIBS) $(FLIBS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
360
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
361 stmp-pic: pic
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
362 @if [ -f stmp-pic ]; then \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
363 true; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
364 else \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
365 echo "touch stmp-pic"; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
366 touch stmp-pic; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
367 fi
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
368
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
369 pic:
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
370 @if [ -d pic ]; then \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
371 true; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
372 else \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
373 echo "mkdir pic"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
374 mkdir pic; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
375 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
376
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
377 $(PICOBJ): stmp-pic
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
378
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
379 builtins.cc: $(DEF_FILES) mkbuiltins
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
380 @echo making $@
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
381 @echo DEF_FILES = $(DEF_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
382 @echo $(DEF_FILES) > def-files
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
383 @$(srcdir)/mkbuiltins def-files > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
384 @mv $@-t $@
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
385
7946
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
386 ## FIXME -- maybe genprops.awk should write both output files?
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
387 ## Or maybe there should be separate commands to generate each file?
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
388 graphics.h graphics-props.cc: graphics.h.in genprops.awk
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
389 @echo making graphics.h and graphics-props.cc
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
390 @$(AWK) -f $(srcdir)/genprops.awk $< > graphics.h-t
ebe275f82bd5 src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents: 7938
diff changeset
391 @mv graphics.h-t graphics.h
6874
94bda6abc224 [project @ 2007-09-06 21:34:24 by jwe]
jwe
parents: 6868
diff changeset
392
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
393 PKG_ADD: $(DLD_DEF_FILES)
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
394 $(srcdir)/mk-pkg-add $(DLD_DEF_FILES) > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
395 @mv $@-t $@
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
396
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
397 DOCSTRINGS: gendoc$(BUILD_EXEEXT)
6519
edadfd12ce53 [project @ 2007-04-11 21:26:13 by jwe]
jwe
parents: 6467
diff changeset
398 @echo making $@
edadfd12ce53 [project @ 2007-04-11 21:26:13 by jwe]
jwe
parents: 6467
diff changeset
399 @./gendoc > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
400 @mv $@-t $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
401
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
402 doc-files: $(DOC_FILES)
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
403 @echo making $@
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
404 @echo DOC_FILES = $(DOC_FILES)
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
405 @echo $(DOC_FILES) > $@-t
6519
edadfd12ce53 [project @ 2007-04-11 21:26:13 by jwe]
jwe
parents: 6467
diff changeset
406 mv $@-t $@
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
407
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
408 gendoc.cc: doc-files mkgendoc
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
409 @echo making $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
410 @$(srcdir)/mkgendoc doc-files > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
411 @mv $@-t $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
412
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
413 gendoc$(BUILD_EXEEXT): gendoc.cc
4299
02fcb550f20c [project @ 2003-01-16 20:15:14 by jwe]
jwe
parents: 4276
diff changeset
414 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS)
3363
9db3ff0b6913 [project @ 1999-11-19 21:57:35 by jwe]
jwe
parents: 3351
diff changeset
415
2944
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
416 ops.cc: $(OP_SRC) mkops
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
417 @echo making $@ from $(OP_SRC)
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
418 @$(srcdir)/mkops $(OP_SRC) > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
419 @mv $@-t $@
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
420
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
421 PREREQ := defaults.h graphics.h oct-conf.h oct-errno.cc oct-gperf.h parse.cc lex.cc
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
422
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
423 $(DEF_FILES): $(OPT_INC) mkdefs
4619
1088ded853f2 [project @ 2003-11-15 02:21:39 by jwe]
jwe
parents: 4606
diff changeset
424
7466
49d462292af4 omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents: 7455
diff changeset
425 ifndef omit_deps
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
426 $(MAKEDEPS): $(OPT_INC) $(OPT_HANDLERS) $(PREREQ)
7466
49d462292af4 omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents: 7455
diff changeset
427 endif
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
428
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
429 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
430 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
431
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
432 install: install-bin install-oct install-lib install-inc
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
433 .PHONY: install
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
434
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
435 install-strip:
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
436 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
437 .PHONY: install-strip
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
438
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
439 install-bin:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
440 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
441 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
442 $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
443 cd $(DESTDIR)$(bindir) ; $(LN_S) octave-$(version)$(EXEEXT) octave$(EXEEXT)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
444 .PHONY: install-bin
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
445
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
446 install-oct:
5244
a34c3c5c37cf [project @ 2005-03-25 03:29:52 by jwe]
jwe
parents: 5235
diff changeset
447 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octfiledir)
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
448 $(INSTALL_DATA) PKG_ADD $(DESTDIR)$(octfiledir)/PKG_ADD
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
449 if [ -n "$(OCT_FILES)" ]; then \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
450 xfiles="$(OCT_FILES)"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
451 for f in $$xfiles; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
452 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
453 done; \
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
454 fi
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
455 .PHONY: install-oct
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
456
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
457 install-lib:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
458 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
459 if $(STATIC_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
460 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
461 $(INSTALL_DATA) $(LIBPRE)octinterp.$(LIBEXT) \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
462 $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
463 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
464 fi
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
465 if $(SHARED_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
466 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLEXT_VER); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
467 $(INSTALL) $(LIBPRE)octinterp.$(SHLLIB) \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
468 $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB_VER); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
469 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
470 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(LIBPRE)octinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB)); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
471 if test x$(SHLBIN) != x ; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
472 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
473 $(INSTALL_PROGRAM) \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
474 $(LIBPRE)octinterp.$(SHLBIN) $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
475 fi; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
476 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
477 .PHONY: install-lib
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
478
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
479 install-inc:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
480 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
481 for f in $(INCLUDES_FOR_INSTALL); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
482 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
6686
2aad75fcc93a [project @ 2007-06-03 20:58:28 by dbateman]
dbateman
parents: 6654
diff changeset
483 if [ -f $$f ]; then \
2aad75fcc93a [project @ 2007-06-03 20:58:28 by dbateman]
dbateman
parents: 6654
diff changeset
484 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f; \
2aad75fcc93a [project @ 2007-06-03 20:58:28 by dbateman]
dbateman
parents: 6654
diff changeset
485 else \
2aad75fcc93a [project @ 2007-06-03 20:58:28 by dbateman]
dbateman
parents: 6654
diff changeset
486 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \
2aad75fcc93a [project @ 2007-06-03 20:58:28 by dbateman]
dbateman
parents: 6654
diff changeset
487 fi ; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
488 done
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
489 for f in defaults.h oct-conf.h oct-gperf.h; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
490 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
491 if [ -f $$f ]; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
492 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
493 else \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
494 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
495 fi ; \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
496 done
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
497 .PHONY: install-inc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
498
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
499 uninstall:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
500 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
501 rm -f $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
502 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
503 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
504 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB_VER)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
505 if test x$(SHLBIN) != x ; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
506 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
507 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN_VER); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
508 fi
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
509 for f in $(INCLUDES_FOR_INSTALL) defaults.h oct-conf.h oct-gperf.h; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
510 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
511 done
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
512 if [ -n "$(OCT_FILES)" ]; then \
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
513 xfiles="$(OCT_FILES)"; \
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
514 for f in $$xfiles; do \
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
515 rm -f $(DESTDIR)$(octfiledir)/$$f; \
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
516 done; \
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
517 fi
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
518 rm -f $(DESTDIR)$(octfiledir)/PKG_ADD
6654
3390577e4e70 [project @ 2007-05-22 16:33:05 by jwe]
jwe
parents: 6608
diff changeset
519 -rmdir $(DESTDIR)$(octincludedir)/octave
3390577e4e70 [project @ 2007-05-22 16:33:05 by jwe]
jwe
parents: 6608
diff changeset
520 -rmdir $(DESTDIR)$(octincludedir)
3390577e4e70 [project @ 2007-05-22 16:33:05 by jwe]
jwe
parents: 6608
diff changeset
521 -rmdir $(DESTDIR)$(octlibdir)
3390577e4e70 [project @ 2007-05-22 16:33:05 by jwe]
jwe
parents: 6608
diff changeset
522 -rmdir $(DESTDIR)$(octfiledir)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
523 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
524
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
525 tags: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
526 ctags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
527
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
528 TAGS: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
529 etags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
530
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
531 clean:
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
532 rm -f $(LIBPRE)octinterp.$(LIBEXT)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
533 rm -f $(LIBPRE)octinterp.$(SHLEXT_VER) $(LIBPRE)octinterp.$(SHLEXT)
5866
f9ac7ebf0e19 [project @ 2006-06-28 16:05:22 by jwe]
jwe
parents: 5864
diff changeset
534 rm -f $(OBJECTS) $(DLD_OBJ) $(MAKEDEPS) $(DOC_FILES) $(OCT_FILES)
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
535 rm -f $(PICOBJ) $(DLD_PICOBJ) stmp-pic gendoc$(EXEEXT)
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
536 rm -f builtins.cc ops.cc defaults.h oct-conf.h def-files
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
537 rm -f PKG_ADD
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
538 -rmdir pic
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
539 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
540
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
541 mostlyclean: clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
542 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
543
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
544 distclean: clean
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
545 rm -f Makefile octave$(EXEEXT) .fname so_locations oct-errno.cc
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
546 rm -f stamp-liboctave-prereq
7363
c31e5dab4f85 [project @ 2008-01-12 08:21:57 by jwe]
jwe
parents: 7358
diff changeset
547 rm -f doc-files gendoc.cc graphics.h graphics-props.cc mxarray.h DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
548 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
549
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
550 maintainer-clean: distclean
7452
08649ddd0df1 [project @ 2008-02-06 10:40:01 by jwe]
jwe
parents: 7449
diff changeset
551 rm -f tags TAGS y.tab.h y.output yy.lex.c lex.cc parse.cc
7358
6a0d7b8159a0 [project @ 2008-01-10 22:38:05 by jwe]
jwe
parents: 7336
diff changeset
552 rm -f oct-gperf.h $(OPT_HANDLERS)
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
553 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
554
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
555 dist: parse.cc lex.cc oct-gperf.h
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
556 ln $(addprefix $(srcdir)/, $(DISTFILES)) ../`cat ../.fname`/src
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6702
diff changeset
557 ln $(BUILT_DISTFILES) ../`cat ../.fname`/src
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
558 for f in DLD-FUNCTIONS OPERATORS TEMPLATE-INST; do \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
559 if [ -d ../`cat ../.fname`/src/$$f ]; then \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
560 true; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
561 else \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
562 mkdir ../`cat ../.fname`/src/$$f; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
563 fi; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
564 done
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
565 ln $(addprefix $(srcdir)/, $(DLD_SRC)) ../`cat ../.fname`/src/DLD-FUNCTIONS
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
566 ln $(addprefix $(srcdir)/, $(OP_SRC)) ../`cat ../.fname`/src/OPERATORS
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
567 ln $(addprefix $(srcdir)/, $(OP_INCLUDES)) ../`cat ../.fname`/src/OPERATORS
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
568 ln $(addprefix $(srcdir)/, $(TI_SRC)) ../`cat ../.fname`/src/TEMPLATE-INST
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
569 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
570 rm -f oct-gperf.h defaults.h oct-conf.h *.d *.df builtins.cc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
571 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
572
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
573 conf-dist:
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
574 ln $(addprefix $(srcdir)/, octave.cc Makefile.in) ../`cat ../.fname`/src
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
575 .PHONY: conf-dist
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
576
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
577 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
578
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
579 $(OPT_HANDLERS) : %.cc : $(top_srcdir)/liboctave/%.in $(top_srcdir)/mk-opts.pl
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
580 @echo making $@ from $<
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
581 @$(PERL) $(top_srcdir)/mk-opts.pl --opt-handler-fcns $< > $@-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
582 @mv $@-t $@
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
583
7454
d03ae525c894 [project @ 2008-02-06 20:22:14 by jwe]
jwe
parents: 7452
diff changeset
584 ## We require Bison.
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
585 parse.cc : parse.y
5296
4e753a157ed2 [project @ 2005-04-21 17:52:41 by jwe]
jwe
parents: 5290
diff changeset
586 @echo "expect 14 shift/reduce conflicts"
7454
d03ae525c894 [project @ 2008-02-06 20:22:14 by jwe]
jwe
parents: 7452
diff changeset
587 $(YACC) $(YFLAGS) --output=$@ --defines=y.tab.h $<
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
588
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
589 lex.cc : lex.l
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6137
diff changeset
590 $(LEX) $(LFLAGS) $< > $(@F)-t
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
591 @mv $(@F)-t $@
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
592
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
593
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
594 $(OPT_INC) : %.h : %.in
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
595 $(MAKE) -C $(@D) $@
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7448
diff changeset
596
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
597 ## We want to force an update of defaults.h and oct-conf.h every
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
598 ## time make is run because some values may come from the command
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
599 ## line or the environment. The substitution rules use move-if-change,
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
600 ## so this should not cause trouble if the file already exists and the
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
601 ## newly generated file is not different.
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
602
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
603 defaults.h: defaults.h.in ../Makeconf Makefile FORCE
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
604 @$(do-subst-default-vals)
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
605
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
606 oct-conf.h: oct-conf.h.in ../Makeconf Makefile FORCE
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
607 @$(do-subst-config-vals)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
608
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
609 FORCE:
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
610 .PHONY: FORCE
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
611
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
612 oct-errno.cc: oct-errno.cc.in ../Makeconf Makefile
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
613 @echo "making $@ from $<"
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
614 @if test -n "$(PERL)"; then \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
615 $(srcdir)/mk-errno-list --perl "$(PERL)" < $< > $@-t; \
5494
73a87a677257 [project @ 2005-10-14 07:29:20 by jwe]
jwe
parents: 5468
diff changeset
616 elif test -n "$(PYTHON)"; then \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
617 $(srcdir)/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
618 else \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
619 $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
620 fi
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
621 @mv $@-t $@
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
622
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
623 oct-gperf.h: octave.gperf
1903
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
624 @echo "making $@ from $<"
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
625 @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< | \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
626 $(SED) 's,lookup\[,gperf_lookup[,' > $@-t \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
627 || (rm -f $@-t; exit 1)
7446
4bfbec4b0e24 [project @ 2008-02-04 21:17:18 by jwe]
jwe
parents: 7433
diff changeset
628 @mv $@-t $@
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
629
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
630 __magick_read__.d: CPPFLAGS += $(MAGICK_INCFLAGS)
7947
c2d50b69b19f src/Makefile.in (__magick_read__.df): Append MAGICK_INCFLAGS to CPPFLAGS
John W. Eaton <jwe@octave.org>
parents: 7946
diff changeset
631 __magick_read__.df: CPPFLAGS += $(MAGICK_INCFLAGS)
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
632 __magick_read__.o pic/__magick_read__.o: CPPFLAGS += $(MAGICK_INCFLAGS)
7938
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
633 __magick_read__.oct: OCT_LINK_DEPS += $(MAGICK_LIBS)
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
634
7938
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
635 convhulln.oct: OCT_LINK_DEPS += $(QHULL_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
636 __delaunayn__.oct: OCT_LINK_DEPS += $(QHULL_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
637 __voronoi__.oct: OCT_LINK_DEPS += $(QHULL_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
638 regexp.oct: OCT_LINK_DEPS += $(REGEX_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
639 urlwrite.oct: OCT_LINK_DEPS += $(CURL_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
640 __glpk__.oct: OCT_LINK_DEPS += $(GLPK_LIBS)
bf4a04ebff21 [mq]: makefix
Jaroslav Hajek <highegg@gmail.com>
parents: 7927
diff changeset
641 fltk_backend.oct: OCT_LINK_DEPS += $(GRAPHICS_LIBS) $(FT2_LIBS)
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
642
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
643 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
644 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
645
7448
d21150a19f80 [project @ 2008-02-05 23:11:19 by jwe]
jwe
parents: 7446
diff changeset
646 ifdef omit_deps
d21150a19f80 [project @ 2008-02-05 23:11:19 by jwe]
jwe
parents: 7446
diff changeset
647 .PHONY: $(MAKEDEPS)
d21150a19f80 [project @ 2008-02-05 23:11:19 by jwe]
jwe
parents: 7446
diff changeset
648 endif
d21150a19f80 [project @ 2008-02-05 23:11:19 by jwe]
jwe
parents: 7446
diff changeset
649
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6137
diff changeset
650 -include $(MAKEDEPS)