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
28PRJ=..$/..$/..
29PRJNAME=xmlhelp
30TARGET=chelp
31
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34NO_BSYMBOLIC=TRUE
35
36
37# --- Settings ---------------------------------------------------------
38
39.INCLUDE: settings.mk
40
41# GCC versions 4.2.x introduced a warning "allocating zero-element array"
42# Allocating zero-element arrays is an allowed if not somewhat dubious
43# technique though, so this warning is plain wrong and has been fixed
44# in gcc 4.3. Unfortunately there is no way at all to suppress this warning.
45# Some files in this directory use zero allocated arrays, we need to
46# diable the WaE mechanism for the GCC 4.2.x series.
47.IF "$(COM)"=="GCC"
48.IF "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
49CFLAGSWERRCXX:=
50.ENDIF # "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
51.ENDIF # "$(COM)"=="GCC"
52
53CFLAGS +=  -DHAVE_EXPAT_H
54
55.IF "$(SYSTEM_DB)" == "YES"
56CFLAGS+=-DSYSTEM_DB -I$(DB_INCLUDES)
57.ENDIF
58
59.IF "$(SYSTEM_LIBXML)" == "YES"
60CFLAGS+= $(LIBXML_CFLAGS)
61.ELSE
62LIBXMLINCDIR=external$/libxml
63CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
64.ENDIF
65
66.IF "$(SYSTEM_LIBXSLT)" == "YES"
67CFLAGS+= $(LIBXSLT_CFLAGS)
68.ELSE
69LIBXSLTINCDIR=external$/libxslt
70CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
71.ENDIF
72
73.IF "$(GUI)"=="WNT"
74CFLAGS+=-GR
75.ENDIF
76
77# --- General -----------------------------------------------------
78
79SLOFILES=\
80	$(SLO)$/services.obj    	   \
81	$(SLO)$/provider.obj    	   \
82	$(SLO)$/content.obj     	   \
83	$(SLO)$/resultset.obj     	   \
84	$(SLO)$/resultsetbase.obj      \
85	$(SLO)$/resultsetforroot.obj   \
86	$(SLO)$/resultsetforquery.obj  \
87	$(SLO)$/contentcaps.obj        \
88	$(SLO)$/urlparameter.obj       \
89	$(SLO)$/inputstream.obj        \
90	$(SLO)$/databases.obj          \
91	$(SLO)$/db.obj		           \
92	$(SLO)$/bufferedinputstream.obj
93
94# --- Targets ----------------------------------------------------------
95
96.INCLUDE: target.mk
97
98