1 | # Static or shared libraries should be built (STATIC or SHARED)? |
---|
2 | LibType := SHARED |
---|
3 | |
---|
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 := -O3 |
---|
9 | |
---|
10 | |
---|
11 | LIBNAME := Clp |
---|
12 | LIBSRC := |
---|
13 | LIBSRC += ClpDualRowDantzig.cpp |
---|
14 | LIBSRC += ClpDualRowPivot.cpp |
---|
15 | LIBSRC += ClpDualRowSteepest.cpp |
---|
16 | LIBSRC += ClpFactorization.cpp |
---|
17 | LIBSRC += ClpMatrixBase.cpp |
---|
18 | LIBSRC += ClpMessage.cpp |
---|
19 | LIBSRC += ClpModel.cpp |
---|
20 | LIBSRC += ClpNetworkBasis.cpp |
---|
21 | LIBSRC += ClpNetworkMatrix.cpp |
---|
22 | LIBSRC += ClpNonLinearCost.cpp |
---|
23 | LIBSRC += ClpObjective.cpp |
---|
24 | LIBSRC += ClpLinearObjective.cpp |
---|
25 | LIBSRC += ClpPackedMatrix.cpp |
---|
26 | LIBSRC += ClpPlusMinusOneMatrix.cpp |
---|
27 | LIBSRC += ClpPrimalColumnDantzig.cpp |
---|
28 | LIBSRC += ClpPrimalColumnPivot.cpp |
---|
29 | LIBSRC += ClpPrimalColumnSteepest.cpp |
---|
30 | LIBSRC += ClpSimplex.cpp |
---|
31 | LIBSRC += ClpSimplexDual.cpp |
---|
32 | LIBSRC += ClpSimplexPrimal.cpp |
---|
33 | LIBSRC += ClpSimplexPrimalQuadratic.cpp |
---|
34 | #LIBSRC += ClpPrimalQuadraticDantzig.cpp |
---|
35 | # and Presolve stuff |
---|
36 | LIBSRC += Presolve.cpp |
---|
37 | LIBSRC += PresolveDoubleton.cpp |
---|
38 | LIBSRC += PresolveEmpty.cpp |
---|
39 | LIBSRC += PresolveFixed.cpp |
---|
40 | LIBSRC += PresolveMatrix.cpp |
---|
41 | LIBSRC += PresolvePsdebug.cpp |
---|
42 | LIBSRC += PresolveSingleton.cpp |
---|
43 | LIBSRC += PresolveZeros.cpp |
---|
44 | LIBSRC += PresolveDual.cpp |
---|
45 | LIBSRC += PresolveDupcol.cpp |
---|
46 | LIBSRC += PresolveForcing.cpp |
---|
47 | LIBSRC += PresolveImpliedFree.cpp |
---|
48 | LIBSRC += PresolveIsolated.cpp |
---|
49 | LIBSRC += PresolveSubst.cpp |
---|
50 | LIBSRC += PresolveTighten.cpp |
---|
51 | LIBSRC += PresolveUseless.cpp |
---|
52 | |
---|
53 | LIBSRC += Idiot.cpp |
---|
54 | LIBSRC += IdiSolve.cpp |
---|
55 | |
---|
56 | ############################################################################## |
---|
57 | # You should not need to edit below this line. |
---|
58 | ############################################################################## |
---|
59 | # The location of the customized Makefiles |
---|
60 | include ${MakefileDir}/Makefile.coin |
---|
61 | include ${MakefileDir}/Makefile.location |
---|
62 | |
---|
63 | # Say Idiot code can use Clp interface |
---|
64 | CXXFLAGS += -DCLP_IDIOT |
---|
65 | CXXFLAGS += -DUSE_PRESOLVE |
---|
66 | #CXXFLAGS += -DQUADRATIC |
---|
67 | ifeq ($(OptLevel),-g) |
---|
68 | # CXXFLAGS += -DCLP_DEBUG |
---|
69 | # CXXFLAGS += -DPRESOLVE_SUMMARY=1 -DDEBUG_PRESOLVE -DCHECK_CONSISTENCY=1 |
---|
70 | endif |
---|
71 | ifeq ($(OptLevel),-O2) |
---|
72 | # CXXFLAGS += -DNDEBUG |
---|
73 | # CXXFLAGS += -DPRESOLVE_SUMMARY=1 -DDEBUG_PRESOLVE -DCHECK_CONSISTENCY=1 |
---|
74 | endif |
---|
75 | |
---|
76 | export ExtraIncDir := ${CoinIncDir} ${zlibIncDir} ${bzlibIncDir} |
---|
77 | export ExtraLibDir := ${CoinLibDir} ${zlibLibDir} ${bzlibLibDir} |
---|
78 | export ExtraLibName := ${CoinLibName} ${zlibLibName} ${bzlibLibName} |
---|
79 | export ExtraDefine := ${CoinDefine} ${zlibDefine} ${bzlibDefine} |
---|
80 | |
---|
81 | export LibType OptLevel LIBNAME LIBSRC |
---|
82 | |
---|
83 | ############################################################################### |
---|
84 | |
---|
85 | .DELETE_ON_ERROR: |
---|
86 | |
---|
87 | .PHONY: default install library |
---|
88 | |
---|
89 | default: install |
---|
90 | |
---|
91 | install library: |
---|
92 | $(MAKE) -f ${MakefileDir}/Makefile.lib $@ |
---|