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=.. 25PRJNAME=formula 26TARGET=for 27TARGET2=forui 28USE_DEFFILE=TRUE 29GEN_HID=TRUE 30GEN_HID_OTHER=TRUE 31 32# USE_LDUMP2=TRUE 33# --- Settings ---------------------------------- 34.INCLUDE : settings.mk 35 36 37# --- formula core (for) ----------------------------------- 38 39LIB1TARGET=$(SLB)$/$(TARGET).lib 40LIB1FILES=\ 41 $(SLB)$/core_resource.lib \ 42 $(SLB)$/core_api.lib 43 44SHL1TARGET=$(TARGET)$(DLLPOSTFIX) 45 46SHL1STDLIBS= \ 47 $(TOOLSLIB) \ 48 $(SVTOOLLIB) \ 49 $(SVLLIB) \ 50 $(UNOTOOLSLIB) \ 51 $(COMPHELPERLIB) \ 52 $(CPPUHELPERLIB) \ 53 $(CPPULIB) \ 54 $(VCLLIB) \ 55 $(SALLIB) 56 57SHL1IMPLIB=i$(TARGET) 58SHL1USE_EXPORTS=name 59SHL1LIBS=$(LIB1TARGET) 60SHL1DEF=$(MISC)$/$(SHL1TARGET).def 61 62DEF1NAME=$(SHL1TARGET) 63DEFLIB1NAME=$(TARGET) 64 65# --- .res file ---------------------------------------------------------- 66 67RES1FILELIST=\ 68 $(SRS)$/core_strings.srs 69 70RESLIB1NAME=$(TARGET) 71RESLIB1IMAGES=$(PRJ)$/res 72RESLIB1SRSFILES=$(RES1FILELIST) 73 74 75# --- formula UI core (forui) ----------------------------------- 76LIB2TARGET=$(SLB)$/$(TARGET2).lib 77LIB2FILES=\ 78 $(SLB)$/uidlg.lib \ 79 $(SLB)$/ui_resource.lib 80 81SHL2TARGET=$(TARGET2)$(DLLPOSTFIX) 82 83SHL2STDLIBS= \ 84 $(SFXLIB) \ 85 $(SVTOOLLIB) \ 86 $(SVLLIB) \ 87 $(VCLLIB) \ 88 $(UNOTOOLSLIB) \ 89 $(TOOLSLIB) \ 90 $(CPPULIB) \ 91 $(SO2LIB) \ 92 $(CPPUHELPERLIB) \ 93 $(SALLIB) 94 95.IF "$(GUI)"=="OS2" 96SHL2STDLIBS+= \ 97 $(LB)$/ifor.lib 98SHL2DEPN=$(LB)$/i$(TARGET).lib 99.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC" 100SHL2STDLIBS+= \ 101 -lfor$(DLLPOSTFIX) 102SHL2DEPN=$(SHL1TARGETN) 103.ELSE 104SHL2STDLIBS+= \ 105 $(LB)$/ifor.lib 106SHL2DEPN=$(LB)$/i$(TARGET).lib 107.ENDIF 108 109 110SHL2IMPLIB=i$(TARGET2) 111SHL2LIBS=$(LIB2TARGET) 112SHL2DEF=$(MISC)$/$(SHL2TARGET).def 113DEF2NAME=$(SHL2TARGET) 114.IF "$(GUI)"=="OS2" 115DEFLIB2NAME=$(TARGET2) 116.ENDIF 117 118SHL2USE_EXPORTS=name 119 120# --- .res file ---------------------------------------------------------- 121 122RES2FILELIST=\ 123 $(SRS)$/uidlg.srs 124 125 126RESLIB2NAME=$(TARGET2) 127RESLIB2IMAGES=$(PRJ)$/res 128RESLIB2SRSFILES=$(RES2FILELIST) 129 130 131# --- Targets ---------------------------------- 132 133.INCLUDE : target.mk 134 135 136ALLTAR : $(MISC)/for.component 137 138$(MISC)/for.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 139 for.component 140 $(XSLTPROC) --nonet --stringparam uri \ 141 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 142 $(SOLARENV)/bin/createcomponent.xslt for.component 143