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=sd 27TARGET=sdraw3 28GEN_HID=TRUE 29GEN_HID_OTHER=TRUE 30USE_DEFFILE=TRUE 31 32# --- Settings ----------------------------------------------------------- 33 34.INCLUDE : settings.mk 35 36# --- Resources ---------------------------------------------------- 37 38RESLIB1NAME=sd 39RESLIB1IMAGES=$(PRJ)$/res/imagelst $(PRJ)$/res 40RESLIB1SRSFILES=\ 41 $(SRS)$/app.srs \ 42 $(SRS)$/dlg.srs \ 43 $(SRS)$/core.srs \ 44 $(SRS)$/html.srs \ 45 $(SRS)$/accessibility.srs \ 46 $(SRS)$/notes.srs \ 47 $(SRS)$/animui.srs \ 48 $(SRS)$/slideshow.srs \ 49 $(SRS)$/slsview.srs \ 50 $(SRS)$/uitable.srs \ 51 $(SRS)$/view.srs \ 52 $(SRS)$/uiannotations.srs \ 53 54 55# --- StarDraw DLL 56 57SHL1TARGET= sd$(DLLPOSTFIX) 58SHL1USE_EXPORTS=name 59SHL1IMPLIB= sdi 60 61# dynamic libraries 62SHL1STDLIBS+= \ 63 $(EDITENGLIB) \ 64 $(SVXCORELIB) \ 65 $(SVXLIB) \ 66 $(SFXLIB) \ 67 $(BASICLIB) \ 68 $(CPPCANVASLIB) \ 69 $(BASEGFXLIB) \ 70 $(DRAWINGLAYERLIB) \ 71 $(BASEGFXLIB) \ 72 $(SVTOOLLIB) \ 73 $(TKLIB) \ 74 $(VCLLIB) \ 75 $(SVLLIB) \ 76 $(SOTLIB) \ 77 $(UNOTOOLSLIB) \ 78 $(TOOLSLIB) \ 79 $(I18NISOLANGLIB) \ 80 $(COMPHELPERLIB) \ 81 $(UCBHELPERLIB) \ 82 $(CPPUHELPERLIB) \ 83 $(CPPULIB) \ 84 $(VOSLIB) \ 85 $(CANVASTOOLSLIB) \ 86 $(SALLIB) \ 87 $(AVMEDIALIB) 88 89SHL1LIBS= $(LIB3TARGET) $(LIB5TARGET) $(LIB6TARGET) 90SHL1DEPN+= makefile.mk 91 92SHL1DEF= $(MISC)$/$(SHL1TARGET).def 93DEF1DEPN =$(MISC)$/$(SHL1TARGET).flt 94DEF1NAME =$(SHL1TARGET) 95DEFLIB1NAME = $(TARGET) $(LIB5TARGET:b) $(LIB6TARGET:b) 96 97.IF "$(GUI)" == "WNT" 98SHL1RES= $(RCTARGET) 99.ENDIF 100 101# --- Linken der Applikation --------------------------------------- 102 103LIB2TARGET=$(SLB)$/sdmod.lib 104LIB2OBJFILES= \ 105 $(SLO)$/sdmod1.obj \ 106 $(SLO)$/sdmod2.obj \ 107 $(SLO)$/sdmod.obj 108 109LIB3TARGET=$(SLB)$/sdraw3.lib 110LIB3FILES= \ 111 $(SLB)$/view.lib \ 112 $(SLB)$/app.lib \ 113 $(SLB)$/docshell.lib \ 114 $(SLB)$/dlg.lib \ 115 $(SLB)$/core.lib \ 116 $(SLB)$/undo.lib \ 117 $(SLB)$/annotations.lib \ 118 $(SLB)$/text.lib \ 119 $(SLB)$/helper.lib \ 120 $(SLB)$/xml.lib \ 121 $(SLB)$/cgm.lib \ 122 $(SLB)$/uitable.lib \ 123 $(SLB)$/uiannotations.lib\ 124 $(SLB)$/grf.lib \ 125 $(SLB)$/controller.lib 126 127LIB5TARGET=$(SLB)$/sdraw3_2.lib 128LIB5FILES= \ 129 $(SLB)$/html.lib \ 130 $(SLB)$/filter.lib \ 131 $(SLB)$/unoidl.lib \ 132 $(SLB)$/animui.lib \ 133 $(SLB)$/accessibility.lib \ 134 $(SLB)$/uitools.lib \ 135 $(SLB)$/sidebar.lib 136 137LIB6TARGET=$(SLB)$/sdraw3_3.lib 138LIB6FILES= \ 139 $(SLB)$/func.lib \ 140 $(SLB)$/func_2.lib \ 141 $(SLB)$/slsshell.lib \ 142 $(SLB)$/slsmodel.lib \ 143 $(SLB)$/slsview.lib \ 144 $(SLB)$/slscontroller.lib \ 145 $(SLB)$/slscache.lib \ 146 $(SLB)$/slideshow.lib \ 147 $(SLB)$/framework_configuration.lib \ 148 $(SLB)$/framework_factories.lib \ 149 $(SLB)$/framework_module.lib \ 150 $(SLB)$/framework_tools.lib \ 151 $(SLB)$/presenter.lib 152 153# sdd 154SHL2TARGET= sdd$(DLLPOSTFIX) 155SHL2IMPLIB= sddimp 156SHL2VERSIONMAP=$(SOLARENV)/src/component.map 157SHL2DEF=$(MISC)$/$(SHL2TARGET).def 158DEF2NAME= $(SHL2TARGET) 159 160SHL2STDLIBS= \ 161 $(SFX2LIB) \ 162 $(SVXCORELIB) \ 163 $(SVTOOLLIB) \ 164 $(SVLLIB) \ 165 $(VCLLIB) \ 166 $(SOTLIB) \ 167 $(TOOLSLIB) \ 168 $(UNOTOOLSLIB) \ 169 $(UCBHELPERLIB) \ 170 $(CPPUHELPERLIB) \ 171 $(CPPULIB) \ 172 $(SALLIB) 173 174SHL2OBJS= $(SLO)$/sddetect.obj \ 175 $(SLO)$/detreg.obj 176 177SHL2DEPN+= makefile.mk 178 179# sdui 180SHL4TARGET= sdui$(DLLPOSTFIX) 181SHL4IMPLIB= sduiimp 182SHL4VERSIONMAP= sdui.map 183SHL4DEF=$(MISC)$/$(SHL4TARGET).def 184DEF4NAME= $(SHL4TARGET) 185SHL4LIBS= $(SLB)$/sdui_all.lib 186 187LIB4TARGET= $(SLB)$/sdui_all.lib 188LIB4FILES= \ 189 $(SLB)$/sdui.lib \ 190 $(SLB)$/func_ui.lib \ 191 $(SLB)$/html_ui.lib 192 193SHL4STDLIBS= \ 194 $(ISDLIB) \ 195 $(EDITENGLIB) \ 196 $(SVXCORELIB) \ 197 $(SVXLIB) \ 198 $(SFXLIB) \ 199 $(BASEGFXLIB) \ 200 $(SO2LIB) \ 201 $(SVTOOLLIB) \ 202 $(VCLLIB) \ 203 $(SVLLIB) \ 204 $(SOTLIB) \ 205 $(UNOTOOLSLIB) \ 206 $(TOOLSLIB) \ 207 $(I18NISOLANGLIB) \ 208 $(COMPHELPERLIB) \ 209 $(CPPUHELPERLIB) \ 210 $(CPPULIB) \ 211 $(CANVASLIB) \ 212 $(SALLIB) 213 214.IF "$(GUI)$(COM)" == "WNTMSC" 215.IF "$(ENABLE_PCH)" != "" 216#target sd 217SHL1OBJS += $(SLO)$/pchname.obj \ 218 $(SLO)$/pchname_ex.obj 219#target sdd 220SHL2OBJS += $(SLO)$/pchname.obj \ 221 $(SLO)$/pchname_ex.obj 222#target sdui 223SHL4OBJS += $(SLO)$/pchname.obj \ 224 $(SLO)$/pchname_ex.obj 225.ENDIF # "$(ENABLE_PCH)" != "" 226.ENDIF # "$(GUI)$(COM)" == "WNTMSC" 227 228# $(ISDLIB) is build in SHL1TARGET 229.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT") 230SHL4DEPN=$(SHL1TARGETN) 231SHL5DEPN=$(SHL1TARGETN) 232.ELSE 233SHL4DEPN=$(SHL1IMPLIBN) 234SHL5DEPN=$(SHL1IMPLIBN) 235.ENDIF 236 237# ppt import/export library 238SHL5TARGET = sdfilt$(DLLPOSTFIX) 239SHL5IMPLIB = sdfilti 240SHL5VERSIONMAP= sdfilt.map 241SHL5DEF = $(MISC)$/$(SHL5TARGET).def 242SHL5LIBS = $(SLB)$/ppt.lib $(SLB)$/eppt.lib 243 244DEF5NAME=$(SHL5TARGET) 245 246SHL5STDLIBS = $(ISDLIB) \ 247 $(EDITENGLIB) \ 248 $(SVXCORELIB) \ 249 $(MSFILTERLIB) \ 250 $(SFX2LIB) \ 251 $(SVTOOLLIB) \ 252 $(SOTLIB) \ 253 $(VCLLIB) \ 254 $(SVLLIB) \ 255 $(SOTLIB) \ 256 $(UNOTOOLSLIB) \ 257 $(TOOLSLIB) \ 258 $(UCBHELPERLIB) \ 259 $(CPPUHELPERLIB) \ 260 $(CPPULIB) \ 261 $(SALLIB) \ 262 $(COMPHELPERLIB) \ 263 $(I18NISOLANGLIB) 264 265# --- Targets ------------------------------------------------------------- 266 267.INCLUDE : target.mk 268 269$(MISC)$/$(SHL1TARGET).flt: makefile.mk 270 @echo ------------------------------ 271 @echo Making: $@ 272 @$(TYPE) sd.flt > $@ 273 274ALLTAR : $(MISC)/sd.component $(MISC)/sdd.component 275 276$(MISC)/sd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 277 sd.component 278 $(XSLTPROC) --nonet --stringparam uri \ 279 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 280 $(SOLARENV)/bin/createcomponent.xslt sd.component 281 282$(MISC)/sdd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 283 sdd.component 284 $(XSLTPROC) --nonet --stringparam uri \ 285 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \ 286 $(SOLARENV)/bin/createcomponent.xslt sdd.component 287