comparison Makefile.am @ 21975:562eb526d0e9

merge build-aux/common.mk with Makefile.am * build-aux/common.mk: Merge contents with Makefile.am. Delete unused file.
author John W. Eaton <jwe@octave.org>
date Fri, 24 Jun 2016 10:44:35 -0400
parents cfead9fdb968
children f6e119d0bdfd
comparison
equal deleted inserted replaced
21974:3c3995706dbe 21975:562eb526d0e9
16 # 16 #
17 # You should have received a copy of the GNU General Public License 17 # You should have received a copy of the GNU General Public License
18 # along with Octave; see the file COPYING. If not, see 18 # along with Octave; see the file COPYING. If not, see
19 # <http://www.gnu.org/licenses/>. 19 # <http://www.gnu.org/licenses/>.
20 20
21 include build-aux/common.mk 21 # This Makefile requires GNU Make features.
22
23 export AWK
24 export GREP
25 export FIND
26 export SED
27 export SHELL
28 export PERL
29
30 version := ${OCTAVE_VERSION}
31 api_version := ${OCTAVE_API_VERSION}
32
33 ## AM_LIBTOOLFLAGS = --silent
34
35 AM_LFLAGS = @LFLAGS@
36
37 AM_YFLAGS = -dv
38
39 # Fortran compiler flags.
40
41 AM_FFLAGS = @FFLAGS@
42
43 # C compiler flags.
44
45 AM_CFLAGS = ${XTRA_CFLAGS}
46
47 # ifeq (${INCLUDE_DEPS},no)
48 # omit_deps = true;
49 # endif
50
51 # C++ compiler flags.
52
53 AM_CXXFLAGS = ${XTRA_CXXFLAGS}
54
55 FFTW_XCPPFLAGS = @FFTW_XCPPFLAGS@
56 FFTW_XLDFLAGS = @FFTW_XLDFLAGS@
57 FFTW_XLIBS = @FFTW_XLIBS@
58
59 SPARSE_XCPPFLAGS = @SPARSE_XCPPFLAGS@
60 SPARSE_XLDFLAGS = @SPARSE_XLDFLAGS@
61 SPARSE_XLIBS = @SPARSE_XLIBS@
62
63 GNULIB_LINK_DEPS = @GNULIB_LINK_DEPS@
64
65 LIBOCTAVE_LINK_DEPS = @LIBOCTAVE_LINK_DEPS@
66 LIBOCTAVE_LINK_OPTS = @LIBOCTAVE_LINK_OPTS@
67
68 LIBOCTINTERP_LINK_DEPS = @LIBOCTINTERP_LINK_DEPS@
69 LIBOCTINTERP_LINK_OPTS = @LIBOCTINTERP_LINK_OPTS@
70
71 OCTAVE_LINK_DEPS = @OCTAVE_LINK_DEPS@
72 OCTAVE_LINK_OPTS = @OCTAVE_LINK_OPTS@
73
74 OCT_LINK_DEPS = @OCT_LINK_DEPS@
75 OCT_LINK_OPTS = @OCT_LINK_OPTS@
76
77 LIBOCTGUI_LINK_DEPS = @LIBOCTGUI_LINK_DEPS@
78 LIBOCTGUI_LINK_OPTS = @LIBOCTGUI_LINK_OPTS@
79
80 OCTAVE_GUI_LINK_DEPS = @OCTAVE_GUI_LINK_DEPS@
81 OCTAVE_GUI_LINK_OPTS = @OCTAVE_GUI_LINK_OPTS@
82
83 # The arguments passed to configure.
84
85 CONFIG_SUBDIRS = @subdirs@
86
87 null =
88 ldpreloadsep = ${null}@ldpreloadsep@${null}
22 89
23 image_DATA = 90 image_DATA =
24 octdata_DATA = 91 octdata_DATA =
25 octetc_DATA = 92 octetc_DATA =
26 octlocale_DATA = 93 octlocale_DATA =
370 437
371 distclean-local: 438 distclean-local:
372 439
373 maintainer-clean-local: doc-maintainer-clean 440 maintainer-clean-local: doc-maintainer-clean
374 441
442 define move_if_change_rule
443 if [ -s $(1) ]; then \
444 ${SHELL} ${top_srcdir}/build-aux/move-if-change $(1) $(2); \
445 else \
446 echo "$(1) is empty!" 1>&2; \
447 rm -f $(1); \
448 exit 1; \
449 fi
450 endef
451
452 define simple_move_if_change_rule
453 $(call move_if_change_rule,$@-t,$@)
454 endef
455
456 define cp_update_rule
457 if [ "x${srcdir}" != "x." ] && [ -f ${srcdir}/$@ ] && [ ! -f $@ ]; then \
458 cp ${srcdir}/$@ $@; \
459 touch -r ${srcdir}/$@ $@; \
460 fi
461 endef
462
463 define simple-filter-rule
464 rm -f $@-t $@ && \
465 ${SHELL} $(1) < $< > $@-t && \
466 mv $@-t $@
467 endef
468
469 define subst-bison-api-decls
470 case "${BISON_API_PREFIX_DECL_STYLE}" in \
471 *api*) \
472 case "${BISON_API_PREFIX_DECL_STYLE}" in \
473 *brace*) \
474 api_prefix_decl='%define api.prefix {$(1)}'; ;; \
475 *) \
476 api_prefix_decl='%define api.prefix "$(1)"'; ;; \
477 esac; \
478 ;; \
479 *name*) \
480 case "${BISON_API_PREFIX_DECL_STYLE}" in \
481 *brace*) \
482 api_prefix_decl='%name-prefix {$(1)}'; ;; \
483 *) \
484 api_prefix_decl='%name-prefix="$(1)"'; ;; \
485 esac; \
486 ;; \
487 esac; \
488 case "${BISON_PUSH_PULL_DECL_STYLE}" in \
489 *quote*) quote='"' ;; \
490 *) quote="" ;; \
491 esac; \
492 case "${BISON_PUSH_PULL_DECL_STYLE}" in \
493 *dash*) push_pull_decl="%define api.push-pull $${quote}both$${quote}"; ;; \
494 *underscore*) push_pull_decl="%define api.push_pull $${quote}both$${quote}"; ;; \
495 esac; \
496 ${SED} -e "s/%PUSH_PULL_DECL%/$$push_pull_decl/" \
497 -e "s/%API_PREFIX_DECL%/$$api_prefix_decl/" $< > $@-t && \
498 mv $@-t $@
499 endef
500
501 define gdbinit_install_rule
502 if [ -f $@ ]; then \
503 echo "refusing to overwrite $@ with newer version from $<" 1>&2; \
504 else \
505 echo "Installing $@ from version at $<" ; \
506 cp $< $@; \
507 fi
508 endef
509
510 define test-file-commands
511 rm -f $@-t $@ && \
512 ( echo "## DO NOT EDIT! Generated automatically from $(<F) by Make."; \
513 $(GREP) '^%!' $< \
514 ) > $@-t && \
515 mv $@-t $@
516 endef
517
518 %.cc-tst : %.cc
519 $(AM_V_GEN)$(test-file-commands)
520
521 %.yy-tst : %.yy
522 $(AM_V_GEN)$(test-file-commands)
523
524 %.ll-tst : %.ll
525 $(AM_V_GEN)$(test-file-commands)