Files
igl/examples/Core/Makefile
T

34 lines
745 B
Makefile

all: example1
igl_lib=../../
eigen_lib=/opt/local/include/eigen3/
CFLAGS=-g
inc=-I$(igl_lib)/include -I$(eigen_lib)
lib=-L$(igl_lib)/lib -ligl
matlab_inc=-I$(MATLAB)/extern/include
matlab_lib=-L$(MATLAB)/bin/maci64/ -leng -lmx
example1: example1.o
g++ $(CFLAGS) -o example1 example1.o -framework OpenGL -framework GLUT $(lib)
rm example1.o
example1.o: example1.cpp
g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)
example2: example2.o
g++ $(CFLAGS) $(matlab_lib) -o example2 example2.o -framework OpenGL -framework GLUT $(lib)
rm example2.o
example2.o: example2.cpp
g++ $(CFLAGS) $(matlab_inc) -c example2.cpp -o example2.o $(inc)
clean:
rm -f example1.o
rm -f example1
rm -f example2.o
rm -f example2
rm -f bunny_out.off