#************************************************************************* # # $RCSfile: makefile.mk,v $ # # $Revision: 1.19 $ # # last change: $Author: hjs $ $Date: 2003-08-18 14:44:36 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses # # - GNU Lesser General Public License Version 2.1 # - Sun Industry Standards Source License Version 1.1 # # Sun Microsystems Inc., October, 2000 # # GNU Lesser General Public License Version 2.1 # ============================================= # Copyright 2000 by Sun Microsystems, Inc. # 901 San Antonio Road, Palo Alto, CA 94303, USA # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License version 2.1, as published by the Free Software Foundation. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # # # Sun Industry Standards Source License Version 1.1 # ================================================= # The contents of this file are subject to the Sun Industry Standards # Source License Version 1.1 (the "License"); You may not use this file # except in compliance with the License. You may obtain a copy of the # License at http://www.openoffice.org/license.html. # # Software provided under this License is provided on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, # WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, # MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. # See the License for the specific provisions governing your rights and # obligations concerning the Software. # # The Initial Developer of the Original Code is: Sun Microsystems, Inc. # # Copyright: 2000 by Sun Microsystems, Inc. # # All Rights Reserved. # # Contributor(s): _______________________________________ # # # #************************************************************************* PRJ=.. PRJNAME=sc TARGET=scalc3 #LIBTARGET=NO GEN_HID=TRUE GEN_HID_OTHER=TRUE # --- Settings ----------------------------------------------------------- .INCLUDE : svpre.mk .INCLUDE : connectivity/version.mk .INCLUDE : settings.mk .INCLUDE : sv.mk IENV!:=$(IENV);..$/res .IF "$(COM)"=="ICC" LINKFLAGS+=/SEGMENTS:512 /PACKD:32768 .ENDIF .IF "$(OS)"=="IRIX" LINKFLAGS+=-Wl,-LD_LAYOUT:lgot_buffer=30 .ENDIF # --- Resourcen ---------------------------------------------------- RESLIB1LIST=\ $(SRS)$/miscdlgs.srs \ $(SRS)$/docshell.srs \ $(SRS)$/ui.srs \ $(SRS)$/dbgui.srs \ $(SRS)$/drawfunc.srs \ $(SRS)$/core.srs \ $(SRS)$/styleui.srs \ $(SRS)$/scslots.srs \ $(SRS)$/formdlgs.srs \ $(SRS)$/pagedlg.srs \ $(SRS)$/navipi.srs \ $(SOLARVERSION)$/$(INPATH)$/res$(EXT_UPDMINOR)$/sfx.srs RESLIB1NAME=sc RESLIB1SRSFILES=\ $(RESLIB1LIST) # --- StarClac DLL SHL1TARGET= sc$(UPD)$(DLLPOSTFIX) SHL1VERSIONMAP= sc.map SHL1IMPLIB= sci .IF "$(OS)"!="MACOSX" # static libraries SHL1STDLIBS+= $(SCHLIB) .ENDIF # dynamic libraries SHL1STDLIBS+= \ $(BASICLIB) \ $(SFXLIB) \ $(SO2LIB) \ $(SVMEMLIB) \ $(SVTOOLLIB) \ $(SVLLIB) \ $(SVXLIB) \ $(GOODIESLIB) \ $(OFALIB) \ $(VCLLIB) \ $(CPPULIB) \ $(CPPUHELPERLIB) \ $(COMPHELPERLIB) \ $(UCBHELPERLIB) \ $(TKLIB) \ $(VOSLIB) \ $(SALLIB) \ $(TOOLSLIB) \ $(UNOTOOLSLIB) \ $(SOTLIB) \ $(XMLOFFLIB) \ $(DBTOOLSLIB) .IF "$(OS)"=="MACOSX" # static libraries at end for OS X SHL1STDLIBS+= $(SCHLIB) .ENDIF SHL1DEPN= $(L)$/itools.lib SHL1LIBS= $(LIB3TARGET) $(LIB4TARGET) .IF "$(GUI)"!="UNX" SHL1OBJS= $(SLO)$/scdll.obj .ENDIF SHL1DEF= $(MISC)$/$(SHL1TARGET).def .IF "$(GUI)" == "WNT" || "$(GUI)" == "WNT" SHL1RES= $(RCTARGET) .ENDIF # --- Linken der Applikation --------------------------------------- LIB2TARGET=$(SLB)$/scmod.lib LIB2OBJFILES= \ $(SLO)$/scmod.obj LIB3TARGET=$(SLB)$/scalc3.lib LIB3FILES= \ $(SLB)$/app.lib \ $(SLB)$/docshell.lib \ $(SLB)$/view.lib \ $(SLB)$/undo.lib \ $(SLB)$/attrdlg.lib \ $(SLB)$/namedlg.lib \ $(SLB)$/styleui.lib \ $(SLB)$/miscdlgs.lib \ $(SLB)$/formdlgs.lib \ $(SLB)$/cctrl.lib \ $(SLB)$/dbgui.lib \ $(SLB)$/optdlg.lib \ $(SLB)$/pagedlg.lib \ $(SLB)$/drawfunc.lib \ $(SLB)$/navipi.lib LIB3FILES+= \ $(SLB)$/unoobj.lib .IF "$(linkinc)" != "" #SHL1STDLIBS+= \ # $(SLB)$/stardiv_sc.lib .ELSE #SHL1STDLIBS+= \ # $(L)$/offsmart.lib \ # $(L)$/svtsmart.lib \ # $(L)$/svxsmrt1.lib .ENDIF LIB4TARGET=$(SLB)$/scalc3c.lib LIB4FILES= \ $(SLB)$/data.lib \ $(SLB)$/tool.lib \ $(SLB)$/dif.lib \ $(SLB)$/excel.lib \ $(SLB)$/xcl97.lib \ $(SLB)$/html.lib \ $(SLB)$/lotus.lib \ $(SLB)$/rtf.lib \ $(SLB)$/xml.lib \ $(SLB)$/accessibility.lib \ $(SLB)$/ftools.lib \ $(SLB)$/scflt.lib LIB5TARGET=$(LB)$/sclib.lib LIB5ARCHIV=$(LB)$/libsclib.a .IF "$(GUI)"=="UNX" LIB5OBJFILES=$(SLO)$/sclib.obj .ELSE LIB5OBJFILES=$(OBJ)$/sclib.obj .ENDIF .IF "$(depend)" == "" ALL: \ $(MISC)$/linkinc.ls \ ALLTAR \ ea .ENDIF # --- Targets ------------------------------------------------------------- .IF "$(depend)" == "" APP1HEAP= 8192 .IF "$(GUI)"!="WNT" .IF "$(GUI)"=="WIN" # DGROUP: DATA<0x5000 HEAP==0x2000 => STACK:0x9000 (36k) # wenn das runtergesetz wird, muss evtl. in data\cell.cxx die # MAXRECURSION Tiefe angepasst werden !!! (leider ein PI mal Daumen Wert) APP1STACK=36864 .ELSE # os2: ca. 2,3*win APP1STACK=81920 .ENDIF .ENDIF .ENDIF .INCLUDE : target.mk .IF "$(depend)" == "" # ------------------------------------------------------------------------- # MAC # ------------------------------------------------------------------------- .IF "$(GUI)" == "MAC" $(MISC)$/$(SHL1TARGET).def: makefile.mk @echo ------------------------------ @echo Making: $@ @echo CreateScDocShellDll > $@ @echo CreateObjScDocShellDll >> $@ @echo InitScDll >> $@ @echo DeInitScDll >> $@ @echo component_getImplementationEnvironment >> $@ @echo component_writeInfo >> $@ @echo component_getFactory >> $@ .ENDIF .IF "$(GUI)" == "WNT" $(MISC)$/$(SHL1TARGET).def: makefile.mk @echo ------------------------------ @echo Making: $@ @echo LIBRARY $(SHL1TARGET) >$@ @echo DESCRIPTION 'SCALC3 DLL' >>$@ @echo DATA READ WRITE NONSHARED >>$@ @echo EXPORTS >>$@ @echo CreateScDocShellDll @20 >>$@ @echo CreateObjScDocShellDll @21 >>$@ @echo InitScDll @22 >>$@ @echo DeInitScDll @23 >>$@ @echo component_getImplementationEnvironment @24 >>$@ @echo component_writeInfo @25 >>$@ @echo component_getFactory @26 >>$@ .ENDIF .IF "$(OPTLINKS)" == "YES" echo RC $(RCFLAGS) $(RES)$/scappi.res >>$@ .ENDIF # ------------------------------------------------------------------------- # Presentation Manager 2.0 # ------------------------------------------------------------------------- .IF "$(GUI)" == "OS2" $(MISC)$/$(SHL1TARGET).def: makefile.mk @echo ================================================================ @echo building $@ @echo ---------------------------------------------------------------- .IF "$(COM)"!="WTC" echo LIBRARY INITINSTANCE TERMINSTANCE >$@ echo DESCRIPTION 'ScDLL' >>$@ echo PROTMODE >>$@ @echo CODE LOADONCALL >>$@ @echo DATA PRELOAD MULTIPLE NONSHARED >>$@ @echo EXPORTS >>$@ .IF "$(COM)"!="ICC" @echo _CreateScDocShellDll @2 >>$@ @echo _CreateObjScDocShellDll @3 >>$@ @echo _InitScDll @4 >>$@ @echo _DeInitScDll @5 >>$@ @echo _component_getImplementationEnvironment @6 >>$@ @echo _component_writeInfo @7 >>$@ @echo _component_getFactory @8 >>$@ .ELSE @echo CreateScDocShellDll @2 >>$@ @echo CreateObjScDocShellDll @3 >>$@ @echo InitScDll @4 >>$@ @echo DeInitScDll @5 >>$@ @echo component_getImplementationEnvironment @6 >>$@ @echo component_writeInfo @7 >>$@ @echo component_getFactory @8 >>$@ .ENDIF .ELSE @echo option DESCRIPTION 'ScDLL' >$@ @echo name $(BIN)$/$(SHL1TARGET).dll >>$@ @echo CreateScDocShellDll_ @2 >>temp.def @echo CreateObjScDocShellDll_ @3 >>temp.def @echo InitScDll_ @4 >>temp.def @echo DeInitScDll_ @5 >>temp.def @echo component_getImplementationEnvironment_ @6 >>temp.def @echo component_writeInfo_ @7 >>temp.def @echo component_getFactory_ @8 >>temp.def @gawk -f s:\util\exp.awk temp.def >>$@ del temp.def .ENDIF .ENDIF .ENDIF $(MISCX)$/$(SHL1TARGET).flt: @echo ------------------------------ @echo Making: $@ @echo WEP>$@ @echo LIBMAIN>>$@ @echo LibMain>>$@ ea: .IF "$(GUI)" == "OS2" @+echo extended attributes? siehe sw\util. # +call swos2.cmd .ELSE @echo nix .ENDIF