mex.am 507 Bytes
Newer Older
1
2
3
4
5
6
7
EXEEXT = $(MEXEXT)

CPPFLAGS += $(MATLAB_CPPFLAGS)
CPPFLAGS += -I$(top_srcdir)/../../sources

DEFS += $(MATLAB_DEFS)
DEFS += -DMATLAB_MEX_FILE
8
DEFS += -DMEXEXT=\"$(MEXEXT)\"
9
10
11
12
13

LDFLAGS += $(MATLAB_LDFLAGS)
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