xref: /aoo41x/ext_libraries/coinmp/makefile.mk (revision 8e162c1b)
127b2fc91SAndre Fischer#**************************************************************
227b2fc91SAndre Fischer#
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
1027b2fc91SAndre Fischer#
1127b2fc91SAndre Fischer#    http://www.apache.org/licenses/LICENSE-2.0
1227b2fc91SAndre Fischer#
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.
1927b2fc91SAndre Fischer#
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
45d3c6bc50SAndre FischerTARFILE_NAME=CoinMP-1.6.0
46d3c6bc50SAndre FischerTARFILE_MD5=2b5f1ca58d6ef30f18f1415b65bed81c
4727b2fc91SAndre Fischer
48bfaba8a2SHerbert DürrPATCH_FILES=coinmp-1.6.0.patch coinmp-1.6.0-clang.patch
4929eacd91SPedro Giffuni
5027b2fc91SAndre Fischer.IF "$(COM)"=="MSC"
51*8e162c1bSOliver-Rainer WittmannBUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe -useenv CoinMP\\MSVisualStudio\\v9\\CoinMP.sln "Release|Win32"
5227b2fc91SAndre Fischer.ELSE
5327b2fc91SAndre FischerCONFIGURE_ACTION=./configure
54bfaba8a2SHerbert 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)'
55bfaba8a2SHerbert DürrCONFIGURE_FLAGS=--disable-pkg-config --disable-bzlib --disable-zlib CC='$(CC) $(ARCH_FLAGS)' CXX='$(CXX) $(ARCH_FLAGS)'
56bfaba8a2SHerbert Dürr#BUILD_ACTION= CC="$(CC) $(ARCH_FLAGS)" CPP="$(CXX) $(ARCH_FLAGS)" $(GNUMAKE) -j8
57bfaba8a2SHerbert DürrBUILD_ACTION= $(GNUMAKE) -j8
5827b2fc91SAndre Fischer.ENDIF
5927b2fc91SAndre Fischer
6027b2fc91SAndre FischerOUT2INC+=CoinMP$/src/CoinMP.h
6127b2fc91SAndre Fischer
6227b2fc91SAndre Fischer.IF "$(OS)"=="WNT"
6327b2fc91SAndre FischerOUT2BIN+=CoinMP$/MSVisualStudio$/v9$/release$/CoinMP.dll
6427b2fc91SAndre FischerOUT2LIB+=CoinMP$/MSVisualStudio$/v9$/release$/CoinMP.lib
6527b2fc91SAndre Fischer.ELSE
6627b2fc91SAndre FischerOUT2LIB+=CoinMP$/src$/.libs$/libCoinMP*$(DLLPOST)*
6727b2fc91SAndre FischerOUT2LIB+=CoinUtils$/src$/.libs$/libCoinUtils*$(DLLPOST)*
6827b2fc91SAndre FischerOUT2LIB+=Cbc$/src$/.libs$/libCbc*$(DLLPOST)*
6927b2fc91SAndre FischerOUT2LIB+=Cbc$/src$/OsiCbc$/.libs$/libOsiCbc*$(DLLPOST)*
7027b2fc91SAndre FischerOUT2LIB+=Cgl$/src$/.libs$/libCgl*$(DLLPOST)*
7127b2fc91SAndre FischerOUT2LIB+=Clp$/src$/.libs$/libClp*$(DLLPOST)*
7227b2fc91SAndre FischerOUT2LIB+=Clp$/src$/OsiClp$/.libs$/libOsiClp*$(DLLPOST)*
7327b2fc91SAndre FischerOUT2LIB+=Osi$/src$/Osi$/.libs$/libOsi*$(DLLPOST)*
7427b2fc91SAndre Fischer.ENDIF
7527b2fc91SAndre Fischer
7627b2fc91SAndre Fischer
7727b2fc91SAndre Fischer
7827b2fc91SAndre Fischer# --- Targets ------------------------------------------------------
7927b2fc91SAndre Fischer
8027b2fc91SAndre Fischer.INCLUDE : set_ext.mk
8127b2fc91SAndre Fischer.INCLUDE : target.mk
8227b2fc91SAndre Fischer.INCLUDE : tg_ext.mk
8327b2fc91SAndre Fischer
8427b2fc91SAndre Fischer.ENDIF
85