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
23PRJ=..$/..$/..
24
25PRJNAME=shell
26TARGET=gconfbe
27
28LIBTARGET=NO
29ENABLE_EXCEPTIONS=TRUE
30VISIBILITY_HIDDEN=TRUE
31
32# --- Settings ---
33
34.INCLUDE : settings.mk
35
36# no "lib" prefix
37DLLPRE =
38
39.IF "$(ENABLE_LOCKDOWN)" == "YES"
40CFLAGS+=-DENABLE_LOCKDOWN
41.ENDIF
42
43.IF "$(ENABLE_GCONF)"!=""
44COMPILER_WARN_ALL=TRUE
45PKGCONFIG_MODULES=gconf-2.0 gobject-2.0 ORBit-2.0 glib-2.0
46.INCLUDE: pkg_config.mk
47
48.IF "$(OS)" == "SOLARIS"
49LINKFLAGS+=-z nodefs
50.ENDIF          # "$(OS)" == "SOLARIS"
51
52.IF "$(OS)" == "LINUX"
53# hack for faked SO environment
54CFLAGS+=-gdwarf-2
55PKGCONFIG_LIBS!:=-Wl,--export-dynamic $(PKGCONFIG_LIBS)
56.ENDIF
57
58# --- Files ---
59
60
61SLOFILES=\
62    $(SLO)$/gconfaccess.obj \
63	$(SLO)$/gconfbackend.obj
64
65SHL1NOCHECK=TRUE
66SHL1TARGET=$(TARGET)1.uno
67SHL1OBJS=$(SLOFILES)
68SHL1DEF=$(MISC)$/$(SHL1TARGET).def
69
70SHL1IMPLIB=i$(SHL1TARGET)
71SHL1STDLIBS=    \
72        $(CPPUHELPERLIB) \
73        $(CPPULIB) \
74        $(SALLIB)
75
76SHL1STDLIBS+=$(PKGCONFIG_LIBS)
77
78SHL1DEF=$(MISC)$/$(SHL1TARGET).def
79DEF1NAME=$(SHL1TARGET)
80
81.ENDIF          # "$(ENABLE_GCONF)"!=""
82
83# --- Targets ---
84
85.INCLUDE : target.mk
86
87ALLTAR : $(MISC)/gconfbe1.component
88
89$(MISC)/gconfbe1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
90        gconfbe1.component
91    $(XSLTPROC) --nonet --stringparam uri \
92        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
93        $(SOLARENV)/bin/createcomponent.xslt gconfbe1.component
94