8
TARGET_PROCESSOR:= host
13
SHARED_LIBRARY := mrses_hw.mex
17
########################################################################
19
########################################################################
20
OCTAVE_VERSION := `octave -vq | head -n 1 | grep -o '[[:digit:].]\+'`
23
INCLUDE := -I/usr/include/octave-$(OCTAVE_VERSION)/octave
24
LDFLAGS := -L/usr/lib/octave-$(OCTAVE_VERSION) $(LDFLAGS_MATH)
25
IMPORTS := ppu/lib_mrses_ppu.a
28
IMPORTS += spu/lib_mrses_spu.a -lspe2
31
IMPORTS += $(IMPORTS_MATH) -lpthread -loctave -loctinterp
33
#INSTALL_DIR = $(EXP_SDKBIN)/tutorial
34
#INSTALL_FILES = $(PROGRAM_ppu)
36
########################################################################
37
# buildutils/make.footer
38
########################################################################
41
include $(CELL_TOP)/buildutils/make.footer
43
include buildutils/make.footer
46
matlab: mrses_hw.mexa64
48
mrses_hw.mexa64: mrses_hw.c mrses.h ppu/lib_mrses_ppu.a
49
mex -I. ppu/lib_mrses_ppu.a -lpthread $(LDFLAGS_MATH) $(IMPORTS_MATH) mrses_hw.c