1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..$/..
25PRJNAME=xmlhelp
26TARGET=chelp
27
28ENABLE_EXCEPTIONS=TRUE
29USE_DEFFILE=TRUE
30NO_BSYMBOLIC=TRUE
31
32
33# --- Settings ---------------------------------------------------------
34
35.INCLUDE: settings.mk
36
37# GCC versions 4.2.x introduced a warning "allocating zero-element array"
38# Allocating zero-element arrays is an allowed if not somewhat dubious
39# technique though, so this warning is plain wrong and has been fixed
40# in gcc 4.3. Unfortunately there is no way at all to suppress this warning.
41# Some files in this directory use zero allocated arrays, we need to
42# disable the WaE mechanism for the GCC 4.2.x series.
43.IF "$(COM)"=="GCC"
44.IF "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
45CFLAGSWERRCXX:=
46.ENDIF # "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
47.ENDIF # "$(COM)"=="GCC"
48
49CFLAGS +=  -DHAVE_EXPAT_H
50
51.IF "$(SYSTEM_LIBXML)" == "YES"
52CFLAGS+= $(LIBXML_CFLAGS)
53.ELSE
54LIBXMLINCDIR=external$/libxml
55CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
56.ENDIF
57
58.IF "$(SYSTEM_LIBXSLT)" == "YES"
59CFLAGS+= $(LIBXSLT_CFLAGS)
60.ELSE
61LIBXSLTINCDIR=external$/libxslt
62CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
63.ENDIF
64
65.IF "$(GUI)"=="WNT"
66CFLAGS+=-GR
67.ENDIF
68
69# --- General -----------------------------------------------------
70
71SLOFILES=\
72	$(SLO)$/db.obj                     \
73	$(SLO)$/databases.obj          \
74	$(SLO)$/services.obj    	   \
75	$(SLO)$/resultset.obj     	   \
76	$(SLO)$/resultsetbase.obj      \
77	$(SLO)$/resultsetforroot.obj   \
78	$(SLO)$/resultsetforquery.obj  \
79	$(SLO)$/contentcaps.obj        \
80	$(SLO)$/provider.obj    	   \
81	$(SLO)$/content.obj     	   \
82	$(SLO)$/urlparameter.obj       \
83	$(SLO)$/inputstream.obj        \
84	$(SLO)$/bufferedinputstream.obj
85
86# --- Targets ----------------------------------------------------------
87
88.INCLUDE: target.mk
89
90