merge the formfield patch from ooo-build
[ooovba.git] / sd / util / makefile.mk
blobcf9a516094b717e07be8070b693f9d351f9ab6d7
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.58 $
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=..
34 PRJNAME=sd
35 TARGET=sdraw3
36 GEN_HID=TRUE
37 GEN_HID_OTHER=TRUE
38 USE_DEFFILE=TRUE
40 # --- Settings -----------------------------------------------------------
42 .INCLUDE : settings.mk
44 # --- Resources ----------------------------------------------------
46 RESLIB1NAME=sd
47 RESLIB1IMAGES=$(PRJ)$/res/imagelst $(PRJ)$/res
48 RESLIB1SRSFILES=\
49 $(SRS)$/app.srs \
50 $(SRS)$/dlg.srs \
51 $(SRS)$/core.srs \
52 $(SRS)$/html.srs \
53 $(SRS)$/accessibility.srs \
54 $(SRS)$/notes.srs \
55 $(SRS)$/animui.srs \
56 $(SRS)$/slideshow.srs \
57 $(SRS)$/uitable.srs \
58 $(SRS)$/uiannotations.srs \
59 $(SOLARCOMMONRESDIR)$/sfx.srs
61 # --- StarDraw DLL
63 SHL1TARGET= sd$(DLLPOSTFIX)
64 SHL1USE_EXPORTS=name
65 SHL1IMPLIB= sdi
67 # dynamic libraries
68 SHL1STDLIBS+= \
69 $(SVXCORELIB) \
70 $(SVXLIB) \
71 $(SFXLIB) \
72 $(BASICLIB) \
73 $(CPPCANVASLIB) \
74 $(BASEGFXLIB) \
75 $(DRAWINGLAYERLIB) \
76 $(GOODIESLIB) \
77 $(BASEGFXLIB) \
78 $(SVTOOLLIB) \
79 $(TKLIB) \
80 $(VCLLIB) \
81 $(SVLLIB) \
82 $(SOTLIB) \
83 $(UNOTOOLSLIB) \
84 $(TOOLSLIB) \
85 $(I18NISOLANGLIB) \
86 $(COMPHELPERLIB) \
87 $(UCBHELPERLIB) \
88 $(CPPUHELPERLIB) \
89 $(CPPULIB) \
90 $(VOSLIB) \
91 $(CANVASLIB) \
92 $(SALLIB) \
93 $(AVMEDIALIB)
95 SHL1LIBS= $(LIB3TARGET) $(LIB5TARGET) $(LIB6TARGET)
96 SHL1DEPN+= makefile.mk
98 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
99 DEF1DEPN =$(MISC)$/$(SHL1TARGET).flt
100 DEF1NAME =$(SHL1TARGET)
101 DEFLIB1NAME = $(TARGET) $(LIB5TARGET:b) $(LIB6TARGET:b)
103 .IF "$(GUI)" == "WNT"
104 SHL1RES= $(RCTARGET)
105 .ENDIF
107 # --- Linken der Applikation ---------------------------------------
109 LIB2TARGET=$(SLB)$/sdmod.lib
110 LIB2OBJFILES= \
111 $(SLO)$/sdmod1.obj \
112 $(SLO)$/sdmod2.obj \
113 $(SLO)$/sdmod.obj
115 LIB3TARGET=$(SLB)$/sdraw3.lib
116 LIB3FILES= \
117 $(SLB)$/view.lib \
118 $(SLB)$/app.lib \
119 $(SLB)$/docshell.lib \
120 $(SLB)$/dlg.lib \
121 $(SLB)$/core.lib \
122 $(SLB)$/undo.lib \
123 $(SLB)$/annotations.lib \
124 $(SLB)$/text.lib \
125 $(SLB)$/helper.lib \
126 $(SLB)$/xml.lib \
127 $(SLB)$/cgm.lib \
128 $(SLB)$/uitable.lib \
129 $(SLB)$/uiannotations.lib\
130 $(SLB)$/grf.lib
132 LIB5TARGET=$(SLB)$/sdraw3_2.lib
133 LIB5FILES= \
134 $(SLB)$/html.lib \
135 $(SLB)$/filter.lib \
136 $(SLB)$/unoidl.lib \
137 $(SLB)$/animui.lib \
138 $(SLB)$/accessibility.lib \
139 $(SLB)$/toolpanel.lib \
140 $(SLB)$/uitools.lib \
141 $(SLB)$/tpcontrols.lib
143 LIB6TARGET=$(SLB)$/sdraw3_3.lib
144 LIB6FILES= \
145 $(SLB)$/func.lib \
146 $(SLB)$/func_2.lib \
147 $(SLB)$/slsshell.lib \
148 $(SLB)$/slsmodel.lib \
149 $(SLB)$/slsview.lib \
150 $(SLB)$/slscontroller.lib \
151 $(SLB)$/slscache.lib \
152 $(SLB)$/slideshow.lib \
153 $(SLB)$/framework_configuration.lib \
154 $(SLB)$/framework_factories.lib \
155 $(SLB)$/framework_module.lib \
156 $(SLB)$/framework_tools.lib \
157 $(SLB)$/presenter.lib
159 # sdd
160 SHL2TARGET= sdd$(DLLPOSTFIX)
161 SHL2IMPLIB= sddimp
162 SHL2VERSIONMAP= sdd.map
163 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
164 DEF2NAME= $(SHL2TARGET)
166 SHL2STDLIBS= \
167 $(SFX2LIB) \
168 $(SVXCORELIB) \
169 $(SVTOOLLIB) \
170 $(SVLLIB) \
171 $(VCLLIB) \
172 $(SOTLIB) \
173 $(TOOLSLIB) \
174 $(UCBHELPERLIB) \
175 $(CPPUHELPERLIB) \
176 $(CPPULIB) \
177 $(SALLIB)
179 SHL2OBJS= $(SLO)$/sddetect.obj \
180 $(SLO)$/detreg.obj
182 SHL2DEPN+= makefile.mk
184 # sdui
185 SHL4TARGET= sdui$(DLLPOSTFIX)
186 SHL4IMPLIB= sduiimp
187 SHL4VERSIONMAP= sdui.map
188 SHL4DEF=$(MISC)$/$(SHL4TARGET).def
189 DEF4NAME= $(SHL4TARGET)
190 SHL4LIBS= $(SLB)$/sdui_all.lib
192 LIB4TARGET= $(SLB)$/sdui_all.lib
193 LIB4FILES= \
194 $(SLB)$/sdui.lib \
195 $(SLB)$/func_ui.lib \
196 $(SLB)$/html_ui.lib
198 SHL4STDLIBS= \
199 $(ISDLIB) \
200 $(SVXCORELIB) \
201 $(SVXLIB) \
202 $(SFXLIB) \
203 $(BASEGFXLIB) \
204 $(SO2LIB) \
205 $(SVTOOLLIB) \
206 $(VCLLIB) \
207 $(SVLLIB) \
208 $(SOTLIB) \
209 $(UNOTOOLSLIB) \
210 $(TOOLSLIB) \
211 $(I18NISOLANGLIB) \
212 $(COMPHELPERLIB) \
213 $(CPPUHELPERLIB) \
214 $(CPPULIB) \
215 $(CANVASLIB) \
216 $(SALLIB)
218 .IF "$(GUI)$(COM)" == "WNTMSC"
219 .IF "$(ENABLE_PCH)" != ""
220 #target sd
221 SHL1OBJS += $(SLO)$/pchname.obj \
222 $(SLO)$/pchname_ex.obj
223 #target sdd
224 SHL2OBJS += $(SLO)$/pchname.obj \
225 $(SLO)$/pchname_ex.obj
226 #target sdui
227 SHL4OBJS += $(SLO)$/pchname.obj \
228 $(SLO)$/pchname_ex.obj
229 .ENDIF # "$(ENABLE_PCH)" != ""
230 .ENDIF # "$(GUI)$(COM)" == "WNTMSC"
232 # $(ISDLIB) is build in SHL1TARGET
233 .IF "$(GUI)" == "UNX"
234 SHL4DEPN=$(SHL1TARGETN)
235 SHL5DEPN=$(SHL1TARGETN)
236 .ELSE
237 SHL4DEPN=$(SHL1IMPLIBN)
238 SHL5DEPN=$(SHL1IMPLIBN)
239 .ENDIF
241 # ppt import/export library
242 SHL5TARGET = sdfilt$(DLLPOSTFIX)
243 SHL5IMPLIB = sdfilti
244 SHL5VERSIONMAP= sdfilt.map
245 SHL5DEF = $(MISC)$/$(SHL5TARGET).def
246 SHL5LIBS = $(SLB)$/ppt.lib $(SLB)$/eppt.lib
248 DEF5NAME=$(SHL5TARGET)
250 SHL5STDLIBS = $(ISDLIB) \
251 $(SVXCORELIB) \
252 $(SVXMSFILTERLIB) \
253 $(SFX2LIB) \
254 $(SVTOOLLIB) \
255 $(SOTLIB) \
256 $(GOODIESLIB) \
257 $(VCLLIB) \
258 $(SVLLIB) \
259 $(SOTLIB) \
260 $(UNOTOOLSLIB) \
261 $(TOOLSLIB) \
262 $(UCBHELPERLIB) \
263 $(CPPUHELPERLIB) \
264 $(CPPULIB) \
265 $(SALLIB) \
266 $(COMPHELPERLIB) \
267 $(I18NISOLANGLIB)
269 # --- Targets -------------------------------------------------------------
271 .INCLUDE : target.mk
273 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
274 @echo ------------------------------
275 @echo Making: $@
276 @$(TYPE) sd.flt > $@