Makefile 878 B

123456789101112131415161718192021222324252627282930313233
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. LIBIGL=../../
  7. LIBIGL_INC=-I$(LIBIGL)/include
  8. LIBIGL_LIB=-L$(LIBIGL)/lib -ligl -liglmatlab -liglembree
  9. EIGEN3_INC=-I/opt/local/include/eigen3 -I/opt/local/include/eigen3/unsupported
  10. ANTTWEAKBAR_INC=-I$(LIBIGL)/external/AntTweakBar/include
  11. ANTTWEAKBAR_LIB=-L$(LIBIGL)/external/AntTweakBar/lib -lAntTweakBar -framework AppKit
  12. MATLAB_INC=-I$(MATLAB)/extern/include/
  13. MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -lmat -lmex -lstdc++
  14. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(MATLAB_INC)
  15. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(MATLAB_LIB)
  16. example: example.o
  17. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -o example example.o $(LIB)
  18. example.o: example.cpp
  19. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  20. clean:
  21. rm -f example.o
  22. rm -f example