xref: /aoo41x/ext_libraries/coinmp/makefile.mk (revision 5b11f0d3)
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
49*5b11f0d3SYuri Dario.IF "$(OS)"=="OS2"
50*5b11f0d3SYuri DarioPATCH_FILES+=coinmp-1.6.0-os2.patch
51*5b11f0d3SYuri 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)'
58bfaba8a2SHerbert DürrCONFIGURE_FLAGS=--disable-pkg-config --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
60bfaba8a2SHerbert DürrBUILD_ACTION= $(GNUMAKE) -j8
6127b2fc91SAndre Fischer.ENDIF
6227b2fc91SAndre Fischer
63*5b11f0d3SYuri Dario.IF "$(OS)"=="OS2"
64*5b11f0d3SYuri DarioCONFIGURE_FLAGS+= --disable-shared --enable-static
65*5b11f0d3SYuri Dario.ENDIF
66*5b11f0d3SYuri 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
72*5b11f0d3SYuri Dario.ELIF "$(OS)"=="OS2"
73*5b11f0d3SYuri DarioOUT2BIN+=CoinMP$/src$/CoinMP.dll
74*5b11f0d3SYuri 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