Makefile 617 B

123456789101112131415161718192021222324252627282930
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../Makefile.conf
  4. IGL=../../
  5. IGL_LIB=-L$(IGL)/lib -ligl
  6. IGL_INC=-I$(IGL)/include
  7. EIGEN3_INC=-I/usr/local/include/eigen3 -I/usr/local/include/eigen3/unsupported -I$(OPT)/local/include/eigen3 -I$(OPT)/local/include/eigen3/unsupported
  8. MATLAB_INC=-I$(MATLAB)/extern/include/
  9. MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -lmat
  10. LIB+=$(IGL_LIB) $(MATLAB_LIB)
  11. INC+=$(IGL_INC) $(EIGEN3_INC) $(MATLAB_INC)
  12. all: example
  13. CFLAGS += -g
  14. example: example.o
  15. g++ -o example example.o $(LIB)
  16. example.o: example.cpp
  17. g++ $(CFLAGS) -o $@ -c $< $(INC)
  18. clean:
  19. rm -f example.o
  20. rm -f example