2000-09-18 11:15:01 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
|
|
|
# $RCSfile: makefile.mk,v $
|
|
|
|
#
|
2001-05-01 18:28:55 -05:00
|
|
|
# $Revision: 1.12 $
|
2000-09-18 11:15:01 -05:00
|
|
|
#
|
2001-05-01 18:28:55 -05:00
|
|
|
# last change: $Author: svesik $ $Date: 2001-05-02 00:28:55 $
|
2000-09-18 11:15:01 -05:00
|
|
|
#
|
|
|
|
# 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=sw
|
|
|
|
TARGET=sw
|
|
|
|
GEN_HID=TRUE
|
|
|
|
.IF "$(CPU)"=="i386"
|
|
|
|
USE_LDUMP2=TRUE
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
# --- Settings ------------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : svpre.mk
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
.INCLUDE : sv.mk
|
|
|
|
|
|
|
|
# nmake - swdll
|
|
|
|
|
|
|
|
DESK=T
|
|
|
|
|
|
|
|
.IF "$(prjpch)" != ""
|
|
|
|
CDEFS=$(CDEFS) -DPRECOMPILED
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(GUI)" == "WIN"
|
|
|
|
RESLIBSPLIT1NAME=sw
|
|
|
|
.ELSE
|
|
|
|
RESLIB1NAME=sw
|
|
|
|
.ENDIF
|
|
|
|
MYRESLIBNAME=sw
|
|
|
|
|
|
|
|
#RSCLOCINC=$(RSCLOCINC);$(PRJ)$/RES
|
|
|
|
|
|
|
|
# --- Allgemein -----------------------------------------------------------
|
|
|
|
.IF "$(GUI)"=="WIN"
|
|
|
|
LIBFLAGS=/PAGE:128 /NOE /NOI
|
|
|
|
#OPTLINKS=YES
|
|
|
|
MAPSYM=tmapsym
|
|
|
|
.IF "$(debug)" != ""
|
|
|
|
LINKFLAGS= /F /PACKCODE:65520 /PACKDATA /NOD /NOE /MAP /COD /NOCV
|
|
|
|
.ELSE
|
|
|
|
LINKFLAGS= /F /PACKCODE:65520 /PACKDATA /NOD /NOE /MAP
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(COM)"=="ICC"
|
|
|
|
LINKFLAGS+=/SEGMENTS:1024 /PACKD:32768
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(header)" == ""
|
|
|
|
|
|
|
|
sw_res_files= \
|
|
|
|
$(SRS)$/app.srs \
|
|
|
|
$(SRS)$/dialog.srs \
|
|
|
|
$(SRS)$/chrdlg.srs \
|
|
|
|
$(SRS)$/config.srs \
|
|
|
|
$(SRS)$/dbui.srs \
|
|
|
|
$(SRS)$/dochdl.srs \
|
|
|
|
$(SRS)$/docvw.srs \
|
|
|
|
$(SRS)$/envelp.srs \
|
|
|
|
$(SRS)$/fldui.srs \
|
|
|
|
$(SRS)$/fmtui.srs \
|
|
|
|
$(SRS)$/frmdlg.srs \
|
|
|
|
$(SRS)$/globdoc.srs \
|
|
|
|
$(SRS)$/index.srs \
|
|
|
|
$(SRS)$/lingu.srs \
|
|
|
|
$(SRS)$/misc.srs \
|
|
|
|
$(SRS)$/ribbar.srs \
|
|
|
|
$(SRS)$/shells.srs \
|
|
|
|
$(SRS)$/swslots.srs \
|
|
|
|
$(SRS)$/table.srs \
|
|
|
|
$(SRS)$/uiview.srs \
|
|
|
|
$(SRS)$/utlui.srs \
|
|
|
|
$(SRS)$/web.srs \
|
|
|
|
$(SRS)$/wizard.srs \
|
|
|
|
$(SRS)$/wrtsh.srs \
|
|
|
|
$(SOLARRESDIR)$/sfx.srs
|
|
|
|
|
|
|
|
.IF "$(GUI)" == "WIN"
|
|
|
|
RESLIBSPLIT1SRSFILES= \
|
|
|
|
$(sw_res_files)
|
|
|
|
.ELSE
|
|
|
|
RESLIB1SRSFILES= \
|
|
|
|
$(sw_res_files)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
LIB1TARGET=$(LB)$/swlib.lib
|
|
|
|
LIB1ARCHIV=$(LB)$/libswlib.a
|
|
|
|
LIB1OBJFILES= \
|
|
|
|
$(OUT)$/obj$/swlib.obj \
|
|
|
|
$(OUT)$/obj$/swcomlib.obj \
|
|
|
|
$(OUT)$/obj$/w4wflt.obj
|
|
|
|
|
2000-10-11 11:05:52 -05:00
|
|
|
.IF "$(OS)$(CPU)"=="SOLARISS"
|
|
|
|
LIB1OBJFILES += $(SOLARLIBDIR)$/autorec.o
|
|
|
|
.ENDIF
|
2000-09-18 11:15:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SHL2TARGET= $(TARGET)$(UPD)$(DLLPOSTFIX)
|
|
|
|
SHL2VERSIONMAP= $(TARGET).map
|
|
|
|
SHL2IMPLIB= _$(TARGET)
|
|
|
|
SHL2LIBS= \
|
|
|
|
$(SLB)$/core1.lib\
|
|
|
|
$(SLB)$/core2.lib\
|
|
|
|
$(SLB)$/filter.lib\
|
|
|
|
$(SLB)$/ui1.lib\
|
|
|
|
$(SLB)$/ui2.lib
|
|
|
|
|
|
|
|
|
|
|
|
SHL2STDLIBS= \
|
|
|
|
$(SALLIB) \
|
|
|
|
$(SFXLIB) \
|
|
|
|
$(OFALIB) \
|
|
|
|
$(SFXDEBUGLIB) \
|
|
|
|
$(BASICLIB) \
|
|
|
|
$(SVXLIB) \
|
|
|
|
$(GOODIESLIB) \
|
|
|
|
$(CHANNELLIB) \
|
|
|
|
$(INETLIBSH) \
|
|
|
|
$(SVMEMLIB) \
|
|
|
|
$(SO2LIB) \
|
|
|
|
$(SVTOOLLIB) \
|
|
|
|
$(SVLLIB) \
|
|
|
|
$(SVLIB) \
|
|
|
|
$(SOTLIB) \
|
|
|
|
$(TOOLSLIB) \
|
|
|
|
$(UNOLIB) \
|
|
|
|
$(ONELIB) \
|
|
|
|
$(CPPULIB) \
|
|
|
|
$(CPPUHELPERLIB) \
|
|
|
|
$(UNOTOOLSLIB) \
|
2000-11-15 10:28:50 -06:00
|
|
|
$(DBTOOLSLIB) \
|
2000-09-18 11:15:01 -05:00
|
|
|
$(VOSLIB) \
|
|
|
|
$(TKLIB) \
|
|
|
|
$(SDLIB) \
|
|
|
|
$(SCLIB) \
|
|
|
|
$(UCBHELPERLIB) \
|
|
|
|
$(XMLOFFLIB) \
|
2000-10-24 09:57:30 -05:00
|
|
|
$(BASCTLLIB) \
|
|
|
|
$(COMPHELPERLIB)
|
2000-09-18 11:15:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
.IF "$(GUI)" == "UNX"
|
|
|
|
SHL2STDLIBS += \
|
|
|
|
$(SCHLIB) \
|
|
|
|
$(SMLIB)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(SOLAR_JAVA)" != ""
|
|
|
|
SHL2STDLIBS+= \
|
|
|
|
$(SJLIB)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
SHL2STDLIBS+= \
|
|
|
|
advapi32.lib
|
|
|
|
.ELSE
|
|
|
|
#SHL2STDLIBS+= \
|
|
|
|
# $(MAILLIB)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
# uno.lib usr.lib sj.lib aofa.lib
|
|
|
|
# ysch.lib ysim.lib ysm.lib basic.lib ich.lib
|
|
|
|
|
|
|
|
SHL2DEPN= \
|
|
|
|
$(SLB)$/core1.lib\
|
|
|
|
$(SLB)$/core2.lib\
|
|
|
|
$(SLB)$/filter.lib\
|
|
|
|
$(SLB)$/ui1.lib\
|
|
|
|
$(SLB)$/ui2.lib
|
|
|
|
|
|
|
|
|
|
|
|
SHL2OBJS= \
|
|
|
|
$(OUT)$/slo$/swmodule.obj \
|
2001-01-23 05:13:55 -06:00
|
|
|
$(OUT)$/slo$/swdll.obj
|
2000-09-18 11:15:01 -05:00
|
|
|
# $(SLO)$/.obj ^ \ nicht vergessen!
|
|
|
|
|
2001-05-01 18:28:55 -05:00
|
|
|
.IF "$(OS)"!="LINUX"
|
|
|
|
.IF "$(OS)"!="FREEBSD"
|
|
|
|
.IF "$(OS)"!="NETBSD"
|
2001-01-24 02:24:26 -06:00
|
|
|
SHL2OBJS+= \
|
|
|
|
$(SLO)$/atrfrm.obj \
|
2001-01-23 05:13:55 -06:00
|
|
|
$(SLO)$/fmtatr2.obj
|
|
|
|
.ENDIF
|
2001-05-01 18:28:55 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
2001-01-23 05:13:55 -06:00
|
|
|
|
2000-09-28 06:07:10 -05:00
|
|
|
.IF "$(OS)$(CPU)"=="SOLARISS"
|
|
|
|
SHL2OBJS += $(SOLARLIBDIR)$/autorec.o
|
|
|
|
.ENDIF
|
2000-09-18 11:15:01 -05:00
|
|
|
|
|
|
|
SHL2DEF= $(MISC)$/$(SHL2TARGET).def
|
|
|
|
SHL2BASE= 0x1e000000
|
|
|
|
|
|
|
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
do_build+= \
|
|
|
|
$(MISC)$/linkinc.ls
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
do_build+= \
|
|
|
|
$(SHL2TARGETN)
|
|
|
|
|
|
|
|
.IF "$(depend)"==""
|
|
|
|
ALL:\
|
|
|
|
$(do_build) \
|
|
|
|
$(SRS)$/hidother.hid\
|
|
|
|
$(INC)$/sw.lst \
|
|
|
|
ALLTAR
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
|
|
|
|
$(MISCX)$/$(SHL2TARGET).flt:
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
@echo WEP>$@
|
|
|
|
@echo LIBMAIN>>$@
|
|
|
|
@echo LibMain>>$@
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# Windows NT
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
.IF "$(GUI)" == "WNT"
|
|
|
|
|
|
|
|
$(MISC)$/$(SHL2TARGET).def: makefile.mk
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
@echo LIBRARY $(SHL2TARGET) >$@
|
|
|
|
@echo DESCRIPTION 'SWriter4 DLL' >>$@
|
|
|
|
@echo DATA READ WRITE NONSHARED >>$@
|
|
|
|
@echo EXPORTS >>$@
|
|
|
|
@echo CreateSwDocShellDll @20 >>$@
|
|
|
|
@echo CreateSwWebDocShellDll @30 >>$@
|
|
|
|
@echo CreateSwGlobalDocShellDll @40 >>$@
|
|
|
|
@echo CreateObjSwDocShellDll @21 >>$@
|
|
|
|
@echo CreateObjSwWebDocShellDll @22 >>$@
|
|
|
|
@echo CreateObjSwGlobalDocShellDll @23 >>$@
|
|
|
|
@echo InitSwDll @24 >>$@
|
|
|
|
@echo DeInitSwDll @25 >>$@
|
2001-01-22 04:42:12 -06:00
|
|
|
@echo component_getImplementationEnvironment @50 >>$@
|
|
|
|
@echo component_writeInfo @51 >>$@
|
|
|
|
@echo component_getFactory @52 >>$@
|
2000-09-18 11:15:01 -05:00
|
|
|
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
$(SRS)$/hidother.hid: hidother.src
|
|
|
|
.IF "$(GUI)" =="WNT"
|
2000-10-16 09:13:32 -05:00
|
|
|
.IF "$(BUILD_SOSL)"==""
|
2000-09-18 11:15:01 -05:00
|
|
|
@+echo
|
|
|
|
@+echo NO HIDS!
|
|
|
|
@+echo
|
|
|
|
+copy ..\inc\helpid.h .
|
|
|
|
+mhids hidother.src ..$/$(INPATH)$/srs sw hidother
|
|
|
|
+del helpid.h
|
2000-10-16 09:13:32 -05:00
|
|
|
.ENDIF
|
2000-09-18 11:15:01 -05:00
|
|
|
.ELSE
|
|
|
|
@echo wnt only
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
$(INC)$/sw.lst:
|
|
|
|
.IF "$(GUI)" =="WNT"
|
|
|
|
+-@echo clook missed!!!!
|
|
|
|
#clook -o $@ -p 1 -i ..\inc;..\source\ui\inc;..\source\core\inc;..\source\filter\inc;. dummy.cxx
|
|
|
|
.ELSE
|
|
|
|
@echo wnt only
|
|
|
|
.ENDIF
|
|
|
|
|