summaryrefslogtreecommitdiff
path: root/automation/util/makefile.mk
diff options
context:
space:
mode:
authorMartin Hollmichel <mh@openoffice.org>2002-11-18 15:01:34 +0000
committerMartin Hollmichel <mh@openoffice.org>2002-11-18 15:01:34 +0000
commitf758933240a8722096db676bcf1a7fc010ecc519 (patch)
treea7d4da60468e283f80ba026342db2c8cf797d80b /automation/util/makefile.mk
parent13272a328e53540326555b26aec9a4c9fb1bd1e5 (diff)
add: testtool, #104916#
Diffstat (limited to 'automation/util/makefile.mk')
-rw-r--r--automation/util/makefile.mk233
1 files changed, 125 insertions, 108 deletions
diff --git a/automation/util/makefile.mk b/automation/util/makefile.mk
index 006eceec4f7e..1a52aef5d3dc 100644
--- a/automation/util/makefile.mk
+++ b/automation/util/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.1.1.1 $
+# $Revision: 1.2 $
#
-# last change: $Author: hr $ $Date: 2000-09-18 16:11:22 $
+# last change: $Author: mh $ $Date: 2002-11-18 16:00:33 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -12,11 +12,11 @@
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
-# Sun Microsystems Inc., October, 2000
+# Sun Microsystems Inc., October, 2002
#
# GNU Lesser General Public License Version 2.1
# =============================================
-# Copyright 2000 by Sun Microsystems, Inc.
+# Copyright 2002 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
@@ -42,15 +42,15 @@
# 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 WARRANTY OF ANY KIND, EITHER EXPRESS 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.
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc..
#
-# Copyright: 2000 by Sun Microsystems, Inc.
+# Copyright: 2002 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
@@ -64,29 +64,16 @@ PRJ=..
PRJNAME=automation
TARGET=automation
+TARGETTYPE=GUI
#basic.hid generieren
GEN_HID=TRUE
# --- Settings ---------------------------------------------------
-.INCLUDE : svpre.mk
.INCLUDE : settings.mk
-.INCLUDE : sv.mk
-
-.IF "$(GUI)"=="WIN"
-.IF "$(product)" != ""
-LINKFLAGS=$(LINKFLAGS) /NOPACKC
-.ENDIF
-.ENDIF
-
-.IF "$(depend)" == ""
# --- Allgemein ---------------------------------------------------
-USE_LDUMP2=TRUE
-
-.IF "$(header)" == ""
-
LIB1TARGET=$(SLB)$/$(TARGET).lib
LIB1FILES= \
$(SLB)$/server.lib
@@ -94,36 +81,38 @@ LIB1FILES= \
SHL1TARGET= sts$(UPD)$(DLLPOSTFIX)
SHL1IMPLIB= $(TARGET)
-#SHL1STDLIBS= \
-# $(TOOLSLIB) \
-# $(SVTOOLLIB) \
-# $(SVLLIB) \
-# $(SVLIB) \
-# $(VOSLIB) \
-# $(SALLIB) \
- $(SVMEMLIB) \
-
-
-# $(SJLIB) \
-# $(UNOTOOLSLIB)
-
-#.IF "$(GUI)"=="WNT"
-#SHL1STDLIBS+=$(LIBCIMT) \
-# $(LIBPRE) advapi32.lib \
-# $(LIBPRE) gdi32.lib
-#.ENDIF
+SHL1STDLIBS= \
+ $(TOOLSLIB) \
+ $(SVTOOLLIB) \
+ $(SVLLIB) \
+ $(SVLIB) \
+ $(BASICLIB) \
+ $(VOSLIB) \
+ $(SALLIB) \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+ $(COMPHELPERLIB) \
+ $(SVMEMLIB) \
+ $(SOTLIB) \
+ $(VOSLIB)
+
+
+.IF "$(GUI)" == "UNX"
+SHL1STDLIBS+= -lapp
+.ENDIF
-#.IF "$(SO3)" != ""
-#SHL1STDLIBS+=\
-# $(SOTLIB) \
-# $(VOSLIB)
-#.ENDIF
+.IF "$(GUI)"=="WNT"
+SHL1STDLIBS+=$(LIBCIMT) \
+ $(LIBPRE) app.lib \
+ $(LIBPRE) advapi32.lib \
+ $(LIBPRE) gdi32.lib
+.ENDIF
#SHL1DEPN= $(L)$/itools.lib $(SVLIBDEPEND) $(L)$/so2.lib $(L)$/svtool.lib
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
-SHL1LIBS= $(SLB)$/$(TARGET).lib
+SHL1LIBS= $(SLB)$/$(TARGET).lib
DEF1NAME =$(SHL1TARGET)
DEF1DEPN = \
@@ -132,78 +121,113 @@ DEF1DEPN = \
DEFLIB1NAME =$(TARGET)
DEF1DES =TestToolServer
-# --- Targets -----------------------------------------------------------
+# --- TESTTOOL IDE ------------------------------------------------------
+
+APP1TARGET=testtool
+APP1STDLIBS= \
+ $(CPPUHELPERLIB) \
+ $(TOOLSLIB) \
+ $(UNOTOOLSLIB) \
+ $(SVTOOLLIB) \
+ $(SVLLIB) \
+ $(SVLIB) \
+ $(SVMEMLIB) \
+ $(SALLIB) \
+ $(SJLIB) \
+ $(VOSLIB) \
+ $(SO2LIB) \
+ $(UCBHELPERLIB) \
+ $(COMPHELPERLIB) \
+ $(SOTLIB) \
+ $(BASICLIB) \
+ $(VOSLIB)
+
+.IF "$(GUI)"=="UNX"
+APP1STDLIBS+= \
+ $(VOSLIB) $(SALLIB) $(BASICLIB)
+APP1STDLIBS+=$(CPPULIB)
+.ENDIF
+.IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
+APP1STDLIBS+=$(CPPULIB)
+.ENDIF
-ALL: $(LIB1TARGET) \
- ALLTAR
+.IF "$(OS)" == "SOLARIS"
+APP1STDLIBS+= -lXm
+.ENDIF
-#-------------------------------------------------------------------------
-# Windows 3.x
-#-------------------------------------------------------------------------
+.IF "$(GUI)" == "UNX"
+.IF "$(OS)" == "LINUX"
+APP1STDLIBS+= -lXext -lX11 -lSM -lICE
-.IF "$(GUI)" == "WIN"
+.ENDIF
+.ENDIF
-LINKFLAGS+=/NOCV /IG
-LINK=$(DEVROOT)$/bin\optlinks\optlinks
-$(MISC)$/$(PRJNAME).def: makefile.mk
- echo NAME BASIC >$@
- echo DESCRIPTION 'StarBASIC DevSystem (C)1994 STAR DIVISION GmbH'>>$@
- echo EXETYPE WINDOWS >>$@
- echo PROTMODE >>$@
- echo STUB 'winSTUB.EXE' >>$@
- echo CODE LOADONCALL MOVEABLE >>$@
- echo DATA PRELOAD MULTIPLE MOVEABLE >>$@
- echo HEAPSIZE 4096 >>$@
- echo STACKSIZE 30000 >>$@
-.ENDIF # GUI == WIN
-#-------------------------------------------------------------------------
-# MAC
-#-------------------------------------------------------------------------
+APP1LIBS=\
+ $(LIBPRE) $(LB)$/testtool.lib
-.IF "$(GUI)" == "MAC"
+.IF "$(GUI)" == "UNX"
+APP1STDLIBS+= -lapp -lsample
+.ELSE
+APP1STDLIBS+= \
+ app.lib \
+ sample.lib
+.ENDIF
+
+APP1DEPN=\
+ $(L)$/itools.lib \
+ $(SVLIBDEPEND) \
+ $(LB)$/testtool.lib \
+
+APP1OBJS= $(OBJ)$/testbasi.obj \
+ $(OBJ)$/cmdbasestream.obj \
+ $(OBJ)$/svcommstream.obj
+
+# --- TESTTOOL MINIAPP ------------------------------------------------------
+
+SRS3FILES= $(SRS)$/miniapp.srs
+RES3TARGET=miniapp
+
+APP3TARGET=miniapp
+APP3STDLIBS= \
+ $(AUTOMATIONLIB) \
+ $(SALLIB) \
+ $(TOOLSLIB) \
+ $(SVTOOLLIB) \
+ $(SVLIB) \
+ $(SVMEMLIB) \
+ $(SJLIB) \
+ $(SO2LIB)
+.IF "$(GUI)"=="UNX"
+APP3STDLIBS+= \
+ $(VOSLIB) $(SALLIB)
+.ENDIF
+.IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
+APP3STDLIBS+=$(CPPULIB)
+.ENDIF
-$(MISC)$/$(PRJNAME).def: makefile.mk
- echo Kein def-File fuer Applikationen auf Mac
-.ENDIF # GUI == MAC
-#-------------------------------------------------------------------------
-# OS/2
-#-------------------------------------------------------------------------
+APP3LIBS= \
+ $(LIBPRE) $(LB)$/miniapp.lib
-.IF "$(GUI)" == "OS2"
+APP3DEPN=\
+ $(L)$/itools.lib \
+ $(SVLIBDEPEND) \
+ $(LB)$/miniapp.lib
-$(MISC)$/$(PRJNAME).def: makefile.mk
-.IF "$(COM)"!="WTC"
- echo NAME BASIC WINDOWAPI >$@
- echo DESCRIPTION 'StarBASIC DevSystem (C)1993 STAR DIVISION GmbH' >>$@
- echo EXETYPE OS2 >>$@
- echo PROTMODE >>$@
- echo STUB 'OS2STUB.EXE' >>$@
- echo CODE LOADONCALL >>$@
- echo DATA PRELOAD MULTIPLE >>$@
- echo HEAPSIZE 4096 >>$@
- echo STACKSIZE 30000 >>$@
-.ELSE
- @echo option DESCRIPTION 'StarBasic DLL' >$@
- @echo name $(BIN)$/$(SHL1TARGET).dll >>$@
-# @ldump -E1 -A -F$(MISC)$/$(SHL1TARGET).flt $(SLB)$/sb.lib >>temp.def
- @ldump -E1 -A -F$(MISC)$/$(SHL1TARGET).flt $(LIB1TARGET) >>temp.def
- @awk -f s:\util\exp.awk temp.def
- del temp.def
+.IF "$(GUI)" != "UNX"
+# win16 braucht ein appobj
+APP3OBJS= $(OBJ)$/testapp.obj
.ENDIF
-.ENDIF # GUI == OS2
+# --- Targets -----------------------------------------------------------
+
+ALL: $(LIB1TARGET) \
+ ALLTAR
-#-------------------------------------------------------------------------
-# Windows NT
-#-------------------------------------------------------------------------
-#
-# default targets aus target.mk
-#
# --- Basic-Filter-Datei ---
@@ -217,15 +241,8 @@ $(MISC)$/$(SHL1TARGET).flt: makefile.mk
@echo exception >> $@
@echo bad_alloc >> $@
@echo __CT >> $@
-.IF "$(GUI)"=="OS2"
- @echo __alloc >> $@
- @echo __malloc >> $@
-.ENDIF
-
-.ENDIF
# ------------------------------------------------------------------------
-.ENDIF
.INCLUDE : target.mk