Ignore:
Timestamp:
Sep 17, 2002 11:20:32 PM (18 years ago)
Author:
ladanyi
Message:

Fixing further examples and Makefiles for devel-1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-1/Makefile

    r21 r22  
    1 # Static or shared libraries should be built (STATIC or SHARED)?
    2 LibType := SHARED
     1# Look at and if necessary edit the following files:
     2# - ../Makefiles/Makefile.location
     3# - Makefile.Osi
     4# - Osi*/Makefile for the libs you have specified above
    35
    4 # Select optimization (-O or -g). -O will be automatically bumped up to the
    5 # highest level of optimization the compiler supports. If want something in
    6 # between then specify the exact level you want, e.g., -O1 or -O2
    7 OptLevel := -g
    8 OptLevel := -O2
     6###############################################################################
    97
    10 ifeq ($(OptLevel),-g)
    11     CXXFLAGS += -DCLP_DEBUG
    12 endif
    13 
    14 LIBNAME := Clp
    15 LIBSRC :=
    16 LIBSRC += ClpDualRowDantzig.cpp
    17 LIBSRC += ClpDualRowPivot.cpp
    18 LIBSRC += ClpDualRowSteepest.cpp
    19 LIBSRC += ClpFactorization.cpp
    20 #LIBSRC += ClpMalloc.cpp
    21 LIBSRC += ClpMatrixBase.cpp
    22 LIBSRC += ClpMessage.cpp
    23 LIBSRC += ClpModel.cpp
    24 LIBSRC += ClpNonLinearCost.cpp
    25 LIBSRC += ClpPackedMatrix.cpp
    26 LIBSRC += ClpPrimalColumnDantzig.cpp
    27 LIBSRC += ClpPrimalColumnPivot.cpp
    28 LIBSRC += ClpPrimalColumnSteepest.cpp
    29 LIBSRC += ClpSimplex.cpp
    30 LIBSRC += ClpSimplexDual.cpp
    31 LIBSRC += ClpSimplexPrimal.cpp
    32 
    33 export CoinDir = $(shell cd ..; pwd)
    34 ##############################################################################
    35 # You should not need to edit below this line.
    36 ##############################################################################
    37 # The location of the customized Makefiles
    38 export CoinDir = $(shell cd ..; pwd)
     8export CoinDir := $(shell cd ..; pwd)
    399export MakefileDir := $(CoinDir)/Makefiles
    4010include ${MakefileDir}/Makefile.coin
    4111include ${MakefileDir}/Makefile.location
    42 
    43 export ExtraIncDir  := ${CoinIncDir} ${zlibIncDir} ${bzlibIncDir}
    44 export ExtraLibDir  := ${CoinLibDir} ${zlibLibDir} ${bzlibLibDir}
    45 export ExtraLibName := ${CoinLibName} ${zlibLibName} ${bzlibLibName}
    46 export ExtraDefine  := ${CoinDefine} ${zlibDefine} ${bzlibDefine}
    47 
    48 export LibType OptLevel LIBNAME LIBSRC
    4912
    5013###############################################################################
     
    5215.DELETE_ON_ERROR:
    5316
    54 .PHONY: default install libClp library clean doc
     17.PHONY: default install clean library unitTest libdepend libClp doc
    5518
    5619default: install
    5720
    58 unitTest : install
     21libdepend:
     22        (cd $(CoinDir)/Coin && $(MAKE) install)
     23
     24install library: libdepend
     25        ${MAKE} -f Makefile.Clp $@
     26
     27libClp: libdepend
     28        ${MAKE} -f Makefile.Clp library
     29
     30unitTest:
    5931        (cd Test && ${MAKE} unitTest)
    6032
    61 install clean doc: % :
    62         $(MAKE) -f ${MakefileDir}/Makefile.lib $*
    63 
    64 libClp:
    65         (cd $(CoinDir)/Coin && $(MAKE))
    66         $(MAKE) -f ${MakefileDir}/Makefile.lib library
     33clean:
     34        rm -rf Junk
     35        @rm -rf $(DEPDIR)
     36        @rm -rf $(TARGETDIR)
Note: See TracChangeset for help on using the changeset viewer.