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 = ..$/..$/..
25
26PRJNAME = desktop
27TARGET = unopkg
28.IF "$(GUI)" == "OS2"
29TARGETTYPE = CUI
30.ELSE
31TARGETTYPE = GUI
32.ENDIF
33ENABLE_EXCEPTIONS = TRUE
34LIBTARGET=NO
35
36PRJINC += ..$/..$/deployment ..$/..
37.INCLUDE : settings.mk
38.INCLUDE : $(PRJ)$/source$/deployment$/inc$/dp_misc.mk
39
40.IF "$(LINK_SO)"!=""
41APP1TARGET = so$/unopkg
42APP1OBJS = $(OBJFILES)
43APP1STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
44APP1DEPN = $(SHL1TARGETN)
45APP1NOSAL = TRUE
46APP1RPATH = BRAND
47.IF "$(OS)" == "WNT"
48APP1ICON = $(SOLARRESDIR)$/icons/so9_main_app.ico
49APP1LINKRES = $(MISC)$/$(TARGET)1.res
50.ENDIF
51.ENDIF			# "$(LINK_SO)"!=""
52
53APP2TARGET = unopkg
54APP2OBJS = $(OBJFILES)
55APP2STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
56APP2DEPN = $(SHL1TARGETN)
57APP2NOSAL = TRUE
58APP2RPATH = BRAND
59.IF "$(OS)" == "WNT"
60APP2ICON = $(SOLARRESDIR)$/icons/ooo3_main_app.ico
61APP2LINKRES = $(MISC)$/$(TARGET)2.res
62.ENDIF
63
64SHL1TARGET = unopkgapp
65SHL1OBJS = $(SLOFILES) $(SLO)$/lockfile.obj
66SHL1STDLIBS = \
67    $(SALLIB) \
68    $(CPPULIB) \
69    $(CPPUHELPERLIB) \
70    $(COMPHELPERLIB) \
71    $(UCBHELPERLIB) \
72    $(UNOTOOLSLIB) \
73    $(TOOLSLIB) \
74    $(VCLLIB) \
75    $(DEPLOYMENTMISCLIB)
76SHL1VERSIONMAP = version.map
77SHL1IMPLIB = i$(SHL1TARGET)
78DEF1NAME = $(SHL1TARGET)
79
80SLOFILES = \
81    $(SLO)$/unopkg_app.obj \
82    $(SLO)$/unopkg_cmdenv.obj \
83    $(SLO)$/unopkg_misc.obj
84
85OBJFILES = $(OBJ)$/unopkg_main.obj
86
87.INCLUDE : target.mk
88
89.IF "$(APP1TARGETN)" != "" # not set during depend=x
90$(APP1TARGETN) : $(MISC)$/binso_created.flg
91.ENDIF			# "$(APP1TARGETN)"!=""
92
93$(MISC)$/binso_created.flg:
94	@@-$(MKDIRHIER) $(BIN)$/so && $(TOUCH) $@
95	@@-$(MKDIRHIER) $(MISC)$/so && $(TOUCH) $@
96
97