/ani/mrses

To get this branch, use:
bzr branch http://de.suren.me/webbzr/ani/mrses
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
include Makefile.in

ifdef BUILD_SPE
DIRS		:= 	spu ppu test
TARGET_PROCESSOR:=	ppu
else
DIRS		:= 	ppu test
TARGET_PROCESSOR:=	host
HOST_COMPILER	:=	local
endif

ifdef BUILD_OCTAVE
SHARED_LIBRARY	:=	mrses_hw.mex
OBJS 		:= 	mrses_hw.o
endif

########################################################################
#                       Local Defines
########################################################################
OCTAVE_VERSION	:= `octave -vq | head -n 1 | grep -o '[[:digit:].]\+'`

CFLAGS		+= -fpic
INCLUDE		:= -I/usr/include/octave-$(OCTAVE_VERSION)/octave
LDFLAGS		:= -L/usr/lib/octave-$(OCTAVE_VERSION) $(LDFLAGS_MATH)
IMPORTS		:= ppu/lib_mrses_ppu.a

ifdef BUILD_SPE
IMPORTS         +=  spu/lib_mrses_spu.a -lspe2 
endif

IMPORTS		+= $(IMPORTS_MATH) -lpthread -loctave -loctinterp

#INSTALL_DIR	= $(EXP_SDKBIN)/tutorial
#INSTALL_FILES	= $(PROGRAM_ppu)

########################################################################
#			buildutils/make.footer
########################################################################

ifdef CELL_TOP
	include $(CELL_TOP)/buildutils/make.footer
else
	include buildutils/make.footer
endif

matlab: mrses_hw.mexa64

mrses_hw.mexa64: mrses_hw.c mrses.h ppu/lib_mrses_ppu.a 
	mex -I. ppu/lib_mrses_ppu.a -lpthread $(LDFLAGS_MATH) $(IMPORTS_MATH) mrses_hw.c