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_LIBXML)" == "YES"
56CFLAGS+= $(LIBXML_CFLAGS)
57.ELSE
58LIBXMLINCDIR=external$/libxml
59CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
60.ENDIF
61
62.IF "$(SYSTEM_LIBXSLT)" == "YES"
63CFLAGS+= $(LIBXSLT_CFLAGS)
64.ELSE
65LIBXSLTINCDIR=external$/libxslt
66CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
67.ENDIF
68
69.IF "$(GUI)"=="WNT"
70CFLAGS+=-GR
71.ENDIF
72
73# --- General -----------------------------------------------------
74
75SLOFILES=\
76	$(SLO)$/db.obj                     \
77	$(SLO)$/databases.obj          \
78	$(SLO)$/services.obj    	   \
79	$(SLO)$/resultset.obj     	   \
80	$(SLO)$/resultsetbase.obj      \
81	$(SLO)$/resultsetforroot.obj   \
82	$(SLO)$/resultsetforquery.obj  \
83	$(SLO)$/contentcaps.obj        \
84	$(SLO)$/provider.obj    	   \
85	$(SLO)$/content.obj     	   \
86	$(SLO)$/urlparameter.obj       \
87	$(SLO)$/inputstream.obj        \
88	$(SLO)$/bufferedinputstream.obj
89
90# --- Targets ----------------------------------------------------------
91
92.INCLUDE: target.mk
93
94