1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- include Makefile.conf
- .PHONY: all
- all: libiglmosek
- debug: libiglmosek
- include Makefile.conf
- all: OPTFLAGS += -O3 -DNDEBUG $(OPENMP)
- debug: OPTFLAGS += -g -Wall
- CFLAGS += $(OPTFLAGS)
- .PHONY: libiglmosek
- libiglmosek: obj ../lib/libiglmosek.a
- SRC_DIR=../include/igl/mosek/
- CPP_FILES=$(wildcard $(SRC_DIR)*.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)
- # mosek dependency
- # TODO: linux, 32 bit etc
- ifndef MOSEKPLATFORM
- MOSEKPLATFORM=osx64x86
- endif
- ifndef MOSEKVERSION
- MOSEKVERSION=6
- endif
- 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)
- obj:
- mkdir -p obj
- ../lib/libiglmosek.a: $(OBJ_FILES)
- rm -f $@
- ar cqs $@ $(OBJ_FILES)
- obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
- g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
- clean:
- rm -f $(OBJ_FILES)
- rm -f ../lib/libiglmosek.a
|