merged tag ooo/DEV300_m102
[LibreOffice.git] / lpsolve / makefile.mk
blob06cc41772dbf9c9f91e6e7b11fb698da21efc0a3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=lpsolve
31 TARGET=lpsolve
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME=lp_solve_5.5
40 TARFILE_MD5=26b3e95ddf3d9c077c480ea45874b3b8
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
47 .ENDIF
49 CONFIGURE_DIR=
50 CONFIGURE_ACTION=
51 CONFIGURE_FLAGS=
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 BUILD_ACTION=sh ccc
81 .ENDIF
82 OUT2LIB=$(BUILD_DIR)$/liblpsolve55.so
83 .ENDIF
84 .ENDIF
86 OUT2INC=lp_lib.h lp_types.h lp_utils.h lp_Hash.h lp_matrix.h lp_mipbb.h lp_SOS.h
88 # --- Targets ------------------------------------------------------
90 .INCLUDE : set_ext.mk
91 .INCLUDE : target.mk
92 .INCLUDE : tg_ext.mk