File: makefile_maci

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 (38 lines) | stat: -rw-r--r-- 1,022 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
# Path to Matlab installation folder:
MATLABHOME=/Applications/MATLAB74

# Definition of target operating system:
TARGETOS=-DMACOSX

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

MEXCC=-I${MATLABHOME}/extern/include \
	${GLM} ${TARGETOS} -DGLEW_STATIC\
	-DMATLAB_MEX_FILE -DNDEBUG -fno-common -fexceptions -O3 \
	-no-cpp-precomp -bundle -undefined suppress -flat_namespace \
	-exported_symbols_list ${MATLABHOME}/extern/lib/maci/mexFunction.map

MEXLD=-L${MATLABHOME}/bin/maci -lmx -lmex -lmat -lstdc++ \
	${MATLABHOME}/extern/src/mexversion.c

OGLFLAGS=-framework AGL -framework ApplicationServices -framework Carbon \
	-framework OpenGL -framework IOKit -framework GLUT

CC=gcc


all:  moglcore.mexmaci

moglcore.mexmaci:  moglcore.o glm.o gl_auto.o gl_manual.o glew.o mogl_rebinder.o
	$(CC) ${MEXCC} ${MEXLD} ${OGLFLAGS} \
		-o moglcore.mexmaci mogl_rebinder.o moglcore.o glm.o gl_auto.o gl_manual.o glew.o
	cp moglcore.mexmaci ../core

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

clean:
	-rm *.o *.mexmaci