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
22CALL_CDECL=TRUE
23
24PRJ=..$/..
25PRJNAME=extensions
26TARGET=mozbootstrap
27
28.IF "$(OS)" == "OS2" || "$(OS)" == "WNT"
29all:
30	@echo "    Not building under Windows / OS/2"
31.ENDIF
32
33# --- Settings ----------------------------------
34
35LIBTARGET=NO
36ENABLE_EXCEPTIONS=TRUE
37VISIBILITY_HIDDEN=TRUE
38
39.INCLUDE : settings.mk
40
41# no "lib" prefix
42DLLPRE =
43
44# --- Files -------------------------------------
45
46SLOFILES += \
47	$(SLO)$/MNSINIParser.obj \
48	$(SLO)$/MNSProfileDiscover.obj \
49	$(SLO)$/MMozillaBootstrap.obj \
50	$(SLO)$/MNSFolders.obj
51
52# CDEFS+=-DMINIMAL_PROFILEDISCOVER
53
54SHL1TARGET=$(TARGET).uno
55SHL1VERSIONMAP=$(SOLARENV)/src/component.map
56SHL1OBJS=$(SLOFILES)
57SHL1DEF=$(MISC)$/$(SHL1TARGET).def
58DEF1NAME=$(SHL1TARGET)
59
60SHL1STDLIBS=\
61        $(CPPULIB)       \
62        $(CPPUHELPERLIB) \
63        $(SALLIB)        \
64        $(COMPHELPERLIB)
65
66ALLTAR : $(MISC)/mozbootstrap.component
67
68$(MISC)/mozbootstrap.component .ERRREMOVE : \
69	$(SOLARENV)/bin/createcomponent.xslt mozbootstrap.component
70	$(XSLTPROC) --nonet --stringparam uri \
71	'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
72	$(SOLARENV)/bin/createcomponent.xslt mozbootstrap.component
73
74# --- Targets ----------------------------------
75
76.INCLUDE : target.mk
77