comparison libinterp/Makefile.am @ 15418:60090630cb76

generate declarations for all built-in DEFUN functions * mkbuiltins: New options, --source and --header. With --header, generate declarations for DEFUN functions. * libinterp/Makefile.am (builtin-defun-decls.h): New rule. (builtins.cc): Use --source option for mkbuiltins. (BUILT_SOURCES, BUILT_NODISTFILES, octinclude_HEADERS, nodist_liboctinterp_la_SOURCES): Add builtin-defun-decls.h to the list. * builtins.h: Include builtin-defun-decls.h.
author John W. Eaton <jwe@octave.org>
date Wed, 19 Sep 2012 13:24:32 -0400
parents dd371063e414
children dd086145f4a6
comparison
equal deleted inserted replaced
15417:dd371063e414 15418:60090630cb76
51 interp-core/mxarray.h \ 51 interp-core/mxarray.h \
52 interp-core/oct-errno.cc \ 52 interp-core/oct-errno.cc \
53 interpfcn/defaults.h \ 53 interpfcn/defaults.h \
54 interpfcn/graphics-props.cc \ 54 interpfcn/graphics-props.cc \
55 interpfcn/graphics.h \ 55 interpfcn/graphics.h \
56 builtin-defun-decls.h \
56 operators/ops.cc \ 57 operators/ops.cc \
57 parse-tree/lex.cc \ 58 parse-tree/lex.cc \
58 parse-tree/oct-gperf.h \ 59 parse-tree/oct-gperf.h \
59 parse-tree/oct-parse.cc \ 60 parse-tree/oct-parse.cc \
60 oct-conf.h \ 61 oct-conf.h \
71 BUILT_NODISTFILES = \ 72 BUILT_NODISTFILES = \
72 interp-core/mxarray.h \ 73 interp-core/mxarray.h \
73 interp-core/oct-errno.cc \ 74 interp-core/oct-errno.cc \
74 interpfcn/defaults.h \ 75 interpfcn/defaults.h \
75 interpfcn/graphics.h \ 76 interpfcn/graphics.h \
77 builtin-defun-decls.h \
76 operators/ops.cc \ 78 operators/ops.cc \
77 oct-conf.h \ 79 oct-conf.h \
78 version.h \ 80 version.h \
79 $(OPT_HANDLERS) \ 81 $(OPT_HANDLERS) \
80 $(OPT_INC) \ 82 $(OPT_INC) \
98 100
99 octinclude_HEADERS = \ 101 octinclude_HEADERS = \
100 interpfcn/graphics-props.cc \ 102 interpfcn/graphics-props.cc \
101 parse-tree/oct-gperf.h \ 103 parse-tree/oct-gperf.h \
102 builtins.h \ 104 builtins.h \
105 builtin-defun-decls.h \
103 octave.h \ 106 octave.h \
104 $(OCTAVE_VALUE_INC) \ 107 $(OCTAVE_VALUE_INC) \
105 $(PARSE_TREE_INC) \ 108 $(PARSE_TREE_INC) \
106 $(OPERATORS_INC) \ 109 $(OPERATORS_INC) \
107 $(INTERP_CORE_INC) \ 110 $(INTERP_CORE_INC) \
155 interp-core/mxarray.h \ 158 interp-core/mxarray.h \
156 interp-core/oct-errno.cc \ 159 interp-core/oct-errno.cc \
157 interpfcn/defaults.h \ 160 interpfcn/defaults.h \
158 interpfcn/graphics.h \ 161 interpfcn/graphics.h \
159 operators/ops.cc \ 162 operators/ops.cc \
163 builtin-defun-decls.h \
160 builtins.cc \ 164 builtins.cc \
161 oct-conf.h \ 165 oct-conf.h \
162 version.h \ 166 version.h \
163 $(OPT_INC) 167 $(OPT_INC)
164 168
244 -e "s|%OCTAVE_RELEASE_DATE%|\"${OCTAVE_RELEASE_DATE}\"|" \ 248 -e "s|%OCTAVE_RELEASE_DATE%|\"${OCTAVE_RELEASE_DATE}\"|" \
245 -e "s|%OCTAVE_VERSION%|\"${OCTAVE_VERSION}\"|" > $@-t 249 -e "s|%OCTAVE_VERSION%|\"${OCTAVE_VERSION}\"|" > $@-t
246 mv $@-t $@ 250 mv $@-t $@
247 251
248 builtins.cc: $(DEF_FILES) mkbuiltins 252 builtins.cc: $(DEF_FILES) mkbuiltins
249 $(srcdir)/mkbuiltins $(DEF_FILES) > $@-t 253 $(srcdir)/mkbuiltins --source $(DEF_FILES) > $@-t
254 mv $@-t $@
255
256 builtin-defun-decls.h: $(SRC_DEF_FILES) mkbuiltins
257 $(srcdir)/mkbuiltins --header $(SRC_DEF_FILES) > $@-t
250 mv $@-t $@ 258 mv $@-t $@
251 259
252 if AMCOND_ENABLE_DYNAMIC_LINKING 260 if AMCOND_ENABLE_DYNAMIC_LINKING
253 DLDFCN_PKG_ADD_FILE = dldfcn/PKG_ADD 261 DLDFCN_PKG_ADD_FILE = dldfcn/PKG_ADD
254 262