1 | # Static or shared libraries should be built (STATIC or SHARED)? |
---|
2 | LibType := SHARED |
---|
3 | #LibType := STATIC |
---|
4 | |
---|
5 | # Select optimization (-O or -g). -O will be automatically bumped up to the |
---|
6 | # highest level of optimization the compiler supports. If want something in |
---|
7 | # between then specify the exact level you want, e.g., -O1 or -O2 |
---|
8 | OptLevel := -g |
---|
9 | #OptLevel := -O1 |
---|
10 | |
---|
11 | LIBNAME := Clp |
---|
12 | LIBSRC := |
---|
13 | LIBSRC += ClpDualRowDantzig.cpp |
---|
14 | LIBSRC += ClpDualRowPivot.cpp |
---|
15 | LIBSRC += ClpDualRowSteepest.cpp |
---|
16 | LIBSRC += ClpEventHandler.cpp |
---|
17 | LIBSRC += ClpFactorization.cpp |
---|
18 | LIBSRC += ClpMatrixBase.cpp |
---|
19 | LIBSRC += ClpMessage.cpp |
---|
20 | LIBSRC += ClpModel.cpp |
---|
21 | LIBSRC += ClpNetworkBasis.cpp |
---|
22 | LIBSRC += ClpNetworkMatrix.cpp |
---|
23 | LIBSRC += ClpNonLinearCost.cpp |
---|
24 | LIBSRC += ClpObjective.cpp |
---|
25 | LIBSRC += ClpLinearObjective.cpp |
---|
26 | LIBSRC += ClpPackedMatrix.cpp |
---|
27 | LIBSRC += ClpPlusMinusOneMatrix.cpp |
---|
28 | LIBSRC += ClpDummyMatrix.cpp |
---|
29 | LIBSRC += ClpGubMatrix.cpp |
---|
30 | LIBSRC += ClpGubDynamicMatrix.cpp |
---|
31 | LIBSRC += ClpDynamicMatrix.cpp |
---|
32 | LIBSRC += ClpDynamicExampleMatrix.cpp |
---|
33 | LIBSRC += ClpPrimalColumnDantzig.cpp |
---|
34 | LIBSRC += ClpPrimalColumnPivot.cpp |
---|
35 | LIBSRC += ClpPrimalColumnSteepest.cpp |
---|
36 | LIBSRC += ClpQuadraticObjective.cpp |
---|
37 | LIBSRC += ClpSimplex.cpp |
---|
38 | LIBSRC += ClpSimplexDual.cpp |
---|
39 | LIBSRC += ClpSimplexOther.cpp |
---|
40 | LIBSRC += ClpSimplexPrimal.cpp |
---|
41 | LIBSRC += ClpSimplexNonlinear.cpp |
---|
42 | LIBSRC += ClpSolve.cpp |
---|
43 | LIBSRC += ClpInterior.cpp |
---|
44 | LIBSRC += ClpCholeskyBase.cpp |
---|
45 | LIBSRC += ClpCholeskyDense.cpp |
---|
46 | LIBSRC += ClpCholeskyUfl.cpp |
---|
47 | #LIBSRC += ClpCholeskyWssmp.cpp |
---|
48 | LIBSRC += ClpPredictorCorrector.cpp |
---|
49 | LIBSRC += ClpHelperFunctions.cpp |
---|
50 | LIBSRC += Clp_C_Interface.cpp |
---|
51 | # and Presolve stuff |
---|
52 | LIBSRC += ClpPresolve.cpp |
---|
53 | |
---|
54 | LIBSRC += Idiot.cpp |
---|
55 | LIBSRC += IdiSolve.cpp |
---|
56 | |
---|
57 | ############################################################################## |
---|
58 | # You should not need to edit below this line. |
---|
59 | ############################################################################## |
---|
60 | # The location of the customized Makefiles |
---|
61 | include ${MakefileDir}/Makefile.coin |
---|
62 | include ${MakefileDir}/Makefile.location |
---|
63 | |
---|
64 | # Say Idiot code can use Clp interface |
---|
65 | #CXXFLAGS += -DCLP_IDIOT |
---|
66 | #CXXFLAGS += -DUSE_PRESOLVE |
---|
67 | #CXXFLAGS += -DCORRECT_COLUMN_COUNTS |
---|
68 | ifeq ($(OptLevel),-g) |
---|
69 | # CXXFLAGS += -DCLP_DEBUG |
---|
70 | #CXXFLAGS += -DPRESOLVE_DEBUG=1 |
---|
71 | endif |
---|
72 | ifeq ($(OptLevel),-O2) |
---|
73 | # CXXFLAGS += -DNDEBUG |
---|
74 | endif |
---|
75 | export ExtraIncDir := ${CoinIncDir} ${zlibIncDir} ${bzlibIncDir} $(VolIncDir) |
---|
76 | export ExtraLibDir := ${CoinLibDir} ${zlibLibDir} ${bzlibLibDir} $(VolLibDir) |
---|
77 | export ExtraLibName := ${CoinLibName} ${zlibLibName} ${bzlibLibName} $(VolLibName) |
---|
78 | export ExtraDefine := ${CoinDefine} ${zlibDefine} ${bzlibDefine} $(VolDefine) |
---|
79 | |
---|
80 | export LibType OptLevel LIBNAME LIBSRC |
---|
81 | |
---|
82 | ############################################################################### |
---|
83 | |
---|
84 | .DELETE_ON_ERROR: |
---|
85 | |
---|
86 | .PHONY: default install library |
---|
87 | |
---|
88 | default: install |
---|
89 | |
---|
90 | install library: |
---|
91 | $(MAKE) -f ${MakefileDir}/Makefile.lib $@ |
---|