12345678910111213141516171819 |
- GUROBI_DIR=/opt/gurobi650/linux64
- CPP=g++ -D_GLIBCXX_USE_CXX11_ABI=0 -m64 -g
- INC=-I$(GUROBI_DIR)/include
- LIBS=-L $(GUROBI_DIR)/lib -lgurobi_c++ -lgurobi65 -lpthread -lm
- SOURCES=gurobi.cpp
- main: $(SOURCES:.cpp=.o)
- $(CPP) -o $@ $^ $(INC) $(LIBS)
- %.o: %.cpp
- $(CPP) -o $@ -c $< $(INC)
- .PHONY: clean mrproper
- clean:
- rm -f $(SOURCES:.cpp=.o)
- mrproper: clean
- rm -f main
|