xref: /aoo41x/main/sc/util/makefile.mk (revision 9ab250bf)
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)$/sidebar.srs \
45	$(SRS)$/core.srs 	\
46	$(SRS)$/styleui.srs	\
47	$(SRS)$/formdlgs.srs \
48	$(SRS)$/pagedlg.srs	\
49	$(SRS)$/navipi.srs	\
50	$(SRS)$/cctrl.srs	\
51
52
53RESLIB1NAME=sc
54RESLIB1IMAGES=\
55	$(PRJ)$/res					\
56	$(PRJ)$/res/imglst/apptbx	\
57	$(PRJ)$/res/imglst/dbgui	\
58	$(PRJ)$/res/imglst/navipi
59
60RESLIB1SRSFILES=\
61	$(RESLIB1LIST)
62
63# --- StarClac DLL
64
65SHL1TARGET= sc$(DLLPOSTFIX)
66SHL1USE_EXPORTS=name
67SHL1IMPLIB= sci
68
69# dynamic libraries
70SHL1STDLIBS=       \
71	$(BASICLIB)	\
72	$(SFXLIB)		\
73	$(SVTOOLLIB)	\
74	$(SVLLIB)		\
75	$(SVXCORELIB)		\
76	$(EDITENGLIB)		\
77	$(SVXLIB)		\
78    $(BASEGFXLIB) \
79	$(DRAWINGLAYERLIB) \
80	$(VCLLIB)		\
81	$(CPPULIB)		\
82	$(CPPUHELPERLIB)	\
83	$(COMPHELPERLIB)	\
84	$(UCBHELPERLIB)	\
85	$(VBAHELPERLIB)	\
86	$(TKLIB)		\
87	$(VOSLIB)		\
88	$(SALLIB)		\
89	$(TOOLSLIB)	\
90	$(I18NISOLANGLIB) \
91	$(UNOTOOLSLIB) \
92	$(SOTLIB)		\
93	$(XMLOFFLIB)	\
94	$(AVMEDIALIB) \
95	$(FORLIB) \
96    $(FORUILIB) \
97    $(ICUINLIB) \
98	$(ICUUCLIB) \
99	$(ICUDATALIB)
100
101SHL1LIBS=$(LIB3TARGET) $(LIB4TARGET)
102
103SHL1DEF=$(MISC)$/$(SHL1TARGET).def
104DEF1NAME=$(SHL1TARGET)
105DEFLIB1NAME= $(LIB3TARGET:b) $(LIB4TARGET:b)
106
107.IF "$(GUI)" == "WNT"
108SHL1RES=    $(RCTARGET)
109.ENDIF
110
111# --- Linken der Applikation ---------------------------------------
112
113LIB3TARGET=$(SLB)$/scalc3.lib
114LIB3FILES=	\
115	$(SLB)$/app.lib \
116	$(SLB)$/docshell.lib \
117	$(SLB)$/view.lib \
118	$(SLB)$/undo.lib \
119	$(SLB)$/attrdlg.lib \
120	$(SLB)$/namedlg.lib \
121	$(SLB)$/miscdlgs.lib \
122	$(SLB)$/formdlgs.lib \
123	$(SLB)$/cctrl.lib \
124	$(SLB)$/dbgui.lib \
125	$(SLB)$/pagedlg.lib \
126	$(SLB)$/drawfunc.lib \
127	$(SLB)$/sidebar.lib \
128	$(SLB)$/navipi.lib
129
130LIB3FILES+= \
131			$(SLB)$/unoobj.lib
132
133
134LIB4TARGET=$(SLB)$/scalc3c.lib
135LIB4FILES=	\
136	$(SLB)$/data.lib \
137	$(SLB)$/tool.lib \
138	$(SLB)$/xml.lib \
139	$(SLB)$/accessibility.lib
140
141SHL2TARGET= scd$(DLLPOSTFIX)
142SHL2IMPLIB= scdimp
143SHL2VERSIONMAP=$(SOLARENV)/src/component.map
144SHL2DEF=$(MISC)$/$(SHL2TARGET).def
145DEF2NAME=		$(SHL2TARGET)
146
147SHL2STDLIBS= \
148			$(SFX2LIB) \
149			$(SVTOOLLIB) \
150			$(SVLLIB) \
151			$(VCLLIB) \
152			$(TOOLSLIB) \
153			$(UCBHELPERLIB)	\
154			$(CPPUHELPERLIB) \
155			$(CPPULIB) \
156			$(SOTLIB) \
157			$(SALLIB)
158
159SHL2OBJS=   $(SLO)$/scdetect.obj \
160	    $(SLO)$/detreg.obj
161SHL2DEPN+=	makefile.mk
162
163# split out filters
164SHL6TARGET= scfilt$(DLLPOSTFIX)
165SHL6IMPLIB= scfiltimp
166SHL6LIBS= \
167	$(SLB)$/ftools.lib \
168	$(SLB)$/excel.lib \
169	$(SLB)$/xcl97.lib \
170	$(SLB)$/lotus.lib \
171	$(SLB)$/qpro.lib \
172	$(SLB)$/dif.lib \
173	$(SLB)$/html.lib \
174	$(SLB)$/rtf.lib \
175	$(SLB)$/scflt.lib
176SHL6VERSIONMAP= scfilt.map
177SHL6DEF=$(MISC)$/$(SHL6TARGET).def
178DEF6NAME= $(SHL6TARGET)
179SHL6DEPN=$(SHL1TARGETN)
180SHL6STDLIBS= \
181	$(ISCLIB) \
182	$(BASICLIB)	\
183	$(SFXLIB)		\
184	$(SVTOOLLIB)	\
185	$(SVLLIB)		\
186	$(SVXCORELIB)		\
187	$(EDITENGLIB)		\
188	$(MSFILTERLIB)		\
189	$(SVXLIB)		\
190    $(BASEGFXLIB) \
191	$(DRAWINGLAYERLIB) \
192	$(VCLLIB)		\
193	$(CPPULIB)		\
194	$(CPPUHELPERLIB)	\
195	$(COMPHELPERLIB)	\
196	$(TKLIB)		\
197	$(VOSLIB)		\
198	$(SALLIB)		\
199	$(TOOLSLIB)	\
200	$(UNOTOOLSLIB) \
201	$(SOTLIB)		\
202	$(OOXLIB)       \
203	$(SAXLIB) \
204    $(FORLIB)
205
206# add for scui
207SHL8TARGET= scui$(DLLPOSTFIX)
208SHL8IMPLIB= scuiimp
209SHL8VERSIONMAP= scui.map
210SHL8DEF=$(MISC)$/$(SHL8TARGET).def
211SHL8DEPN=$(SHL1TARGETN)
212DEF8NAME=$(SHL8TARGET)
213
214SHL8STDLIBS= \
215			$(ISCLIB) \
216        	$(EDITENGLIB)		\
217            $(SVXCORELIB) \
218            $(SVXLIB) \
219            $(SFX2LIB) \
220            $(SVTOOLLIB) \
221            $(VCLLIB) \
222			$(SVLLIB) \
223			$(SOTLIB) \
224			$(UNOTOOLSLIB) \
225            $(TOOLSLIB) \
226            $(I18NISOLANGLIB) \
227			$(COMPHELPERLIB) \
228			$(CPPULIB) \
229            $(SALLIB) \
230            $(FORLIB) \
231            $(FORUILIB)
232.IF "$(ENABLE_LAYOUT)" == "TRUE"
233SHL8STDLIBS+=$(TKLIB)
234.ENDIF # ENABLE_LAYOUT == TRUE
235
236SHL8LIBS=   $(SLB)$/scui.lib
237LIB8TARGET = $(SLB)$/scui.lib
238
239LIB8FILES=$(SLB)$/styleui.lib	\
240		$(SLB)$/optdlg.lib
241
242LIB8OBJFILES = \
243		$(SLO)$/scuiexp.obj     \
244		$(SLO)$/scdlgfact.obj \
245		$(SLO)$/tpsubt.obj		\
246		$(SLO)$/tptable.obj	\
247		$(SLO)$/tpstat.obj	\
248		$(SLO)$/tabpages.obj	\
249		$(SLO)$/tpsort.obj		\
250		$(SLO)$/sortdlg.obj		\
251		$(SLO)$/validate.obj	\
252		$(SLO)$/textdlgs.obj		\
253		$(SLO)$/subtdlg.obj		\
254		$(SLO)$/tphf.obj		\
255		$(SLO)$/scuitphfedit.obj	\
256		$(SLO)$/hfedtdlg.obj	\
257		$(SLO)$/attrdlg.obj	\
258		$(SLO)$/scuiimoptdlg.obj	\
259		$(SLO)$/strindlg.obj		\
260        $(SLO)$/tabbgcolordlg.obj   \
261		$(SLO)$/shtabdlg.obj		\
262		$(SLO)$/scendlg.obj		\
263		$(SLO)$/pvfundlg.obj	\
264		$(SLO)$/pfiltdlg.obj	\
265		$(SLO)$/namepast.obj		\
266		$(SLO)$/namecrea.obj		\
267		$(SLO)$/mvtabdlg.obj		\
268		$(SLO)$/mtrindlg.obj		\
269		$(SLO)$/linkarea.obj		\
270		$(SLO)$/lbseldlg.obj		\
271		$(SLO)$/instbdlg.obj		\
272		$(SLO)$/inscodlg.obj		\
273		$(SLO)$/inscldlg.obj		\
274		$(SLO)$/groupdlg.obj		\
275		$(SLO)$/filldlg.obj			\
276		$(SLO)$/delcodlg.obj		\
277		$(SLO)$/delcldlg.obj		\
278		$(SLO)$/dapitype.obj	\
279		$(SLO)$/dapidata.obj	\
280		$(SLO)$/crdlg.obj			\
281		$(SLO)$/scuiasciiopt.obj	\
282		$(SLO)$/textimportoptions.obj	\
283		$(SLO)$/scuiautofmt.obj	\
284	    $(SLO)$/dpgroupdlg.obj	\
285		$(SLO)$/editfield.obj
286
287TARGET_VBA=vbaobj
288SHL9TARGET=$(TARGET_VBA)$(DLLPOSTFIX).uno
289SHL9IMPLIB=	i$(TARGET_VBA)
290
291SHL9VERSIONMAP=$(SOLARENV)/src/component.map
292SHL9DEF=$(MISC)$/$(SHL9TARGET).def
293DEF9NAME=$(SHL9TARGET)
294SHL9RPATH=OOO
295
296SHL9STDLIBS= \
297		$(VBAHELPERLIB) \
298		$(CPPUHELPERLIB) \
299		$(VCLLIB) \
300		$(CPPULIB) \
301		$(COMPHELPERLIB) \
302		$(SVLIB) \
303		$(TOOLSLIB) \
304		$(SALLIB)\
305		$(BASICLIB)	\
306		$(SFXLIB)	\
307    	$(EDITENGLIB)		\
308		$(SVXCORELIB)	\
309		$(SVTOOLLIB)    \
310		$(SVLLIB) \
311		$(ISCLIB) \
312        $(VCLLIB) \
313        $(TKLIB) \
314	    $(MSFILTERLIB)		\
315	    $(UNOTOOLSLIB)		\
316        $(FORLIB)
317
318SHL9DEPN=$(SHL1TARGETN) $(SHL8TARGETN)
319SHL9LIBS=$(SLB)$/$(TARGET_VBA).lib
320
321.IF "$(GUI)"=="UNX" || "$(GUI)"=="MAC"
322    LIBCOMPNAME=$(LOCAL_COMMON_OUT)$/lib/lib$(SHL9TARGET)$(DLLPOST)
323.ELSE
324    LIBCOMPNAME=$(COMMONBIN)$/$(SHL9TARGET)$(DLLPOST)
325.ENDIF
326
327# --- Targets -------------------------------------------------------------
328
329.INCLUDE :  target.mk
330
331ALLTAR:	$(MISC)$/linkinc.ls  $(COMP)
332
333ALLTAR : $(MISC)/sc.component $(MISC)/scd.component $(MISC)/vbaobj.component
334
335$(MISC)/sc.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
336        sc.component
337    $(XSLTPROC) --nonet --stringparam uri \
338        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
339        $(SOLARENV)/bin/createcomponent.xslt sc.component
340
341$(MISC)/scd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
342        scd.component
343    $(XSLTPROC) --nonet --stringparam uri \
344        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
345        $(SOLARENV)/bin/createcomponent.xslt scd.component
346
347$(MISC)/vbaobj.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
348        vbaobj.component
349    $(XSLTPROC) --nonet --stringparam uri \
350        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL9TARGETN:f)' -o $@ \
351        $(SOLARENV)/bin/createcomponent.xslt vbaobj.component
352