1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ = ..$/..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME = desktop
27cdf0e10cSrcweirTARGET = unopkg
28cdf0e10cSrcweir.IF "$(GUI)" == "OS2"
29cdf0e10cSrcweirTARGETTYPE = CUI
30cdf0e10cSrcweir.ELSE
31cdf0e10cSrcweirTARGETTYPE = GUI
32cdf0e10cSrcweir.ENDIF
33cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE
34cdf0e10cSrcweirLIBTARGET=NO
35cdf0e10cSrcweir
36cdf0e10cSrcweirPRJINC += ..$/..$/deployment ..$/..
37cdf0e10cSrcweir.INCLUDE : settings.mk
38cdf0e10cSrcweir.INCLUDE : $(PRJ)$/source$/deployment$/inc$/dp_misc.mk
39cdf0e10cSrcweir
40cdf0e10cSrcweir.IF "$(LINK_SO)"!=""
41cdf0e10cSrcweirAPP1TARGET = so$/unopkg
42cdf0e10cSrcweirAPP1OBJS = $(OBJFILES)
43cdf0e10cSrcweirAPP1STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
44cdf0e10cSrcweirAPP1DEPN = $(SHL1TARGETN)
45cdf0e10cSrcweirAPP1NOSAL = TRUE
46cdf0e10cSrcweirAPP1RPATH = BRAND
47cdf0e10cSrcweir.IF "$(OS)" == "WNT"
48cdf0e10cSrcweirAPP1ICON = $(SOLARRESDIR)$/icons/so9_main_app.ico
49cdf0e10cSrcweirAPP1LINKRES = $(MISC)$/$(TARGET)1.res
50cdf0e10cSrcweir.ENDIF
51cdf0e10cSrcweir.ENDIF			# "$(LINK_SO)"!=""
52cdf0e10cSrcweir
53cdf0e10cSrcweirAPP2TARGET = unopkg
54cdf0e10cSrcweirAPP2OBJS = $(OBJFILES)
55cdf0e10cSrcweirAPP2STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
56cdf0e10cSrcweirAPP2DEPN = $(SHL1TARGETN)
57cdf0e10cSrcweirAPP2NOSAL = TRUE
58cdf0e10cSrcweirAPP2RPATH = BRAND
59cdf0e10cSrcweir.IF "$(OS)" == "WNT"
60cdf0e10cSrcweirAPP2ICON = $(SOLARRESDIR)$/icons/ooo3_main_app.ico
61cdf0e10cSrcweirAPP2LINKRES = $(MISC)$/$(TARGET)2.res
62cdf0e10cSrcweir.ENDIF
63cdf0e10cSrcweir
64cdf0e10cSrcweirSHL1TARGET = unopkgapp
65cdf0e10cSrcweirSHL1OBJS = $(SLOFILES) $(SLO)$/lockfile.obj
66cdf0e10cSrcweirSHL1STDLIBS = \
67cdf0e10cSrcweir    $(SALLIB) \
68cdf0e10cSrcweir    $(CPPULIB) \
69cdf0e10cSrcweir    $(CPPUHELPERLIB) \
70cdf0e10cSrcweir    $(COMPHELPERLIB) \
71cdf0e10cSrcweir    $(UCBHELPERLIB) \
72cdf0e10cSrcweir    $(UNOTOOLSLIB) \
73cdf0e10cSrcweir    $(TOOLSLIB) \
74cdf0e10cSrcweir    $(VCLLIB) \
75cdf0e10cSrcweir    $(DEPLOYMENTMISCLIB)
76cdf0e10cSrcweirSHL1VERSIONMAP = version.map
77cdf0e10cSrcweirSHL1IMPLIB = i$(SHL1TARGET)
78cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
79cdf0e10cSrcweir
80cdf0e10cSrcweirSLOFILES = \
81cdf0e10cSrcweir    $(SLO)$/unopkg_app.obj \
82cdf0e10cSrcweir    $(SLO)$/unopkg_cmdenv.obj \
83cdf0e10cSrcweir    $(SLO)$/unopkg_misc.obj
84cdf0e10cSrcweir
85cdf0e10cSrcweirOBJFILES = $(OBJ)$/unopkg_main.obj
86cdf0e10cSrcweir
87cdf0e10cSrcweir.INCLUDE : target.mk
88cdf0e10cSrcweir
89cdf0e10cSrcweir.IF "$(APP1TARGETN)" != "" # not set during depend=x
90cdf0e10cSrcweir$(APP1TARGETN) : $(MISC)$/binso_created.flg
91cdf0e10cSrcweir.ENDIF			# "$(APP1TARGETN)"!=""
92cdf0e10cSrcweir
93cdf0e10cSrcweir$(MISC)$/binso_created.flg:
94cdf0e10cSrcweir	@@-$(MKDIRHIER) $(BIN)$/so && $(TOUCH) $@
95cdf0e10cSrcweir	@@-$(MKDIRHIER) $(MISC)$/so && $(TOUCH) $@
96cdf0e10cSrcweir
97