update ooo310-m15
[ooovba.git] / formula / util / makefile.mk
blob432fd62ab4347f5f85938e372f62b3fc945b61da
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
33 PRJNAME=formula
34 TARGET=for
35 TARGET2=forui
36 USE_DEFFILE=TRUE
37 GEN_HID=TRUE
38 GEN_HID_OTHER=TRUE
40 # USE_LDUMP2=TRUE
41 # --- Settings ----------------------------------
42 .INCLUDE : settings.mk
45 # --- formula core (for) -----------------------------------
47 LIB1TARGET=$(SLB)$/$(TARGET).lib
48 LIB1FILES=\
49 $(SLB)$/core_resource.lib \
50 $(SLB)$/core_api.lib
52 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
54 SHL1STDLIBS= \
55 $(TOOLSLIB) \
56 $(SVLLIB) \
57 $(SVTOOLLIB) \
58 $(UNOTOOLSLIB) \
59 $(COMPHELPERLIB) \
60 $(CPPUHELPERLIB) \
61 $(CPPULIB) \
62 $(VCLLIB) \
63 $(TKLIB) \
64 $(VOSLIB) \
65 $(SALLIB)
67 SHL1IMPLIB=i$(TARGET)
68 SHL1USE_EXPORTS=name
69 SHL1LIBS=$(LIB1TARGET)
70 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
72 DEF1NAME=$(SHL1TARGET)
73 DEFLIB1NAME=$(TARGET)
75 # --- .res file ----------------------------------------------------------
77 RES1FILELIST=\
78 $(SRS)$/core_strings.srs
80 RESLIB1NAME=$(TARGET)
81 RESLIB1IMAGES=$(PRJ)$/res
82 RESLIB1SRSFILES=$(RES1FILELIST)
85 # --- formula UI core (forui) -----------------------------------
86 LIB2TARGET=$(SLB)$/$(TARGET2).lib
87 LIB2FILES=\
88 $(SLB)$/uidlg.lib \
89 $(SLB)$/ui_resource.lib
91 SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
93 SHL2STDLIBS= \
94 $(SFXLIB) \
95 $(SVTOOLLIB) \
96 $(TKLIB) \
97 $(VCLLIB) \
98 $(SVLLIB) \
99 $(SOTLIB) \
100 $(UNOTOOLSLIB) \
101 $(TOOLSLIB) \
102 $(COMPHELPERLIB) \
103 $(CPPUHELPERLIB) \
104 $(CPPULIB) \
105 $(SO2LIB) \
106 $(I18NISOLANGLIB) \
107 $(SALLIB)
109 .IF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
110 SHL2STDLIBS+= \
111 -lfor$(DLLPOSTFIX)
112 SHL2DEPN=$(SHL1TARGETN)
113 .ELSE
114 SHL2STDLIBS+= \
115 $(LB)$/ifor.lib
116 SHL2DEPN=$(LB)$/i$(TARGET).lib
117 .ENDIF
120 SHL2IMPLIB=i$(TARGET2)
121 SHL2LIBS=$(LIB2TARGET)
122 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
123 DEF2NAME=$(SHL2TARGET)
124 SHL2USE_EXPORTS=name
125 # SHL2VERSIONMAP=$(TARGET2).map
127 # --- .res file ----------------------------------------------------------
129 RES2FILELIST=\
130 $(SRS)$/uidlg.srs
133 RESLIB2NAME=$(TARGET2)
134 RESLIB2IMAGES=$(PRJ)$/res
135 RESLIB2SRSFILES=$(RES2FILELIST)
138 # --- Targets ----------------------------------
140 .INCLUDE : target.mk