Lines 1-98
Link Here
|
1 |
#************************************************************************* |
|
|
2 |
# |
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
5 |
# Copyright 2000, 2010 Oracle and/or its affiliates. |
6 |
# |
7 |
# OpenOffice.org - a multi-platform office productivity suite |
8 |
# |
9 |
# This file is part of OpenOffice.org. |
10 |
# |
11 |
# OpenOffice.org is free software: you can redistribute it and/or modify |
12 |
# it under the terms of the GNU Lesser General Public License version 3 |
13 |
# only, as published by the Free Software Foundation. |
14 |
# |
15 |
# OpenOffice.org is distributed in the hope that it will be useful, |
16 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 |
# GNU Lesser General Public License version 3 for more details |
19 |
# (a copy is included in the LICENSE file that accompanied this code). |
20 |
# |
21 |
# You should have received a copy of the GNU Lesser General Public License |
22 |
# version 3 along with OpenOffice.org. If not, see |
23 |
# <http://www.openoffice.org/license.html> |
24 |
# for a copy of the LGPLv3 License. |
25 |
# |
26 |
#************************************************************************* |
27 |
|
28 |
PRJ=. |
29 |
|
30 |
PRJNAME=lpsolve |
31 |
TARGET=lpsolve |
32 |
|
33 |
# --- Settings ----------------------------------------------------- |
34 |
|
35 |
.INCLUDE : settings.mk |
36 |
|
37 |
# --- Files -------------------------------------------------------- |
38 |
|
39 |
TARFILE_NAME=lp_solve_5.5 |
40 |
TARFILE_MD5=26b3e95ddf3d9c077c480ea45874b3b8 |
41 |
|
42 |
.IF "$(GUI)"=="WNT" |
43 |
PATCH_FILES=lp_solve_5.5-windows.patch |
44 |
.ELSE |
45 |
PATCH_FILES=lp_solve_5.5.patch |
46 |
ADDITIONAL_FILES=lpsolve55$/ccc.solaris lpsolve55$/ccc.os2 lpsolve55$/ccc.freebsd |
47 |
.ENDIF |
48 |
|
49 |
CONFIGURE_DIR= |
50 |
CONFIGURE_ACTION= |
51 |
CONFIGURE_FLAGS= |
52 |
|
53 |
BUILD_DIR=lpsolve55 |
54 |
.IF "$(GUI)"=="WNT" |
55 |
.IF "$(COM)"=="GCC" |
56 |
.IF "$(MINGW_SHARED_GCCLIB)"=="YES" |
57 |
lpsolve_LDFLAGS=-shared-libgcc |
58 |
.ENDIF |
59 |
.IF "$(MINGW_SHARED_GXXLIB)"=="YES" |
60 |
lpsolve_LIBS=$(MINGW_SHARED_LIBSTDCPP) |
61 |
.ENDIF |
62 |
BUILD_ACTION=lpsolve_LDFLAGS=$(lpsolve_LDFLAGS) lpsolve_LIBS=$(lpsolve_LIBS) cmd /c cgcc.bat |
63 |
.ELSE |
64 |
BUILD_ACTION=cmd /c cvc6.bat |
65 |
OUT2LIB=$(BUILD_DIR)$/lpsolve55.lib |
66 |
.ENDIF |
67 |
OUT2BIN=$(BUILD_DIR)$/lpsolve55.dll |
68 |
.ELIF "$(GUI)"=="OS2" |
69 |
BUILD_ACTION=sh ccc.os2 |
70 |
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.lib |
71 |
.ELSE |
72 |
.IF "$(OS)"=="MACOSX" |
73 |
.EXPORT: EXTRA_CDEFS EXTRA_LINKFLAGS |
74 |
BUILD_ACTION=sh ccc.osx |
75 |
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.dylib |
76 |
.ELSE |
77 |
.IF "$(COMNAME)"=="sunpro5" |
78 |
BUILD_ACTION=sh ccc.solaris |
79 |
.ELSE |
80 |
.IF "$(OS)"=="FREEBSD" |
81 |
BUILD_ACTION=sh -x ccc.freebsd |
82 |
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.so |
83 |
.ELSE |
84 |
BUILD_ACTION=sh ccc |
85 |
.ENDIF |
86 |
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.so |
87 |
.ENDIF |
88 |
.ENDIF |
89 |
.ENDIF |
90 |
|
91 |
OUT2INC=lp_lib.h lp_types.h lp_utils.h lp_Hash.h lp_matrix.h lp_mipbb.h lp_SOS.h |
92 |
|
93 |
# --- Targets ------------------------------------------------------ |
94 |
|
95 |
.INCLUDE : set_ext.mk |
96 |
.INCLUDE : target.mk |
97 |
.INCLUDE : tg_ext.mk |
98 |
|