mex_PROGRAMS = sparse_hessian_times_B_kronecker_C A_times_B_kronecker_C

nodist_sparse_hessian_times_B_kronecker_C_SOURCES = sparse_hessian_times_B_kronecker_C.cc
nodist_A_times_B_kronecker_C_SOURCES = A_times_B_kronecker_C.f08 matlab_mex.F08 blas_lapack.F08

sparse_hessian_times_B_kronecker_C_CXXFLAGS = $(AM_CXXFLAGS) -fopenmp
sparse_hessian_times_B_kronecker_C_LDFLAGS = $(AM_LDFLAGS) $(OPENMP_LDFLAGS)

BUILT_SOURCES = $(nodist_sparse_hessian_times_B_kronecker_C_SOURCES) $(nodist_A_times_B_kronecker_C_SOURCES)
CLEANFILES = $(nodist_sparse_hessian_times_B_kronecker_C_SOURCES) $(nodist_A_times_B_kronecker_C_SOURCES)

%.cc: $(top_srcdir)/../../sources/kronecker/%.cc
	$(LN_S) -f $< $@

A_times_B_kronecker_C.o : matlab_mex.mod lapack.mod

%.f08: $(top_srcdir)/../../sources/kronecker/%.f08
	$(LN_S) -f $< $@
