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 "$(SYSTEM_DB)" == "YES"
45CFLAGS+=-DSYSTEM_DB -I$(DB_INCLUDES)
46.ENDIF
47
48.IF "$(LINK_SO)"!=""
49APP1TARGET = so$/unopkg
50APP1OBJS = $(OBJFILES)
51APP1STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
52APP1DEPN = $(SHL1TARGETN)
53APP1NOSAL = TRUE
54APP1RPATH = BRAND
55.IF "$(OS)" == "WNT"
56APP1ICON = $(SOLARRESDIR)$/icons/so9_main_app.ico
57APP1LINKRES = $(MISC)$/$(TARGET)1.res
58.ENDIF
59.ENDIF			# "$(LINK_SO)"!=""
60
61APP2TARGET = unopkg
62APP2OBJS = $(OBJFILES)
63APP2STDLIBS = $(SALLIB) $(UNOPKGAPPLIB)
64APP2DEPN = $(SHL1TARGETN)
65APP2NOSAL = TRUE
66APP2RPATH = BRAND
67.IF "$(OS)" == "WNT"
68APP2ICON = $(SOLARRESDIR)$/icons/ooo3_main_app.ico
69APP2LINKRES = $(MISC)$/$(TARGET)2.res
70.ENDIF
71
72SHL1TARGET = unopkgapp
73SHL1OBJS = $(SLOFILES) $(SLO)$/lockfile.obj
74SHL1STDLIBS = \
75    $(SALLIB) \
76    $(CPPULIB) \
77    $(CPPUHELPERLIB) \
78    $(COMPHELPERLIB) \
79    $(UCBHELPERLIB) \
80    $(UNOTOOLSLIB) \
81    $(TOOLSLIB) \
82    $(VCLLIB) \
83    $(DEPLOYMENTMISCLIB)
84SHL1VERSIONMAP = version.map
85SHL1IMPLIB = i$(SHL1TARGET)
86DEF1NAME = $(SHL1TARGET)
87
88SLOFILES = \
89    $(SLO)$/unopkg_app.obj \
90    $(SLO)$/unopkg_cmdenv.obj \
91    $(SLO)$/unopkg_misc.obj
92
93OBJFILES = $(OBJ)$/unopkg_main.obj
94
95.INCLUDE : target.mk
96
97.IF "$(APP1TARGETN)" != "" # not set during depend=x
98$(APP1TARGETN) : $(MISC)$/binso_created.flg
99.ENDIF			# "$(APP1TARGETN)"!=""
100
101$(MISC)$/binso_created.flg:
102	@@-$(MKDIRHIER) $(BIN)$/so && $(TOUCH) $@
103	@@-$(MKDIRHIER) $(MISC)$/so && $(TOUCH) $@
104
105