Makefile 482 B

1234567891011121314151617181920212223242526272829
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. LIBIGL_LIB+=-liglmatlab
  5. MATLAB_INC=-I$(MATLAB)/extern/include/
  6. MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -lmat
  7. LIB+=$(LIBIGL_LIB) $(MATLAB_LIB)
  8. INC+=$(LIBIGL_INC) $(EIGEN3_INC) $(MATLAB_INC)
  9. CFLAGS += -g
  10. ifeq ($(IGL_WITH_MATLAB),1)
  11. EXAMPLE=example
  12. endif
  13. all: $(EXAMPLE)
  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