~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychSound/MOAL/source/makefile_linux

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# mogl makefile for GNU/Linux builds:
2
 
 
3
 
# Path to Matlab installation folder:
4
 
MATLABHOME=/usr/local/matlab_6.1
5
 
 
6
 
# Definition of target operating system:
7
 
TARGETOS=-DLINUX
8
 
 
9
 
# Build and include GLM into moglcore:
10
 
#GLM=-DBUILD_GLM
11
 
GLM=
12
 
 
13
 
MEXCC=-I${MATLABHOME}/extern/include \
14
 
        ${GLM} ${TARGETOS} -DGLEW_STATIC\
15
 
        -DMATLAB_MEX_FILE -DNDEBUG -fno-common -fexceptions -O3
16
 
 
17
 
MEXLD=-L${MATLABHOME}/bin/glnx86 -shared -lmx -lmex -lmat -lstdc++ \
18
 
        ${MATLABHOME}/extern/src/mexversion.c
19
 
 
20
 
#OGLFLAGS=-lc -lGL -lGLU -lglut
21
 
OGLFLAGS=-lc -lGL -lglut
22
 
CC=gcc
23
 
 
24
 
 
25
 
all:  moglcore.mexglx
26
 
 
27
 
moglcore.mexglx:  moglcore.o gl_auto.o gl_manual.o glew.o
28
 
        $(CC) ${MEXCC} ${MEXLD} ${OGLFLAGS} \
29
 
                -o moglcore.mexglx moglcore.o gl_auto.o gl_manual.o glew.o \
30
 
                /usr/X11R6/lib/libGLU.a
31
 
        cp moglcore.mexglx ../core
32
 
 
33
 
.c.o:
34
 
        $(CC) -c ${MEXCC} -o $*.o $*.c
35
 
 
36
 
clean:
37
 
        -rm *.o *.mexglx
38