xref: /aoo41x/main/sd/util/makefile.mk (revision 02c50d82)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sd
27cdf0e10cSrcweirTARGET=sdraw3
28cdf0e10cSrcweirGEN_HID=TRUE
29cdf0e10cSrcweirGEN_HID_OTHER=TRUE
30cdf0e10cSrcweirUSE_DEFFILE=TRUE
31cdf0e10cSrcweir
32cdf0e10cSrcweir# --- Settings -----------------------------------------------------------
33cdf0e10cSrcweir
34cdf0e10cSrcweir.INCLUDE :  settings.mk
35cdf0e10cSrcweir
36cdf0e10cSrcweir# --- Resources ----------------------------------------------------
37cdf0e10cSrcweir
38cdf0e10cSrcweirRESLIB1NAME=sd
39cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res/imagelst $(PRJ)$/res
40cdf0e10cSrcweirRESLIB1SRSFILES=\
41cdf0e10cSrcweir	$(SRS)$/app.srs				\
42cdf0e10cSrcweir	$(SRS)$/dlg.srs				\
43cdf0e10cSrcweir	$(SRS)$/core.srs			\
44cdf0e10cSrcweir	$(SRS)$/html.srs			\
45cdf0e10cSrcweir	$(SRS)$/accessibility.srs	\
46cdf0e10cSrcweir	$(SRS)$/notes.srs			\
47cdf0e10cSrcweir	$(SRS)$/animui.srs			\
48cdf0e10cSrcweir	$(SRS)$/slideshow.srs		\
49cdf0e10cSrcweir	$(SRS)$/slsview.srs			\
50cdf0e10cSrcweir	$(SRS)$/uitable.srs			\
51cdf0e10cSrcweir	$(SRS)$/view.srs			\
52cdf0e10cSrcweir	$(SRS)$/uiannotations.srs	\
53cdf0e10cSrcweir
54cdf0e10cSrcweir
55cdf0e10cSrcweir# --- StarDraw DLL
56cdf0e10cSrcweir
57cdf0e10cSrcweirSHL1TARGET= sd$(DLLPOSTFIX)
58cdf0e10cSrcweirSHL1USE_EXPORTS=name
59cdf0e10cSrcweirSHL1IMPLIB= sdi
60cdf0e10cSrcweir
61cdf0e10cSrcweir# dynamic libraries
62cdf0e10cSrcweirSHL1STDLIBS+= \
63cdf0e10cSrcweir	$(EDITENGLIB) \
64cdf0e10cSrcweir	$(SVXCORELIB) \
65cdf0e10cSrcweir	$(SVXLIB) \
66cdf0e10cSrcweir	$(SFXLIB) \
67cdf0e10cSrcweir	$(BASICLIB) \
68cdf0e10cSrcweir	$(CPPCANVASLIB) \
69cdf0e10cSrcweir	$(BASEGFXLIB) \
70cdf0e10cSrcweir	$(DRAWINGLAYERLIB) \
71cdf0e10cSrcweir    $(BASEGFXLIB) \
72cdf0e10cSrcweir	$(SVTOOLLIB) \
73cdf0e10cSrcweir	$(TKLIB) \
74cdf0e10cSrcweir	$(VCLLIB) \
75cdf0e10cSrcweir	$(SVLLIB) \
76cdf0e10cSrcweir	$(SOTLIB) \
77cdf0e10cSrcweir	$(UNOTOOLSLIB) \
78cdf0e10cSrcweir	$(TOOLSLIB) \
79cdf0e10cSrcweir	$(I18NISOLANGLIB) \
80cdf0e10cSrcweir	$(COMPHELPERLIB) \
81cdf0e10cSrcweir	$(UCBHELPERLIB) \
82cdf0e10cSrcweir	$(CPPUHELPERLIB) \
83cdf0e10cSrcweir	$(CPPULIB) \
84cdf0e10cSrcweir	$(VOSLIB) \
85cdf0e10cSrcweir	$(CANVASTOOLSLIB) \
86cdf0e10cSrcweir	$(SALLIB) \
87cdf0e10cSrcweir	$(AVMEDIALIB)
88cdf0e10cSrcweir
89cdf0e10cSrcweirSHL1LIBS= $(LIB3TARGET) $(LIB5TARGET) $(LIB6TARGET)
90cdf0e10cSrcweirSHL1DEPN+=	makefile.mk
91cdf0e10cSrcweir
92cdf0e10cSrcweirSHL1DEF=    $(MISC)$/$(SHL1TARGET).def
93cdf0e10cSrcweirDEF1DEPN        =$(MISC)$/$(SHL1TARGET).flt
94cdf0e10cSrcweirDEF1NAME	=$(SHL1TARGET)
95cdf0e10cSrcweirDEFLIB1NAME = $(TARGET) $(LIB5TARGET:b) $(LIB6TARGET:b)
96cdf0e10cSrcweir
97cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
98cdf0e10cSrcweirSHL1RES=    $(RCTARGET)
99cdf0e10cSrcweir.ENDIF
100cdf0e10cSrcweir
101cdf0e10cSrcweir# --- Linken der Applikation ---------------------------------------
102cdf0e10cSrcweir
103cdf0e10cSrcweirLIB2TARGET=$(SLB)$/sdmod.lib
104cdf0e10cSrcweirLIB2OBJFILES=   \
105cdf0e10cSrcweir			$(SLO)$/sdmod1.obj      \
106cdf0e10cSrcweir			$(SLO)$/sdmod2.obj      \
107cdf0e10cSrcweir			$(SLO)$/sdmod.obj
108cdf0e10cSrcweir
109cdf0e10cSrcweirLIB3TARGET=$(SLB)$/sdraw3.lib
110cdf0e10cSrcweirLIB3FILES=      \
111cdf0e10cSrcweir			$(SLB)$/view.lib        \
112cdf0e10cSrcweir			$(SLB)$/app.lib			\
113cdf0e10cSrcweir			$(SLB)$/docshell.lib    \
114cdf0e10cSrcweir			$(SLB)$/dlg.lib			\
115cdf0e10cSrcweir			$(SLB)$/core.lib		\
116cdf0e10cSrcweir			$(SLB)$/undo.lib		\
117cdf0e10cSrcweir			$(SLB)$/annotations.lib	\
118cdf0e10cSrcweir			$(SLB)$/text.lib		\
119cdf0e10cSrcweir			$(SLB)$/helper.lib		\
120cdf0e10cSrcweir			$(SLB)$/xml.lib			\
121cdf0e10cSrcweir			$(SLB)$/cgm.lib			\
122cdf0e10cSrcweir			$(SLB)$/uitable.lib		\
123cdf0e10cSrcweir			$(SLB)$/uiannotations.lib\
124cdf0e10cSrcweir			$(SLB)$/grf.lib \
125cdf0e10cSrcweir			$(SLB)$/controller.lib
126cdf0e10cSrcweir
127cdf0e10cSrcweirLIB5TARGET=$(SLB)$/sdraw3_2.lib
1287a32b0c8SAndre FischerLIB5FILES=     							\
1297a32b0c8SAndre Fischer			$(SLB)$/html.lib			\
1307a32b0c8SAndre Fischer			$(SLB)$/filter.lib			\
1317a32b0c8SAndre Fischer			$(SLB)$/unoidl.lib			\
1327a32b0c8SAndre Fischer			$(SLB)$/animui.lib			\
133cdf0e10cSrcweir			$(SLB)$/accessibility.lib	\
134cdf0e10cSrcweir			$(SLB)$/uitools.lib			\
135*02c50d82SAndre Fischer			$(SLB)$/sidebar.lib
136cdf0e10cSrcweir
137cdf0e10cSrcweirLIB6TARGET=$(SLB)$/sdraw3_3.lib
138cdf0e10cSrcweirLIB6FILES=      								\
139cdf0e10cSrcweir			$(SLB)$/func.lib        			\
140cdf0e10cSrcweir			$(SLB)$/func_2.lib        			\
141cdf0e10cSrcweir			$(SLB)$/slsshell.lib				\
142cdf0e10cSrcweir			$(SLB)$/slsmodel.lib				\
143cdf0e10cSrcweir			$(SLB)$/slsview.lib					\
144cdf0e10cSrcweir			$(SLB)$/slscontroller.lib			\
145cdf0e10cSrcweir			$(SLB)$/slscache.lib				\
146cdf0e10cSrcweir			$(SLB)$/slideshow.lib				\
147cdf0e10cSrcweir			$(SLB)$/framework_configuration.lib	\
148cdf0e10cSrcweir			$(SLB)$/framework_factories.lib		\
149cdf0e10cSrcweir			$(SLB)$/framework_module.lib		\
150cdf0e10cSrcweir			$(SLB)$/framework_tools.lib			\
151cdf0e10cSrcweir			$(SLB)$/presenter.lib
152cdf0e10cSrcweir
153cdf0e10cSrcweir# sdd
154cdf0e10cSrcweirSHL2TARGET= sdd$(DLLPOSTFIX)
155cdf0e10cSrcweirSHL2IMPLIB= sddimp
156cdf0e10cSrcweirSHL2VERSIONMAP=$(SOLARENV)/src/component.map
157cdf0e10cSrcweirSHL2DEF=$(MISC)$/$(SHL2TARGET).def
158cdf0e10cSrcweirDEF2NAME=		$(SHL2TARGET)
159cdf0e10cSrcweir
160cdf0e10cSrcweirSHL2STDLIBS= \
161cdf0e10cSrcweir			$(SFX2LIB) \
162cdf0e10cSrcweir			$(SVXCORELIB) \
163cdf0e10cSrcweir			$(SVTOOLLIB) \
164cdf0e10cSrcweir			$(SVLLIB) \
165cdf0e10cSrcweir			$(VCLLIB) \
166cdf0e10cSrcweir                        $(SOTLIB) \
167cdf0e10cSrcweir			$(TOOLSLIB) \
168cdf0e10cSrcweir              $(UNOTOOLSLIB)      \
169cdf0e10cSrcweir			$(UCBHELPERLIB) \
170cdf0e10cSrcweir			$(CPPUHELPERLIB) \
171cdf0e10cSrcweir			$(CPPULIB) \
172cdf0e10cSrcweir			$(SALLIB)
173cdf0e10cSrcweir
174cdf0e10cSrcweirSHL2OBJS=   $(SLO)$/sddetect.obj \
175cdf0e10cSrcweir	    $(SLO)$/detreg.obj
176cdf0e10cSrcweir
177cdf0e10cSrcweirSHL2DEPN+=  makefile.mk
178cdf0e10cSrcweir
179cdf0e10cSrcweir# sdui
180cdf0e10cSrcweirSHL4TARGET= sdui$(DLLPOSTFIX)
181cdf0e10cSrcweirSHL4IMPLIB= sduiimp
182cdf0e10cSrcweirSHL4VERSIONMAP= sdui.map
183cdf0e10cSrcweirSHL4DEF=$(MISC)$/$(SHL4TARGET).def
184cdf0e10cSrcweirDEF4NAME=       $(SHL4TARGET)
185cdf0e10cSrcweirSHL4LIBS=   $(SLB)$/sdui_all.lib
186cdf0e10cSrcweir
187cdf0e10cSrcweirLIB4TARGET=	$(SLB)$/sdui_all.lib
188cdf0e10cSrcweirLIB4FILES=	\
189cdf0e10cSrcweir	$(SLB)$/sdui.lib \
190cdf0e10cSrcweir	$(SLB)$/func_ui.lib \
191cdf0e10cSrcweir	$(SLB)$/html_ui.lib
192cdf0e10cSrcweir
193cdf0e10cSrcweirSHL4STDLIBS= \
194cdf0e10cSrcweir	$(ISDLIB) \
195cdf0e10cSrcweir	$(EDITENGLIB) \
196cdf0e10cSrcweir	$(SVXCORELIB) \
197cdf0e10cSrcweir	$(SVXLIB) \
198cdf0e10cSrcweir	$(SFXLIB) \
199cdf0e10cSrcweir	$(BASEGFXLIB) \
200cdf0e10cSrcweir	$(SO2LIB) \
201cdf0e10cSrcweir	$(SVTOOLLIB) \
202cdf0e10cSrcweir	$(VCLLIB) \
203cdf0e10cSrcweir	$(SVLLIB) \
204cdf0e10cSrcweir	$(SOTLIB) \
205cdf0e10cSrcweir	$(UNOTOOLSLIB) \
206cdf0e10cSrcweir	$(TOOLSLIB) \
207cdf0e10cSrcweir	$(I18NISOLANGLIB) \
208cdf0e10cSrcweir	$(COMPHELPERLIB) \
209cdf0e10cSrcweir	$(CPPUHELPERLIB) \
210cdf0e10cSrcweir	$(CPPULIB) \
211cdf0e10cSrcweir	$(CANVASLIB) \
212cdf0e10cSrcweir	$(SALLIB)
213cdf0e10cSrcweir
214cdf0e10cSrcweir.IF "$(GUI)$(COM)" == "WNTMSC"
215cdf0e10cSrcweir.IF "$(ENABLE_PCH)" != ""
216cdf0e10cSrcweir#target sd
217cdf0e10cSrcweirSHL1OBJS += $(SLO)$/pchname.obj \
218cdf0e10cSrcweir            $(SLO)$/pchname_ex.obj
219cdf0e10cSrcweir#target sdd
220cdf0e10cSrcweirSHL2OBJS += $(SLO)$/pchname.obj \
221cdf0e10cSrcweir            $(SLO)$/pchname_ex.obj
222cdf0e10cSrcweir#target sdui
223cdf0e10cSrcweirSHL4OBJS += $(SLO)$/pchname.obj \
224cdf0e10cSrcweir            $(SLO)$/pchname_ex.obj
225cdf0e10cSrcweir.ENDIF # "$(ENABLE_PCH)" != ""
226cdf0e10cSrcweir.ENDIF # "$(GUI)$(COM)" == "WNTMSC"
227cdf0e10cSrcweir
228cdf0e10cSrcweir# $(ISDLIB) is build in SHL1TARGET
229cdf0e10cSrcweir.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
230cdf0e10cSrcweirSHL4DEPN=$(SHL1TARGETN)
231cdf0e10cSrcweirSHL5DEPN=$(SHL1TARGETN)
232cdf0e10cSrcweir.ELSE
233cdf0e10cSrcweirSHL4DEPN=$(SHL1IMPLIBN)
234cdf0e10cSrcweirSHL5DEPN=$(SHL1IMPLIBN)
235cdf0e10cSrcweir.ENDIF
236cdf0e10cSrcweir
237cdf0e10cSrcweir# ppt import/export library
238cdf0e10cSrcweirSHL5TARGET    = sdfilt$(DLLPOSTFIX)
239cdf0e10cSrcweirSHL5IMPLIB    = sdfilti
240cdf0e10cSrcweirSHL5VERSIONMAP= sdfilt.map
241cdf0e10cSrcweirSHL5DEF       = $(MISC)$/$(SHL5TARGET).def
242cdf0e10cSrcweirSHL5LIBS      = $(SLB)$/ppt.lib $(SLB)$/eppt.lib
243cdf0e10cSrcweir
244cdf0e10cSrcweirDEF5NAME=$(SHL5TARGET)
245cdf0e10cSrcweir
246cdf0e10cSrcweirSHL5STDLIBS = $(ISDLIB) \
247cdf0e10cSrcweir              $(EDITENGLIB)       \
248cdf0e10cSrcweir              $(SVXCORELIB)       \
249cdf0e10cSrcweir              $(MSFILTERLIB)   \
250cdf0e10cSrcweir              $(SFX2LIB)          \
251cdf0e10cSrcweir              $(SVTOOLLIB)        \
252cdf0e10cSrcweir              $(SOTLIB)           \
253cdf0e10cSrcweir              $(VCLLIB)           \
254cdf0e10cSrcweir              $(SVLLIB)           \
255cdf0e10cSrcweir              $(SOTLIB)           \
256cdf0e10cSrcweir              $(UNOTOOLSLIB)      \
257cdf0e10cSrcweir              $(TOOLSLIB)         \
258cdf0e10cSrcweir              $(UCBHELPERLIB)     \
259cdf0e10cSrcweir              $(CPPUHELPERLIB)    \
260cdf0e10cSrcweir              $(CPPULIB)          \
261cdf0e10cSrcweir              $(SALLIB)           \
262cdf0e10cSrcweir              $(COMPHELPERLIB)    \
263cdf0e10cSrcweir              $(I18NISOLANGLIB)
264cdf0e10cSrcweir
265cdf0e10cSrcweir# --- Targets -------------------------------------------------------------
266cdf0e10cSrcweir
267cdf0e10cSrcweir.INCLUDE :  target.mk
268cdf0e10cSrcweir
269cdf0e10cSrcweir$(MISC)$/$(SHL1TARGET).flt: makefile.mk
270cdf0e10cSrcweir    @echo ------------------------------
271cdf0e10cSrcweir    @echo Making: $@
272cdf0e10cSrcweir    @$(TYPE) sd.flt > $@
273cdf0e10cSrcweir
274cdf0e10cSrcweirALLTAR : $(MISC)/sd.component $(MISC)/sdd.component
275cdf0e10cSrcweir
276cdf0e10cSrcweir$(MISC)/sd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
277cdf0e10cSrcweir        sd.component
278cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
279cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
280cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt sd.component
281cdf0e10cSrcweir
282cdf0e10cSrcweir$(MISC)/sdd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
283cdf0e10cSrcweir        sdd.component
284cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
285cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
286cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt sdd.component
287