/ani/mrses

To get this branch, use:
bzr branch http://darksoft.org/webbzr/ani/mrses
1 by Suren A. Chilingaryan
Initial import
1
include Makefile.in
2
3
ifdef BUILD_SPE
4
DIRS		:= 	spu ppu test
5
TARGET_PROCESSOR:=	ppu
6
else
7
DIRS		:= 	ppu test
8
TARGET_PROCESSOR:=	host
9
HOST_COMPILER	:=	local
10
endif
11
12
ifdef BUILD_OCTAVE
13
SHARED_LIBRARY	:=	mrses_hw.mex
14
OBJS 		:= 	mrses_hw.o
15
endif
16
17
########################################################################
18
#                       Local Defines
19
########################################################################
20
OCTAVE_VERSION	:= `octave -vq | head -n 1 | grep -o '[[:digit:].]\+'`
21
22
CFLAGS		+= -fpic
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
26
27
ifdef BUILD_SPE
28
IMPORTS         +=  spu/lib_mrses_spu.a -lspe2 
29
endif
30
31
IMPORTS		+= $(IMPORTS_MATH) -lpthread -loctave -loctinterp
32
33
#INSTALL_DIR	= $(EXP_SDKBIN)/tutorial
34
#INSTALL_FILES	= $(PROGRAM_ppu)
35
36
########################################################################
37
#			buildutils/make.footer
38
########################################################################
39
40
ifdef CELL_TOP
41
	include $(CELL_TOP)/buildutils/make.footer
42
else
43
	include buildutils/make.footer
44
endif
45
46
matlab: mrses_hw.mexa64
47
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 
50