1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- include ../../../Makefile.conf
- .PHONY: all
- all: libiglbbw
- debug: libiglbbw
- include ../../../Makefile.conf
- all: OPTFLAGS += -O3 -DNDEBUG $(OPENMP)
- debug: OPTFLAGS += -g -Wall
- CFLAGS += $(OPTFLAGS)
- .PHONY: libiglbbw
- libiglbbw: obj ../../../lib/libiglbbw.a
- CPP_FILES=$(wildcard *.cpp)
- OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
- # include igl headers
- INC+=-I../../../include/
- # EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY
- # Eigen dependency
- EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
- INC+=$(EIGEN3_INC)
- ifdef IGL_NO_MOSEK
- CFLAGS+=-DIGL_NO_MOSEK
- else
- # mosek dependency
- # TODO: linux, 32 bit etc
- ifndef MOSEKPLATFORM
- MOSEKPLATFORM=osx64x86
- endif
- ifndef MOSEKVERSION
- MOSEKVERSION=6
- endif
- IGLMOSEK=../mosek/
- IGLMOSEK_INC=-I$(IGLMOSEK)/
- INC+=${IGLMOSEK_INC}
- MOSEK=/usr/local/mosek
- MOSEK_INC=-I$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/h
- MOSEK_LIB=-L$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/bin -lmosek64
- INC+=$(MOSEK_INC)
- endif
- obj:
- mkdir -p obj
- ../../../lib/libiglbbw.a: $(OBJ_FILES)
- rm -f $@
- ar cqs $@ $(OBJ_FILES)
- obj/%.o: %.cpp %.h
- g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
- clean:
- rm -f obj/*.o
- rm -f ../../../lib/libiglbbw.a
|