diff options
Diffstat (limited to 'clp-bin/Makefile')
-rw-r--r-- | clp-bin/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/clp-bin/Makefile b/clp-bin/Makefile new file mode 100644 index 0000000..4c1ed7c --- /dev/null +++ b/clp-bin/Makefile @@ -0,0 +1,64 @@ +CLP_VERSION=1.17.6 +COINUTILS_VERSION=2.11.4 + +CLP_SRCDIR=Clp-releases-$(CLP_VERSION) +COINUTILS_SRCDIR=CoinUtils-releases-$(COINUTILS_VERSION) + +OBJDIR=obj +CLP_OBJDIR=$(OBJDIR)/clp +COINUTILS_OBJDIR=$(OBJDIR)/coinutils + +INSTALL_DIR=install + +BASE=$(PWD) + +CLP_PKG_CONFIG=$(BASE)/$(INSTALL_DIR)/lib/pkgconfig:$(PKG_CONFIG_PATH) + +.PHONY: all clean clp clp-install coinutils coinutils-install + +clean: + rm -rf $(CLP_OBJDIR) + rm -rf $(COINUTILS_OBJDIR) + rm -rf $(INSTALL_DIR) + +coinutils: $(COINUTILS_OBJDIR)/CoinUtils/src/.libs/libCoinUtils.a + +coinutils-install: $(INSTALL_DIR)/lib/libCoinUtils.a + +$(COINUTILS_OBJDIR)/Makefile: + mkdir -p $(OBJDIR) + mkdir -p $(COINUTILS_OBJDIR) + cd $(COINUTILS_OBJDIR) && \ + $(BASE)/$(COINUTILS_SRCDIR)/configure \ + --enable-static \ + --prefix=$(BASE)/$(INSTALL_DIR) \ + --build=x86_64-w64-mingw32 \ + CC=gcc CXX=g++ + +$(COINUTILS_OBJDIR)/CoinUtils/src/.libs/libCoinUtils.a: $(COINUTILS_OBJDIR)/Makefile + $(MAKE) -C $(COINUTILS_OBJDIR) all + +$(INSTALL_DIR)/lib/libCoinUtils.a: $(COINUTILS_OBJDIR)/CoinUtils/src/.libs/libCoinUtils.a + $(MAKE) -C $(COINUTILS_OBJDIR) install + +clp: $(CLP_OBJDIR)/Clp/src/.libs/libClp.a + +clp-install: $(INSTALL_DIR)/lib/libClp.a + +$(CLP_OBJDIR)/Makefile: $(INSTALL_DIR)/lib/libCoinUtils.a + mkdir -p $(OBJDIR) + mkdir -p $(CLP_OBJDIR) + cd $(CLP_OBJDIR) && \ + $(BASE)/$(CLP_SRCDIR)/configure \ + --enable-static \ + --prefix=$(BASE)/$(INSTALL_DIR) \ + --build=x86_64-w64-mingw32 \ + CC=gcc CXX=g++ PKG_CONFIG_PATH=$(CLP_PKG_CONFIG) + +$(CLP_OBJDIR)/Clp/src/.libs/libClp.a: $(CLP_OBJDIR)/Makefile + $(MAKE) -C $(CLP_OBJDIR) all + +$(INSTALL_DIR)/lib/libClp.a: $(CLP_OBJDIR)/Clp/src/.libs/libClp.a + $(MAKE) -C $(CLP_OBJDIR) install + +all: $(INSTALL_DIR)/lib/libClp.a $(INSTALL_DIR)/lib/libCoinUtils.a |