Mercurial > hg > octave-nkf
view libinterp/corefcn/module.mk @ 20830:b65888ec820e draft default tip gccjit
dmalcom gcc jit import
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Fri, 27 Feb 2015 16:59:36 +0100 |
parents | e5f36a7854a5 |
children |
line wrap: on
line source
## Options functions for Fortran packages like LSODE, DASPK. ## These are generated automagically by configure and Perl. OPT_HANDLERS = \ libinterp/corefcn/DASPK-opts.cc \ libinterp/corefcn/DASRT-opts.cc \ libinterp/corefcn/DASSL-opts.cc \ libinterp/corefcn/LSODE-opts.cc \ libinterp/corefcn/Quad-opts.cc $(OPT_HANDLERS): libinterp/corefcn/%.cc : $(top_builddir)/liboctave/numeric/%.in $(AM_V_GEN)rm -f $@-t $@ && \ $(PERL) $(top_srcdir)/build-aux/mk-opts.pl --opt-handler-fcns $< > $@-t && \ mv $@-t $@ $(OPT_HANDLERS): $(top_srcdir)/build-aux/mk-opts.pl JIT_INC = \ libinterp/corefcn/jit-util.h \ libinterp/corefcn/jit-typeinfo.h \ libinterp/corefcn/jit-ir.h \ libinterp/corefcn/pt-jit.h TEX_PARSER_INC = \ libinterp/corefcn/oct-tex-parser.h COREFCN_INC = \ libinterp/corefcn/Cell.h \ libinterp/corefcn/c-file-ptr-stream.h \ libinterp/corefcn/cdisplay.h \ libinterp/corefcn/comment-list.h \ libinterp/corefcn/cutils.h \ libinterp/corefcn/data.h \ libinterp/corefcn/debug.h \ libinterp/corefcn/defun-dld.h \ libinterp/corefcn/defun-int.h \ libinterp/corefcn/defun.h \ libinterp/corefcn/dirfns.h \ libinterp/corefcn/display.h \ libinterp/corefcn/dynamic-ld.h \ libinterp/corefcn/error.h \ libinterp/corefcn/event-queue.h \ libinterp/corefcn/file-io.h \ libinterp/corefcn/gl-render.h \ libinterp/corefcn/gl2ps-renderer.h \ libinterp/corefcn/gripes.h \ libinterp/corefcn/help.h \ libinterp/corefcn/hook-fcn.h \ libinterp/corefcn/input.h \ libinterp/corefcn/load-path.h \ libinterp/corefcn/load-save.h \ libinterp/corefcn/ls-ascii-helper.h \ libinterp/corefcn/ls-hdf5.h \ libinterp/corefcn/ls-mat-ascii.h \ libinterp/corefcn/ls-mat4.h \ libinterp/corefcn/ls-mat5.h \ libinterp/corefcn/ls-oct-text.h \ libinterp/corefcn/ls-oct-binary.h \ libinterp/corefcn/ls-utils.h \ libinterp/corefcn/mex.h \ libinterp/corefcn/mexproto.h \ libinterp/corefcn/oct-errno.h \ libinterp/corefcn/oct-fstrm.h \ libinterp/corefcn/oct-handle.h \ libinterp/corefcn/oct-hdf5.h \ libinterp/corefcn/oct-hdf5-types.h \ libinterp/corefcn/oct-hist.h \ libinterp/corefcn/oct-iostrm.h \ libinterp/corefcn/oct-lvalue.h \ libinterp/corefcn/oct-map.h \ libinterp/corefcn/oct-obj.h \ libinterp/corefcn/oct-prcstrm.h \ libinterp/corefcn/oct-procbuf.h \ libinterp/corefcn/oct-stdstrm.h \ libinterp/corefcn/oct-stream.h \ libinterp/corefcn/oct-strstrm.h \ libinterp/corefcn/oct.h \ libinterp/corefcn/octave-default-image.h \ libinterp/corefcn/octave-link.h \ libinterp/corefcn/pager.h \ libinterp/corefcn/pr-output.h \ libinterp/corefcn/procstream.h \ libinterp/corefcn/profiler.h \ libinterp/corefcn/sighandlers.h \ libinterp/corefcn/siglist.h \ libinterp/corefcn/sparse-xdiv.h \ libinterp/corefcn/sparse-xpow.h \ libinterp/corefcn/symtab.h \ libinterp/corefcn/sysdep.h \ libinterp/corefcn/toplev.h \ libinterp/corefcn/txt-eng-ft.h \ libinterp/corefcn/txt-eng.h \ libinterp/corefcn/utils.h \ libinterp/corefcn/variables.h \ libinterp/corefcn/workspace-element.h \ libinterp/corefcn/xdiv.h \ libinterp/corefcn/xnorm.h \ libinterp/corefcn/xpow.h \ libinterp/corefcn/zfstream.h \ $(JIT_INC) \ $(TEX_PARSER_INC) JIT_SRC = \ libinterp/corefcn/jit-util.cc \ libinterp/corefcn/jit-typeinfo.cc \ libinterp/corefcn/jit-ir.cc \ libinterp/corefcn/pt-jit.cc TEX_PARSER_SRC = \ libinterp/corefcn/oct-tex-lexer.ll \ libinterp/corefcn/oct-tex-parser.yy C_COREFCN_SRC = \ libinterp/corefcn/cutils.c \ libinterp/corefcn/matherr.c \ libinterp/corefcn/siglist.c COREFCN_SRC = \ libinterp/corefcn/Cell.cc \ libinterp/corefcn/__contourc__.cc \ libinterp/corefcn/__dispatch__.cc \ libinterp/corefcn/__dsearchn__.cc \ libinterp/corefcn/__ichol__.cc \ libinterp/corefcn/__ilu__.cc \ libinterp/corefcn/__lin_interpn__.cc \ libinterp/corefcn/__pchip_deriv__.cc \ libinterp/corefcn/__qp__.cc \ libinterp/corefcn/balance.cc \ libinterp/corefcn/besselj.cc \ libinterp/corefcn/betainc.cc \ libinterp/corefcn/bitfcns.cc \ libinterp/corefcn/bsxfun.cc \ libinterp/corefcn/c-file-ptr-stream.cc \ libinterp/corefcn/cdisplay.c \ libinterp/corefcn/cellfun.cc \ libinterp/corefcn/colloc.cc \ libinterp/corefcn/comment-list.cc \ libinterp/corefcn/conv2.cc \ libinterp/corefcn/daspk.cc \ libinterp/corefcn/dasrt.cc \ libinterp/corefcn/dassl.cc \ libinterp/corefcn/data.cc \ libinterp/corefcn/debug.cc \ libinterp/corefcn/defaults.cc \ libinterp/corefcn/defun.cc \ libinterp/corefcn/det.cc \ libinterp/corefcn/dirfns.cc \ libinterp/corefcn/display.cc \ libinterp/corefcn/dlmread.cc \ libinterp/corefcn/dot.cc \ libinterp/corefcn/dynamic-ld.cc \ libinterp/corefcn/eig.cc \ libinterp/corefcn/ellipj.cc \ libinterp/corefcn/error.cc \ libinterp/corefcn/fft.cc \ libinterp/corefcn/fft2.cc \ libinterp/corefcn/fftn.cc \ libinterp/corefcn/file-io.cc \ libinterp/corefcn/filter.cc \ libinterp/corefcn/find.cc \ libinterp/corefcn/gammainc.cc \ libinterp/corefcn/gcd.cc \ libinterp/corefcn/getgrent.cc \ libinterp/corefcn/getpwent.cc \ libinterp/corefcn/getrusage.cc \ libinterp/corefcn/givens.cc \ libinterp/corefcn/gl-render.cc \ libinterp/corefcn/gl2ps-renderer.cc \ libinterp/corefcn/graphics.cc \ libinterp/corefcn/gripes.cc \ libinterp/corefcn/help.cc \ libinterp/corefcn/hess.cc \ libinterp/corefcn/hex2num.cc \ libinterp/corefcn/hook-fcn.cc \ libinterp/corefcn/input.cc \ libinterp/corefcn/inv.cc \ libinterp/corefcn/kron.cc \ libinterp/corefcn/load-path.cc \ libinterp/corefcn/load-save.cc \ libinterp/corefcn/lookup.cc \ libinterp/corefcn/ls-ascii-helper.cc \ libinterp/corefcn/ls-hdf5.cc \ libinterp/corefcn/ls-mat-ascii.cc \ libinterp/corefcn/ls-mat4.cc \ libinterp/corefcn/ls-mat5.cc \ libinterp/corefcn/ls-oct-text.cc \ libinterp/corefcn/ls-oct-binary.cc \ libinterp/corefcn/ls-utils.cc \ libinterp/corefcn/lsode.cc \ libinterp/corefcn/lu.cc \ libinterp/corefcn/luinc.cc \ libinterp/corefcn/mappers.cc \ libinterp/corefcn/matrix_type.cc \ libinterp/corefcn/max.cc \ libinterp/corefcn/md5sum.cc \ libinterp/corefcn/mex.cc \ libinterp/corefcn/mgorth.cc \ libinterp/corefcn/nproc.cc \ libinterp/corefcn/oct-fstrm.cc \ libinterp/corefcn/oct-hdf5-types.cc \ libinterp/corefcn/oct-hist.cc \ libinterp/corefcn/oct-iostrm.cc \ libinterp/corefcn/oct-lvalue.cc \ libinterp/corefcn/oct-map.cc \ libinterp/corefcn/oct-obj.cc \ libinterp/corefcn/oct-prcstrm.cc \ libinterp/corefcn/oct-procbuf.cc \ libinterp/corefcn/oct-stream.cc \ libinterp/corefcn/oct-strstrm.cc \ libinterp/corefcn/octave-link.cc \ libinterp/corefcn/ordschur.cc \ libinterp/corefcn/pager.cc \ libinterp/corefcn/pinv.cc \ libinterp/corefcn/pr-output.cc \ libinterp/corefcn/procstream.cc \ libinterp/corefcn/profiler.cc \ libinterp/corefcn/psi.cc \ libinterp/corefcn/quad.cc \ libinterp/corefcn/quadcc.cc \ libinterp/corefcn/qz.cc \ libinterp/corefcn/rand.cc \ libinterp/corefcn/rcond.cc \ libinterp/corefcn/regexp.cc \ libinterp/corefcn/schur.cc \ libinterp/corefcn/sighandlers.cc \ libinterp/corefcn/sparse-xdiv.cc \ libinterp/corefcn/sparse-xpow.cc \ libinterp/corefcn/sparse.cc \ libinterp/corefcn/spparms.cc \ libinterp/corefcn/sqrtm.cc \ libinterp/corefcn/str2double.cc \ libinterp/corefcn/strfind.cc \ libinterp/corefcn/strfns.cc \ libinterp/corefcn/sub2ind.cc \ libinterp/corefcn/svd.cc \ libinterp/corefcn/sylvester.cc \ libinterp/corefcn/symtab.cc \ libinterp/corefcn/syscalls.cc \ libinterp/corefcn/sysdep.cc \ libinterp/corefcn/time.cc \ libinterp/corefcn/toplev.cc \ libinterp/corefcn/tril.cc \ libinterp/corefcn/tsearch.cc \ libinterp/corefcn/txt-eng-ft.cc \ libinterp/corefcn/txt-eng.cc \ libinterp/corefcn/typecast.cc \ libinterp/corefcn/urlwrite.cc \ libinterp/corefcn/utils.cc \ libinterp/corefcn/variables.cc \ libinterp/corefcn/xdiv.cc \ libinterp/corefcn/xnorm.cc \ libinterp/corefcn/xpow.cc \ libinterp/corefcn/zfstream.cc \ $(JIT_SRC) \ $(C_COREFCN_SRC) COREFCN_FT2_DF = \ libinterp/corefcn/graphics.df \ libinterp/corefcn/gl-render.df \ libinterp/corefcn/toplev.df \ libinterp/corefcn/txt-eng-ft.df ## FIXME: Automake does not support per-object rules. ## These rules could be emulated by creating a new convenience ## library and using per-library rules. Or we can just live ## without the rule since there haven't been any problems. (09/18/2012) #display.df display.lo: CPPFLAGS += $(X11_FLAGS) ## Special rules for FreeType .df files so that not all .df files are built ## with FT2_CPPFLAGS, FONTCONFIG_CPPFLAGS $(COREFCN_FT2_DF) : libinterp/corefcn/%.df : libinterp/corefcn/%.cc $(GENERATED_MAKE_BUILTINS_INCS) $(AM_V_GEN)rm -f $@-t $@-t1 $@ && \ $(CXXCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(libinterp_corefcn_libcorefcn_la_CPPFLAGS) $(CPPFLAGS) \ $(libinterp_corefcn_libcorefcn_la_CXXFLAGS) $(CXXFLAGS) \ -DMAKE_BUILTINS $< > $@-t1 && \ $(srcdir)/libinterp/mkdefs $(srcdir)/libinterp $< < $@-t1 > $@-t && \ rm -f $@-t1 && \ mv $@-t $@ ## Special rules for sources which must be built before rest of compilation. ## defaults.h and graphics.h must depend on Makefile. Calling configure ## may change default/config values. However, calling configure will also ## regenerate the Makefiles from Makefile.am and trigger the rules below. libinterp/corefcn/defaults.h: libinterp/corefcn/defaults.in.h Makefile $(AM_V_GEN)$(do_subst_default_vals) libinterp/corefcn/graphics.h: libinterp/corefcn/graphics.in.h libinterp/genprops.awk Makefile $(AM_V_GEN)rm -f $@-t && \ $(AWK) -f $(srcdir)/libinterp/genprops.awk $< > $@-t && \ $(simple_move_if_change_rule) libinterp/corefcn/graphics-props.cc: libinterp/corefcn/graphics.in.h libinterp/genprops.awk Makefile $(AM_V_GEN)rm -f $@-t && \ $(AWK) -v emit_graphics_props=1 -f $(srcdir)/libinterp/genprops.awk $< > $@-t && \ $(simple_move_if_change_rule) libinterp/corefcn/oct-errno.cc: libinterp/corefcn/oct-errno.in.cc Makefile $(AM_V_GEN)rm -f $@-t && \ if test -n "$(PERL)"; then \ $(srcdir)/libinterp/mk-errno-list --perl "$(PERL)" < $< > $@-t; \ elif test -n "$(PYTHON)"; then \ $(srcdir)/libinterp/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \ else \ $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \ fi && \ $(simple_move_if_change_rule) libinterp/corefcn/mxarray.h: libinterp/corefcn/mxarray.in.h Makefile $(AM_V_GEN)rm -f $@-t && \ $(SED) < $< \ -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(<F) by Make.|" \ -e "s|%OCTAVE_IDX_TYPE%|${OCTAVE_IDX_TYPE}|" > $@-t && \ $(simple_move_if_change_rule) libinterp/corefcn/oct-tex-lexer.ll: libinterp/corefcn/oct-tex-lexer.in.ll libinterp/corefcn/oct-tex-symbols.in Makefile.am $(AM_V_GEN)rm -f $@-t && \ $(AWK) 'BEGIN { print "/* DO NOT EDIT. AUTOMATICALLY GENERATED FROM oct-tex-lexer.in.ll and oct-tex-symbols.in. */"; } /^@SYMBOL_RULES@$$/ { count = 0; while (getline < "$(srcdir)/libinterp/corefcn/oct-tex-symbols.in") { if ($$0 !~ /^#.*/ && NF == 3) { printf("\"\\\\%s\" { yylval->sym = %d; return SYM; }\n", $$1, count); count++; } } getline } ! /^@SYMBOL_RULES@$$/ { print }' $< > $@-t && \ $(simple_move_if_change_rule) libinterp/corefcn/oct-tex-symbols.cc: libinterp/corefcn/oct-tex-symbols.in Makefile.am $(AM_V_GEN)rm -f $@-t && \ $(AWK) 'BEGIN { print "// DO NOT EDIT. AUTOMATICALLY GENERATED FROM oct-tex-symbols.in."; print "static uint32_t symbol_codes[][2] = {"; count = 0; } END { print "};"; printf("static int num_symbol_codes = %d;\n", count); } !/^#/ && (NF == 3) { printf(" { %s, %s },\n", $$2, $$3); count++; }' $< > $@-t && \ $(simple_move_if_change_rule) libinterp/corefcn/txt-eng.cc: libinterp/corefcn/oct-tex-symbols.cc libinterp/corefcn/oct-tex-lexer.cc: LEX_OUTPUT_ROOT := lex.octave_tex_ libinterp/corefcn/oct-tex-parser.h: libinterp/corefcn/oct-tex-parser.yy libinterp/corefcn/oct-tex-parser.yy: libinterp/corefcn/oct-tex-parser.in.yy $(AM_V_GEN)$(call subst-bison-api-decls,octave_tex_) noinst_LTLIBRARIES += \ libinterp/corefcn/libcorefcn.la \ libinterp/corefcn/libtex_parser.la libinterp_corefcn_libcorefcn_la_SOURCES = $(COREFCN_SRC) libinterp_corefcn_libcorefcn_la_CPPFLAGS = \ $(libinterp_liboctinterp_la_CPPFLAGS) \ $(FFTW_XCPPFLAGS) \ $(FONTCONFIG_CPPFLAGS) \ $(FT2_CPPFLAGS) \ $(HDF5_CPPFLAGS) \ $(LLVM_CPPFLAGS) \ $(LIBGCCJIT_CPPFLAGS) \ $(Z_CPPFLAGS) libinterp_corefcn_libcorefcn_la_CFLAGS = $(AM_CFLAGS) $(WARN_CFLAGS) libinterp_corefcn_libcorefcn_la_CXXFLAGS = $(AM_CXXFLAGS) $(WARN_CXXFLAGS) $(LLVM_CXXFLAGS) $(LIBGCCJIT_CXXFLAGS) libinterp_corefcn_libtex_parser_la_SOURCES = $(TEX_PARSER_SRC) libinterp_corefcn_libtex_parser_la_CPPFLAGS = $(libinterp_liboctinterp_la_CPPFLAGS) libinterp_corefcn_libtex_parser_la_CXXFLAGS = \ $(filter-out -Wold-style-cast, $(libinterp_corefcn_libcorefcn_la_CXXFLAGS)) libinterp_EXTRA_DIST += \ libinterp/corefcn/defaults.in.h \ libinterp/corefcn/graphics.in.h \ libinterp/corefcn/mxarray.in.h \ libinterp/corefcn/oct-errno.in.cc \ libinterp/corefcn/oct-tex-lexer.in.ll \ libinterp/corefcn/oct-tex-parser.in.yy \ libinterp/corefcn/oct-tex-symbols.in