mex.am 514 Bytes
Newer Older
1
2
EXEEXT = $(MEXEXT)

3
4
AM_CPPFLAGS = $(MATLAB_CPPFLAGS)
AM_CPPFLAGS += -I$(top_srcdir)/../../sources
5
6
7

DEFS += $(MATLAB_DEFS)
DEFS += -DMATLAB_MEX_FILE
8
DEFS += -DMEXEXT=\"$(MEXEXT)\"
9

10
AM_LDFLAGS = $(MATLAB_LDFLAGS)
11
12
13
LIBS += $(MATLAB_LIBS)

all-local:
14
	$(MKDIR_P) $(top_srcdir)/../../matlab
15
	cd $(top_srcdir)/../../matlab && \
16
17
18
19
20
	for p in $(PROGRAMS); do \
		$(LN_S) -f $(abs_srcdir)/$$p $$p; \
	done

clean-local:
21
22
23
	if test -d $(top_srcdir)/../../matlab; then \
		cd $(top_srcdir)/../../matlab && rm -f $(PROGRAMS); \
	fi