view test/mex/module.mk @ 31200:075443476dfb stable

nextpow2.m: Add bug number tag to regression BIST tests (bug #62947) * nextpow2.m: Add '<*62947>' to BIST tests for bug #62947.
author Rik <rik@octave.org>
date Wed, 24 Aug 2022 08:55:14 -0700
parents cf4701f36e35
children
line wrap: on
line source

mex_TEST_FILES = \
  %reldir%/bug-54096.tst \
  %reldir%/bug-51725.tst \
  %reldir%/mexnumtst.tst \
  $(MEX_TEST_SRC)

MEX_TEST_SRC = \
  %reldir%/bug_54096.c \
  %reldir%/bug_51725.c \
  %reldir%/mexnumtst.c

MEX_TEST_FUNCTIONS = $(MEX_TEST_SRC:%.c=%.mex)

## Since these definitions for MKOCTFILE and MKMEXFILE are only used
## here, defining them in this file is probably OK.  If they are ever
## used elsewhere, maybe then they could be moved to build-aux/module.mk
## or the main Makefile.am file.  The MKOCTFILE variables are included
## for completeness, in case we someday want to test building .oct
## files as well.

AM_V_mkmexfile = $(am__v_mkmexfile_@AM_V@)
am__v_mkmexfile_ = $(am__v_mkmexfile_@AM_DEFAULT_V@)
am__v_mkmexfile_0 = @echo "  MKMEXFILE     " $@;
am__v_mkmexfile_1 =

AM_VOPT_mkmexfile = $(am__vopt_mkmexfile_@AM_V@)
am__vopt_mkmexfile_ = $(am__vopt_mkmexfile_@AM_DEFAULT_V@)
am__vopt_mkmexfile_0 =
am__vopt_mkmexfile_1 = -v

## And probably many others...
MKOCTFILECPPFLAGS = \
  -I$(top_builddir) \
  -I$(top_srcdir)/libinterp/corefcn \
  -I$(top_builddir)/libinterp/corefcn
MKOCTFILELDFLAGS = \
  -L$(top_builddir)/libinterp/.libs \
  -L$(top_builddir)/liboctave/.libs

MKOCTFILE = \
  DL_LDFLAGS="$(DL_LDFLAGS)" \
  $(top_builddir)/src/mkoctfile $(MKOCTFILECPPFLAGS) $(MKOCTFILELDFLAGS)

MKMEXFILECPPFLAGS = \
  -I$(top_builddir) \
  -I$(top_srcdir)/libinterp/corefcn \
  -I$(top_builddir)/libinterp/corefcn
MKMEXFILELDFLAGS = \
  -L$(top_builddir)/libinterp/.libs \
  -L$(top_builddir)/liboctave/.libs

MKMEXFILE = \
  DL_LDFLAGS="$(DL_LDFLAGS)" \
  $(top_builddir)/src/mkoctfile --mex $(MKMEXFILECPPFLAGS) $(MKMEXFILELDFLAGS)

$(MEX_TEST_FUNCTIONS) : %.mex : %.c | %reldir%/$(octave_dirstamp)
	$(AM_V_mkmexfile)$(MKMEXFILE) $(AM_VOPT_mkmexfile) $< -o $@ || rm -f $@

DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)

## Until we decide how to handle installing the executable MEX files,
## don't install them or the associated test files.
noinst_TEST_FILES += $(mex_TEST_FILES)