1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ = ..$/..$/..
29
30PRJNAME = desktop
31TARGET = unopkg
32.IF "$(GUI)" == "OS2"
33TARGETTYPE = CUI
34.ELSE
35TARGETTYPE = GUI
36.ENDIF
37ENABLE_EXCEPTIONS = TRUE
38LIBTARGET=NO
39
40PRJINC += ..$/..$/deployment ..$/..
41.INCLUDE : settings.mk
42.INCLUDE : $(PRJ)$/source$/deployment$/inc$/dp_misc.mk
43
44.IF "$(LINK_SO)"!=""
45APP1TARGET = so$/unopkg
46APP1OBJS = $(OBJFILES)
47APP1STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
48APP1DEPN = $(SHL1TARGETN)
49APP1NOSAL = TRUE
50APP1RPATH = BRAND
51.IF "$(OS)" == "WNT"
52APP1ICON = $(SOLARRESDIR)$/icons/so9_main_app.ico
53APP1LINKRES = $(MISC)$/$(TARGET)1.res
54.ENDIF
55.ENDIF			# "$(LINK_SO)"!=""
56
57APP2TARGET = unopkg
58APP2OBJS = $(OBJFILES)
59APP2STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
60APP2DEPN = $(SHL1TARGETN)
61APP2NOSAL = TRUE
62APP2RPATH = BRAND
63.IF "$(OS)" == "WNT"
64APP2ICON = $(SOLARRESDIR)$/icons/ooo3_main_app.ico
65APP2LINKRES = $(MISC)$/$(TARGET)2.res
66.ENDIF
67
68SHL1TARGET = unopkgapp
69SHL1OBJS = $(SLOFILES) $(SLO)$/lockfile.obj
70SHL1STDLIBS = \
71    $(SALLIB) \
72    $(CPPULIB) \
73    $(CPPUHELPERLIB) \
74    $(COMPHELPERLIB) \
75    $(UCBHELPERLIB) \
76    $(UNOTOOLSLIB) \
77    $(TOOLSLIB) \
78    $(VCLLIB) \
79    $(DEPLOYMENTMISCLIB)
80SHL1VERSIONMAP = version.map
81SHL1IMPLIB = i$(SHL1TARGET)
82DEF1NAME = $(SHL1TARGET)
83
84SLOFILES = \
85    $(SLO)$/unopkg_app.obj \
86    $(SLO)$/unopkg_cmdenv.obj \
87    $(SLO)$/unopkg_misc.obj
88
89OBJFILES = $(OBJ)$/unopkg_main.obj
90
91.INCLUDE : target.mk
92
93.IF "$(APP1TARGETN)" != "" # not set during depend=x
94$(APP1TARGETN) : $(MISC)$/binso_created.flg
95.ENDIF			# "$(APP1TARGETN)"!=""
96
97$(MISC)$/binso_created.flg:
98	@@-$(MKDIRHIER) $(BIN)$/so && $(TOUCH) $@
99	@@-$(MKDIRHIER) $(MISC)$/so && $(TOUCH) $@
100
101