127b2fc91SAndre Fischer#************************************************************** 229920ea1SAriel Constenla-Haile# 327b2fc91SAndre Fischer# Licensed to the Apache Software Foundation (ASF) under one 427b2fc91SAndre Fischer# or more contributor license agreements. See the NOTICE file 527b2fc91SAndre Fischer# distributed with this work for additional information 627b2fc91SAndre Fischer# regarding copyright ownership. The ASF licenses this file 727b2fc91SAndre Fischer# to you under the Apache License, Version 2.0 (the 827b2fc91SAndre Fischer# "License"); you may not use this file except in compliance 927b2fc91SAndre Fischer# with the License. You may obtain a copy of the License at 1029920ea1SAriel Constenla-Haile# 1127b2fc91SAndre Fischer# http://www.apache.org/licenses/LICENSE-2.0 1229920ea1SAriel Constenla-Haile# 1327b2fc91SAndre Fischer# Unless required by applicable law or agreed to in writing, 1427b2fc91SAndre Fischer# software distributed under the License is distributed on an 1527b2fc91SAndre Fischer# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1627b2fc91SAndre Fischer# KIND, either express or implied. See the License for the 1727b2fc91SAndre Fischer# specific language governing permissions and limitations 1827b2fc91SAndre Fischer# under the License. 1929920ea1SAriel Constenla-Haile# 2027b2fc91SAndre Fischer#************************************************************** 2127b2fc91SAndre Fischer 2227b2fc91SAndre FischerPRJ=. 2327b2fc91SAndre Fischer 2427b2fc91SAndre FischerPRJNAME=coinmp 2527b2fc91SAndre FischerTARGET=coinmp 2627b2fc91SAndre Fischer 2727b2fc91SAndre Fischer# --- Settings ----------------------------------------------------- 2827b2fc91SAndre Fischer 2927b2fc91SAndre Fischer.INCLUDE : settings.mk 3027b2fc91SAndre Fischer 3127b2fc91SAndre Fischer# --- Files -------------------------------------------------------- 3227b2fc91SAndre Fischer 3327b2fc91SAndre Fischer.IF "$(ENABLE_COINMP)"!="YES" 3427b2fc91SAndre Fischer 3527b2fc91SAndre Fischerall: 3627b2fc91SAndre Fischer @echo "CoinMP is disabled and will not be built." 3727b2fc91SAndre Fischer 38fdf35928SAndre Fischer.ELIF "$(SYSTEM_COINMP)"=="YES" 39fdf35928SAndre Fischer 40fdf35928SAndre Fischerall: 41fdf35928SAndre Fischer @echo "Using system CoinMP. Does not have to be built." 42fdf35928SAndre Fischer 4327b2fc91SAndre Fischer.ELSE 4427b2fc91SAndre Fischer 4529920ea1SAriel Constenla-HaileTARFILE_NAME=CoinMP-1.7.6 4629920ea1SAriel Constenla-HaileTARFILE_MD5=1cce53bf4b40ae29790d2c5c9f8b1129 4727b2fc91SAndre Fischer 4829920ea1SAriel Constenla-HailePATCH_FILES=coinmp-1.7.6.patch coinmp-1.7.6-clang.patch 491b8c19f4SYuri Dario.IF "$(OS)"=="OS2" 501b8c19f4SYuri DarioPATCH_FILES+=coinmp-1.6.0-os2.patch 511b8c19f4SYuri Dario.ENDIF 5229eacd91SPedro Giffuni 5327b2fc91SAndre Fischer.IF "$(COM)"=="MSC" 548e162c1bSOliver-Rainer WittmannBUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe -useenv CoinMP\\MSVisualStudio\\v9\\CoinMP.sln "Release|Win32" 5527b2fc91SAndre Fischer.ELSE 5627b2fc91SAndre FischerCONFIGURE_ACTION=./configure 57bfaba8a2SHerbert Dürr#CONFIGURE_FLAGS=--disable-pkg-config --disable-bzlib --disable-zlib CC='$(CC) $(ARCH_FLAGS)' CXX='$(CXX) $(ARCH_FLAGS)' CFLAGS='$(ARCH_FLAGS) -Wc,-arch -Wc,i386' CPPFLAGS='$(ARCH_FLAGS)' LDFLAGS='$(ARCH_FLAGS)' compiler_flags='$(ARCH_FLAGS)' 58*444fcb3fSAriel Constenla-HaileCONFIGURE_FLAGS=--disable-pkg-config --with-blas=BUILD --with-lapack=BUILD --disable-bzlib --disable-zlib CC='$(CC) $(ARCH_FLAGS)' CXX='$(CXX) $(ARCH_FLAGS)' 59bfaba8a2SHerbert Dürr#BUILD_ACTION= CC="$(CC) $(ARCH_FLAGS)" CPP="$(CXX) $(ARCH_FLAGS)" $(GNUMAKE) -j8 6029920ea1SAriel Constenla-HaileBUILD_ACTION= $(GNUMAKE) -j$(MAXPROCESS) 6127b2fc91SAndre Fischer.ENDIF 6227b2fc91SAndre Fischer 631b8c19f4SYuri Dario.IF "$(OS)"=="OS2" 641b8c19f4SYuri DarioCONFIGURE_FLAGS+= --disable-shared --enable-static 651b8c19f4SYuri Dario.ENDIF 661b8c19f4SYuri Dario 6727b2fc91SAndre FischerOUT2INC+=CoinMP$/src/CoinMP.h 6827b2fc91SAndre Fischer 6927b2fc91SAndre Fischer.IF "$(OS)"=="WNT" 7027b2fc91SAndre FischerOUT2BIN+=CoinMP$/MSVisualStudio$/v9$/release$/CoinMP.dll 7127b2fc91SAndre FischerOUT2LIB+=CoinMP$/MSVisualStudio$/v9$/release$/CoinMP.lib 721b8c19f4SYuri Dario.ELIF "$(OS)"=="OS2" 731b8c19f4SYuri DarioOUT2BIN+=CoinMP$/src$/CoinMP.dll 741b8c19f4SYuri DarioOUT2LIB+=CoinMP$/src$/.libs/CoinMP.lib 7527b2fc91SAndre Fischer.ELSE 7627b2fc91SAndre FischerOUT2LIB+=CoinMP$/src$/.libs$/libCoinMP*$(DLLPOST)* 7727b2fc91SAndre FischerOUT2LIB+=CoinUtils$/src$/.libs$/libCoinUtils*$(DLLPOST)* 7827b2fc91SAndre FischerOUT2LIB+=Cbc$/src$/.libs$/libCbc*$(DLLPOST)* 7927b2fc91SAndre FischerOUT2LIB+=Cbc$/src$/OsiCbc$/.libs$/libOsiCbc*$(DLLPOST)* 8027b2fc91SAndre FischerOUT2LIB+=Cgl$/src$/.libs$/libCgl*$(DLLPOST)* 8127b2fc91SAndre FischerOUT2LIB+=Clp$/src$/.libs$/libClp*$(DLLPOST)* 8227b2fc91SAndre FischerOUT2LIB+=Clp$/src$/OsiClp$/.libs$/libOsiClp*$(DLLPOST)* 8327b2fc91SAndre FischerOUT2LIB+=Osi$/src$/Osi$/.libs$/libOsi*$(DLLPOST)* 8427b2fc91SAndre Fischer.ENDIF 8527b2fc91SAndre Fischer 8627b2fc91SAndre Fischer 8727b2fc91SAndre Fischer 8827b2fc91SAndre Fischer# --- Targets ------------------------------------------------------ 8927b2fc91SAndre Fischer 9027b2fc91SAndre Fischer.INCLUDE : set_ext.mk 9127b2fc91SAndre Fischer.INCLUDE : target.mk 9227b2fc91SAndre Fischer.INCLUDE : tg_ext.mk 9327b2fc91SAndre Fischer 9427b2fc91SAndre Fischer.ENDIF 95