xref: /aoo41x/main/sc/util/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25
26PRJNAME=sc
27TARGET=scalc3
28GEN_HID=TRUE
29GEN_HID_OTHER=TRUE
30USE_DEFFILE=TRUE
31
32# --- Settings -----------------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36# --- Resourcen ----------------------------------------------------
37
38RESLIB1LIST=\
39	$(SRS)$/miscdlgs.srs	\
40	$(SRS)$/docshell.srs	\
41	$(SRS)$/ui.srs		\
42	$(SRS)$/dbgui.srs	\
43	$(SRS)$/drawfunc.srs \
44	$(SRS)$/core.srs 	\
45	$(SRS)$/styleui.srs	\
46	$(SRS)$/formdlgs.srs \
47	$(SRS)$/pagedlg.srs	\
48	$(SRS)$/navipi.srs	\
49	$(SRS)$/cctrl.srs	\
50
51
52RESLIB1NAME=sc
53RESLIB1IMAGES=\
54	$(PRJ)$/res					\
55	$(PRJ)$/res/imglst/apptbx	\
56	$(PRJ)$/res/imglst/dbgui	\
57	$(PRJ)$/res/imglst/navipi
58
59RESLIB1SRSFILES=\
60	$(RESLIB1LIST)
61
62# --- StarClac DLL
63
64SHL1TARGET= sc$(DLLPOSTFIX)
65SHL1USE_EXPORTS=name
66SHL1IMPLIB= sci
67
68# dynamic libraries
69SHL1STDLIBS=       \
70	$(BASICLIB)	\
71	$(SFXLIB)		\
72	$(SVTOOLLIB)	\
73	$(SVLLIB)		\
74	$(SVXCORELIB)		\
75	$(EDITENGLIB)		\
76	$(SVXLIB)		\
77    $(BASEGFXLIB) \
78	$(DRAWINGLAYERLIB) \
79	$(VCLLIB)		\
80	$(CPPULIB)		\
81	$(CPPUHELPERLIB)	\
82	$(COMPHELPERLIB)	\
83	$(UCBHELPERLIB)	\
84	$(VBAHELPERLIB)	\
85	$(TKLIB)		\
86	$(VOSLIB)		\
87	$(SALLIB)		\
88	$(TOOLSLIB)	\
89	$(I18NISOLANGLIB) \
90	$(UNOTOOLSLIB) \
91	$(SOTLIB)		\
92	$(XMLOFFLIB)	\
93	$(AVMEDIALIB) \
94	$(FORLIB) \
95    $(FORUILIB)
96
97SHL1LIBS=$(LIB3TARGET) $(LIB4TARGET)
98
99SHL1DEF=$(MISC)$/$(SHL1TARGET).def
100DEF1NAME=$(SHL1TARGET)
101DEFLIB1NAME= $(LIB3TARGET:b) $(LIB4TARGET:b)
102
103.IF "$(GUI)" == "WNT"
104SHL1RES=    $(RCTARGET)
105.ENDIF
106
107# --- Linken der Applikation ---------------------------------------
108
109LIB3TARGET=$(SLB)$/scalc3.lib
110LIB3FILES=	\
111	$(SLB)$/app.lib \
112	$(SLB)$/docshell.lib \
113	$(SLB)$/view.lib \
114	$(SLB)$/undo.lib \
115	$(SLB)$/attrdlg.lib \
116	$(SLB)$/namedlg.lib \
117	$(SLB)$/miscdlgs.lib \
118	$(SLB)$/formdlgs.lib \
119	$(SLB)$/cctrl.lib \
120	$(SLB)$/dbgui.lib \
121	$(SLB)$/pagedlg.lib \
122	$(SLB)$/drawfunc.lib \
123	$(SLB)$/navipi.lib
124
125LIB3FILES+= \
126			$(SLB)$/unoobj.lib
127
128
129LIB4TARGET=$(SLB)$/scalc3c.lib
130LIB4FILES=	\
131	$(SLB)$/data.lib \
132	$(SLB)$/tool.lib \
133	$(SLB)$/xml.lib \
134	$(SLB)$/accessibility.lib
135
136SHL2TARGET= scd$(DLLPOSTFIX)
137SHL2IMPLIB= scdimp
138SHL2VERSIONMAP=$(SOLARENV)/src/component.map
139SHL2DEF=$(MISC)$/$(SHL2TARGET).def
140DEF2NAME=		$(SHL2TARGET)
141
142SHL2STDLIBS= \
143			$(SFX2LIB) \
144			$(SVTOOLLIB) \
145			$(SVLLIB) \
146			$(VCLLIB) \
147			$(TOOLSLIB) \
148			$(UCBHELPERLIB)	\
149			$(CPPUHELPERLIB) \
150			$(CPPULIB) \
151			$(SOTLIB) \
152			$(SALLIB)
153
154SHL2OBJS=   $(SLO)$/scdetect.obj \
155	    $(SLO)$/detreg.obj
156SHL2DEPN+=	makefile.mk
157
158# split out filters
159SHL6TARGET= scfilt$(DLLPOSTFIX)
160SHL6IMPLIB= scfiltimp
161SHL6LIBS= \
162	$(SLB)$/ftools.lib \
163	$(SLB)$/excel.lib \
164	$(SLB)$/xcl97.lib \
165	$(SLB)$/lotus.lib \
166	$(SLB)$/qpro.lib \
167	$(SLB)$/dif.lib \
168	$(SLB)$/html.lib \
169	$(SLB)$/rtf.lib \
170	$(SLB)$/scflt.lib
171SHL6VERSIONMAP= scfilt.map
172SHL6DEF=$(MISC)$/$(SHL6TARGET).def
173DEF6NAME= $(SHL6TARGET)
174SHL6DEPN=$(SHL1TARGETN)
175SHL6STDLIBS= \
176	$(ISCLIB) \
177	$(BASICLIB)	\
178	$(SFXLIB)		\
179	$(SVTOOLLIB)	\
180	$(SVLLIB)		\
181	$(SVXCORELIB)		\
182	$(EDITENGLIB)		\
183	$(MSFILTERLIB)		\
184	$(SVXLIB)		\
185    $(BASEGFXLIB) \
186	$(DRAWINGLAYERLIB) \
187	$(VCLLIB)		\
188	$(CPPULIB)		\
189	$(CPPUHELPERLIB)	\
190	$(COMPHELPERLIB)	\
191	$(TKLIB)		\
192	$(VOSLIB)		\
193	$(SALLIB)		\
194	$(TOOLSLIB)	\
195	$(UNOTOOLSLIB) \
196	$(SOTLIB)		\
197	$(OOXLIB)       \
198	$(SAXLIB) \
199    $(FORLIB)
200
201# add for scui
202SHL8TARGET= scui$(DLLPOSTFIX)
203SHL8IMPLIB= scuiimp
204SHL8VERSIONMAP= scui.map
205SHL8DEF=$(MISC)$/$(SHL8TARGET).def
206SHL8DEPN=$(SHL1TARGETN)
207DEF8NAME=$(SHL8TARGET)
208
209SHL8STDLIBS= \
210			$(ISCLIB) \
211        	$(EDITENGLIB)		\
212            $(SVXCORELIB) \
213            $(SVXLIB) \
214            $(SFX2LIB) \
215            $(SVTOOLLIB) \
216            $(VCLLIB) \
217			$(SVLLIB) \
218			$(SOTLIB) \
219			$(UNOTOOLSLIB) \
220            $(TOOLSLIB) \
221            $(I18NISOLANGLIB) \
222			$(COMPHELPERLIB) \
223			$(CPPULIB) \
224            $(SALLIB) \
225            $(FORLIB) \
226            $(FORUILIB)
227.IF "$(ENABLE_LAYOUT)" == "TRUE"
228SHL8STDLIBS+=$(TKLIB)
229.ENDIF # ENABLE_LAYOUT == TRUE
230
231SHL8LIBS=   $(SLB)$/scui.lib
232LIB8TARGET = $(SLB)$/scui.lib
233
234LIB8FILES=$(SLB)$/styleui.lib	\
235		$(SLB)$/optdlg.lib
236
237LIB8OBJFILES = \
238		$(SLO)$/scuiexp.obj     \
239		$(SLO)$/scdlgfact.obj \
240		$(SLO)$/tpsubt.obj		\
241		$(SLO)$/tptable.obj	\
242		$(SLO)$/tpstat.obj	\
243		$(SLO)$/tabpages.obj	\
244		$(SLO)$/tpsort.obj		\
245		$(SLO)$/sortdlg.obj		\
246		$(SLO)$/validate.obj	\
247		$(SLO)$/textdlgs.obj		\
248		$(SLO)$/subtdlg.obj		\
249		$(SLO)$/tphf.obj		\
250		$(SLO)$/scuitphfedit.obj	\
251		$(SLO)$/hfedtdlg.obj	\
252		$(SLO)$/attrdlg.obj	\
253		$(SLO)$/scuiimoptdlg.obj	\
254		$(SLO)$/strindlg.obj		\
255        $(SLO)$/tabbgcolordlg.obj   \
256		$(SLO)$/shtabdlg.obj		\
257		$(SLO)$/scendlg.obj		\
258		$(SLO)$/pvfundlg.obj	\
259		$(SLO)$/pfiltdlg.obj	\
260		$(SLO)$/namepast.obj		\
261		$(SLO)$/namecrea.obj		\
262		$(SLO)$/mvtabdlg.obj		\
263		$(SLO)$/mtrindlg.obj		\
264		$(SLO)$/linkarea.obj		\
265		$(SLO)$/lbseldlg.obj		\
266		$(SLO)$/instbdlg.obj		\
267		$(SLO)$/inscodlg.obj		\
268		$(SLO)$/inscldlg.obj		\
269		$(SLO)$/groupdlg.obj		\
270		$(SLO)$/filldlg.obj			\
271		$(SLO)$/delcodlg.obj		\
272		$(SLO)$/delcldlg.obj		\
273		$(SLO)$/dapitype.obj	\
274		$(SLO)$/dapidata.obj	\
275		$(SLO)$/crdlg.obj			\
276		$(SLO)$/scuiasciiopt.obj	\
277		$(SLO)$/textimportoptions.obj	\
278		$(SLO)$/scuiautofmt.obj	\
279	    $(SLO)$/dpgroupdlg.obj	\
280		$(SLO)$/editfield.obj
281
282TARGET_VBA=vbaobj
283SHL9TARGET=$(TARGET_VBA)$(DLLPOSTFIX).uno
284SHL9IMPLIB=	i$(TARGET_VBA)
285
286SHL9VERSIONMAP=$(SOLARENV)/src/component.map
287SHL9DEF=$(MISC)$/$(SHL9TARGET).def
288DEF9NAME=$(SHL9TARGET)
289SHL9RPATH=OOO
290
291SHL9STDLIBS= \
292		$(VBAHELPERLIB) \
293		$(CPPUHELPERLIB) \
294		$(VCLLIB) \
295		$(CPPULIB) \
296		$(COMPHELPERLIB) \
297		$(SVLIB) \
298		$(TOOLSLIB) \
299		$(SALLIB)\
300		$(BASICLIB)	\
301		$(SFXLIB)	\
302    	$(EDITENGLIB)		\
303		$(SVXCORELIB)	\
304		$(SVTOOLLIB)    \
305		$(SVLLIB) \
306		$(ISCLIB) \
307        $(VCLLIB) \
308        $(TKLIB) \
309	    $(MSFILTERLIB)		\
310	    $(UNOTOOLSLIB)		\
311        $(FORLIB)
312
313SHL9DEPN=$(SHL1TARGETN) $(SHL8TARGETN)
314SHL9LIBS=$(SLB)$/$(TARGET_VBA).lib
315
316.IF "$(GUI)"=="UNX" || "$(GUI)"=="MAC"
317    LIBCOMPNAME=$(LOCAL_COMMON_OUT)$/lib/lib$(SHL9TARGET)$(DLLPOST)
318.ELSE
319    LIBCOMPNAME=$(COMMONBIN)$/$(SHL9TARGET)$(DLLPOST)
320.ENDIF
321
322# --- Targets -------------------------------------------------------------
323
324.INCLUDE :  target.mk
325
326ALLTAR:	$(MISC)$/linkinc.ls  $(COMP)
327
328ALLTAR : $(MISC)/sc.component $(MISC)/scd.component $(MISC)/vbaobj.component
329
330$(MISC)/sc.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
331        sc.component
332    $(XSLTPROC) --nonet --stringparam uri \
333        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
334        $(SOLARENV)/bin/createcomponent.xslt sc.component
335
336$(MISC)/scd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
337        scd.component
338    $(XSLTPROC) --nonet --stringparam uri \
339        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
340        $(SOLARENV)/bin/createcomponent.xslt scd.component
341
342$(MISC)/vbaobj.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
343        vbaobj.component
344    $(XSLTPROC) --nonet --stringparam uri \
345        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL9TARGETN:f)' -o $@ \
346        $(SOLARENV)/bin/createcomponent.xslt vbaobj.component
347