1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
34 # --- Settings ---------------------------------------------------
36 .INCLUDE
: settings.mk
38 # --- Allgemein ---------------------------------------------------
40 LIB1TARGET
=$(SLB
)$/$(TARGET
).lib
43 $(SLB
)$/simplecm.lib \
46 # --- sts library ---------------------------------------------------
48 SHL1TARGET
= sts
$(DLLPOSTFIX
)
72 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
73 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
75 DEF1NAME
=$(SHL1TARGET
)
77 $(MISC
)$/$(SHL1TARGET
).flt
79 DEFLIB1NAME
=$(TARGET
)
80 DEF1DES
=TestToolServer
82 # --- simple communication library (no vcl) ---------------------------------------------------
84 SHL2TARGET
= simplecm
$(DLLPOSTFIX
)
93 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
94 SHL2LIBS
= $(SLB
)$/simplecm.lib
96 DEF2NAME
=$(SHL2TARGET
)
98 $(MISC
)$/$(SHL2TARGET
).flt
100 DEFLIB2NAME
=simplecm
101 DEF2DES
=SimpleCommunication
103 # --- communication library ---------------------------------------------------
105 SHL3TARGET
= communi
$(DLLPOSTFIX
)
124 SHL3DEF
= $(MISC
)$/$(SHL3TARGET
).def
125 SHL3LIBS
= $(SLB
)$/communi.lib
126 SHL3DEPN
=$(SHL2TARGETN
)
128 DEF3NAME
=$(SHL3TARGET
)
130 $(MISC
)$/$(SHL3TARGET
).flt
133 DEF3DES
=Communication
135 # --- TESTTOOL IDE ------------------------------------------------------
139 .IF
"$(GUI)"=="UNX" ||
("$(COM)"=="GCC" && "$(GUI)"=="WNT")
140 APP1DEPN
+=$(SHL2TARGETN
) $(SHL3TARGETN
)
142 APP1DEPN
+=$(SHL2IMPLIBN
) $(SHL3IMPLIBN
)
165 $(VOSLIB
) $(SALLIB
) $(BASICLIB
)
166 APP1STDLIBS
+=$(CPPULIB
)
168 .IF
"$(GUI)"=="WNT" ||
"$(COM)"=="GCC"
169 APP1STDLIBS
+=$(CPPULIB
)
176 .ENDIF
# "$(GUI)"=="WNT"
180 .IF
"$(OS)" == "SOLARIS"
184 .IF
"$(GUI)" == "UNX"
185 .IF
"$(OS)" == "LINUX"
186 APP1STDLIBS
+= -lXext
-lX11
-lSM
-lICE
188 .IF
"$(OS)"=="MACOSX"
189 APP1STDLIBS
+= -lapp
-lsample
198 APP1OBJS
= $(OBJ
)$/testbasi.obj \
199 $(OBJ
)$/cmdbasestream.obj \
200 $(OBJ
)$/svcommstream.obj
202 # --- TESTTOOL MINIAPP ------------------------------------------------------
203 # ressources are linked here
222 .IF
"$(OS)"=="MACOSX"
224 $(VOSLIB
) $(SALLIB
) $(LIBSTLPORT
)
230 # $(AUTOMATIONLIB) is build in SHL1TARGET
231 .IF
"$(GUI)"=="UNX" ||
("$(COM)"=="GCC" && "$(GUI)"=="WNT")
232 APP3DEPN
=$(SHL1TARGETN
)
234 APP3DEPN
=$(SHL1IMPLIBN
)
240 .IF
"$(GUI)" != "UNX"
241 .IF
"$(COM)" != "GCC"
242 # win16 braucht ein appobj
243 APP3OBJS
= $(OBJ
)$/testapp.obj
247 # --- Targets -----------------------------------------------------------
251 # --- Basic-Filter-Datei ---
253 $(MISC
)$/$(SHL1TARGET
).flt
: makefile.mk
254 @echo
------------------------------
260 @echo exception
>> $@
261 @echo bad_alloc
>> $@
264 $(MISC
)$/$(SHL2TARGET
).flt
: makefile.mk
265 @echo
------------------------------
271 @echo exception
>> $@
272 @echo bad_alloc
>> $@
275 $(MISC
)$/$(SHL3TARGET
).flt
: makefile.mk
276 @echo
------------------------------
282 @echo exception
>> $@
283 @echo bad_alloc
>> $@
287 # ------------------------------------------------------------------------