12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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
- 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)
- # 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: %.cpp %.h
- g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
- clean:
- rm -f obj/*.o
- rm -f ../../../lib/libiglmosek.a
|