/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-28 04:30:08 UTC
  • Revision ID: csa@dside.dyndns.org-20100428043008-vd9z0nso9axezvlp
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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