Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / postgresql / makefile.mk
blob4550ad5188bc6f72cd9d998b498adb288a107d41
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
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=postgresql
31 TARGET=so_postgresql
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME=postgresql-9.1.1
40 TARFILE_MD5=061a9f17323117c9358ed60f33ecff78
41 PATCH_FILES=\
42 postgresql-moz-ldap.patch \
43 postgresql-libs-leak.patch \
44 libpq-parallel-build.patch \
45 $(TARFILE_NAME)-libreoffice.patch \
46 $(TARFILE_NAME)-autoreconf.patch
48 .IF "$(SYSTEM_POSTGRESQL)" == "YES"
49 @all:
50 @echo "Using system postgresql..."
51 .ENDIF
54 .IF "$(GUI)$(COM)"=="WNTMSC"
55 CONFIGURE_DIR=.
56 BUILD_DIR=src
58 CONFIGURE_ACTION =
59 BUILD_ACTION = nmake -f win32.mak USE_SSL=1
60 .IF "$(WITH_LDAP)" == "YES"
61 BUILD_ACTION += USE_LDAP=1
62 .IF "$(WITH_OPENLDAP)" != "YES"
63 SOLARINC += -I$(SOLARVER)$/$(INPATH)$/inc$/mozilla$/ldap
64 BUILD_ACTION += USE_MOZLDAP=1
65 .ENDIF
66 .ENDIF # "$(WITH_LDAP)" == "YES"
67 .ELSE #"$(GUI)$(COM)"!="WNTMSC"
68 CONFIGURE_DIR=.
69 BUILD_DIR=src/interfaces/libpq
71 CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" LDFLAGS="$(SOLARLIB)" ./configure --without-readline --disable-shared --with-openssl
73 .IF "$(CROSS_COMPILING)" == "YES"
74 CONFIGURE_ACTION += --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
75 .ENDIF
77 .IF "$(WITH_LDAP)" == "YES"
78 CONFIGURE_ACTION += --with-ldap
79 .IF "$(WITH_OPENLDAP)" != "YES"
80 CONFIGURE_ACTION += --with-includes='$(SOLARVER)$/$(INPATH)$/inc$/mozilla$/ldap' --with-mozldap
81 .ENDIF
82 .ENDIF # "$(WITH_LDAP)" == "YES"
84 .IF "$(WITH_KRB5)" == "YES"
85 CONFIGURE_ACTION += --with-krb5
86 .ENDIF
87 .IF "$(WITH_GSSAPI)" == "YES"
88 CONFIGURE_ACTION += --with-gssapi
89 .ENDIF
91 BUILD_ACTION = make -j$(GMAKE_MODULE_PARALLELISM) all-static-lib libpq-flags.mk
93 .ENDIF # "$(GUI)$(COM)"=="WNTMSC"
95 # --- Targets ------------------------------------------------------
97 .INCLUDE : set_ext.mk
98 .INCLUDE : target.mk
99 .INCLUDE : tg_ext.mk