Update ooo320-m1
[ooovba.git] / xmlhelp / source / cxxhelp / provider / makefile.mk
blobdee7d40d9540bd09aa94d51594ca4cc35dce2692
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 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21 $
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 #*************************************************************************
32 PRJ=..$/..$/..
33 PRJNAME=xmlhelp
34 TARGET=chelp
36 ENABLE_EXCEPTIONS=TRUE
37 USE_DEFFILE=TRUE
38 NO_BSYMBOLIC=TRUE
41 # --- Settings ---------------------------------------------------------
43 .INCLUDE: settings.mk
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.
51 .IF "$(COM)"=="GCC"
52 .IF "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
53 CFLAGSWERRCXX:=
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)
61 .ENDIF
63 .IF "$(SYSTEM_LIBXML)" == "YES"
64 CFLAGS+= $(LIBXML_CFLAGS)
65 .ELSE
66 LIBXMLINCDIR=external$/libxml
67 CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
68 .ENDIF
70 .IF "$(SYSTEM_LIBXSLT)" == "YES"
71 CFLAGS+= $(LIBXSLT_CFLAGS)
72 .ELSE
73 LIBXSLTINCDIR=external$/libxslt
74 CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
75 .ENDIF
77 .IF "$(GUI)"=="WNT"
78 CFLAGS+=-GR
79 .ENDIF
81 # --- General -----------------------------------------------------
83 SLOFILES=\
84 $(SLO)$/services.obj \
85 $(SLO)$/provider.obj \
86 $(SLO)$/content.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 \
95 $(SLO)$/db.obj \
96 $(SLO)$/bufferedinputstream.obj
98 # --- Targets ----------------------------------------------------------
100 .INCLUDE: target.mk