File: makefile_octavelinux

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (40 lines) | stat: -rw-r--r-- 974 bytes parent folder | download
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
# mogl makefile for GNU/Linux builds with Octave:

# Path to Octave installation folder:
OCTAVEINCLUDE=/usr/include/octave-2.1.73
OCTAVELIBDIR=/usr/lib/octave-2.1.73

# Definition of target operating system:
TARGETOS=-DLINUX

# Build and include GLM into moglcore:
#GLM=-DBUILD_GLM
GLM=

MEXCC=-I${OCTAVEINCLUDE} -I${OCTAVEINCLUDE}/octave \
	${GLM} ${TARGETOS} -DGLEW_STATIC\
	-DPTBOCTAVE -Doctave_idx_type=int -mieee-fp -fPIC -fno-common -fexceptions -O3 -g

MEXLD=-L${OCTAVELIBDIR} -shared -Wl,-Bsymbolic -lstdc++ -loctinterp -loctave -lcruft -ldl

OGLFLAGS=-lc -lGL -lglut
CC=g++


all:  moglcore.oct

moglcore.oct:  moglcore.o mogloctaveglue.o gl_auto.o gl_manual.o glew.o mogl_rebinder.o
	$(CC) ${MEXCC} ${MEXLD} ${OGLFLAGS} \
		-o moglcore.oct mogl_rebinder.o moglcore.o mogloctaveglue.o gl_auto.o gl_manual.o glew.o \
		/usr/lib/libGLU.a
	cp moglcore.oct ../core

.c.o:
	$(CC) -c ${MEXCC} -o $*.o $*.c

.cc.o:
	$(CC) -c ${MEXCC} -o $*.o $*.cc

clean:
	-rm *.o *.oct