[f22b43]: mex / Makefile Maximize Restore History

Download this file

Makefile    28 lines (19 with data), 857 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use GNU Make to process this file.
EXT = $(shell mexext)
# This line gets the MEX extension for the platform. If the shell
# command 'mexext' is not available on your Matlab installation,
# please execute the 'mexext' command within Matlab, and put the
# answer into the line below (remember to uncomment).
#EXT = $(glnx86)
MEXS = comp_wfac comp_iwfac comp_dgt_long comp_idgt_fac \
comp_idgtreal_fac comp_dgt_fb comp_gabdual_long \
comp_gabtight_long comp_heapint comp_col2diag comp_gabreassign \
comp_pgauss comp_fftreal comp_ifftreal comp_dwilt_long
MEXWITHEXTS = $(addsuffix .$(EXT),$(MEXS))
CFLAGS=-I../thirdparty -I. -I../src -L../lib
all: $(MEXWITHEXTS)
%.$(EXT): %.c Makefile config.h ../src/libltfat.a ../src/ltfat.h
mex $(CFLAGS) $< -lfftw3 -lfftw3f -lblas -llapack -lltfat
clean:
rm *.$(EXT)
.PHONY: all clean