1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
41 # --- Settings ---------------------------------------------------------
45 # GCC versions 4.2.x introduced a warning "allocating zero-element array"
46 # Allocating zero-element arrays is an allowed if not somewhat dubious
47 # technique though, so this warning is plain wrong and has been fixed
48 # in gcc 4.3. Unfortunately there is no way at all to suppress this warning.
49 # Some files in this directory use zero allocated arrays, we need to
50 # diable the WaE mechanism for the GCC 4.2.x series.
52 .IF
"$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
54 .ENDIF
# "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
55 .ENDIF
# "$(COM)"=="GCC"
57 CFLAGS
+= -DHAVE_EXPAT_H
59 .IF
"$(SYSTEM_DB)" == "YES"
60 CFLAGS
+=-DSYSTEM_DB
-I
$(DB_INCLUDES
)
63 .IF
"$(SYSTEM_LIBXML)" == "YES"
64 CFLAGS
+= $(LIBXML_CFLAGS
)
66 LIBXMLINCDIR
=external
$/libxml
67 CFLAGS
+= -I
$(SOLARINCDIR
)$/$(LIBXMLINCDIR
)
70 .IF
"$(SYSTEM_LIBXSLT)" == "YES"
71 CFLAGS
+= $(LIBXSLT_CFLAGS
)
73 LIBXSLTINCDIR
=external
$/libxslt
74 CFLAGS
+= -I
$(SOLARINCDIR
)$/$(LIBXSLTINCDIR
)
81 # --- General -----------------------------------------------------
84 $(SLO
)$/services.obj \
85 $(SLO
)$/provider.obj \
87 $(SLO
)$/resultset.obj \
88 $(SLO
)$/resultsetbase.obj \
89 $(SLO
)$/resultsetforroot.obj \
90 $(SLO
)$/resultsetforquery.obj \
91 $(SLO
)$/contentcaps.obj \
92 $(SLO
)$/urlparameter.obj \
93 $(SLO
)$/inputstream.obj \
94 $(SLO
)$/databases.obj \
96 $(SLO
)$/bufferedinputstream.obj
98 # --- Targets ----------------------------------------------------------