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 41 42 43 44 45 46
|
THIS DOESN'T WORK FOR SOME REASON!
USE THE moglcore build target with the "Development - Octavebuild"
build configuration in XCode to get a working target.
# mogl makefile for OSX/IntelMac builds with Octave:
# Path to Octave installation folder:
OCTAVEINCLUDE=/usr/local/include/octave-2.1.73
OCTAVELIBDIR=/usr/local/lib/octave-2.1.73
# Definition of target operating system:
TARGETOS=-DMACOSX
# 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 \
-no-cpp-precomp -bundle -undefined suppress -flat_namespace
MEXLD=-L${OCTAVELIBDIR} -shared -Wl,-Bsymbolic -lstdc++ -loctinterp -loctave -lcruft -ldl
OGLFLAGS=-lc -framework AGL \
-framework OpenGL -framework IOKit -framework GLUT
CC=g++ -x c++
all: moglcore.oct
moglcore.oct: moglcore.o mogloctaveglue.o gl_auto.o gl_manual.o glew.o
$(CC) ${MEXCC} ${MEXLD} ${OGLFLAGS} \
-o moglcore.oct moglcore.o mogloctaveglue.o gl_auto.o gl_manual.o glew.o
#cp moglcore.oct ../core
.c.o:
$(CC) -c ${MEXCC} -o $*.o $*.c
.cc.o:
$(CC) -c ${MEXCC} -o $*.o $*.cc
clean:
-rm *.o *.oct
|