1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
38 # --- Settings ---------------------------------------------------
40 .INCLUDE
: settings.mk
42 # --- Allgemein ---------------------------------------------------
44 LIB1TARGET
=$(SLB
)$/$(TARGET
).lib
47 $(SLB
)$/simplecm.lib \
50 # --- sts library ---------------------------------------------------
52 SHL1TARGET
= sts
$(DLLPOSTFIX
)
76 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
77 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
79 DEF1NAME
=$(SHL1TARGET
)
81 $(MISC
)$/$(SHL1TARGET
).flt
83 DEFLIB1NAME
=$(TARGET
)
84 DEF1DES
=TestToolServer
86 # --- simple communication library (no vcl) ---------------------------------------------------
88 SHL2TARGET
= simplecm
$(DLLPOSTFIX
)
97 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
98 SHL2LIBS
= $(SLB
)$/simplecm.lib
100 DEF2NAME
=$(SHL2TARGET
)
102 $(MISC
)$/$(SHL2TARGET
).flt
104 DEFLIB2NAME
=simplecm
105 DEF2DES
=SimpleCommunication
107 # --- communication library ---------------------------------------------------
109 SHL3TARGET
= communi
$(DLLPOSTFIX
)
128 SHL3DEF
= $(MISC
)$/$(SHL3TARGET
).def
129 SHL3LIBS
= $(SLB
)$/communi.lib
130 SHL3DEPN
=$(SHL2TARGETN
)
132 DEF3NAME
=$(SHL3TARGET
)
134 $(MISC
)$/$(SHL3TARGET
).flt
137 DEF3DES
=Communication
139 # --- TESTTOOL IDE ------------------------------------------------------
143 .IF
"$(GUI)" == "UNX"
144 APP1DEPN
+=$(SHL2TARGETN
) $(SHL3TARGETN
)
146 APP1DEPN
+=$(SHL2IMPLIBN
) $(SHL3IMPLIBN
)
170 $(VOSLIB
) $(SALLIB
) $(BASICLIB
)
171 APP1STDLIBS
+=$(CPPULIB
)
173 .IF
"$(GUI)"=="WNT" ||
"$(COM)"=="GCC"
174 APP1STDLIBS
+=$(CPPULIB
)
181 .ENDIF
# "$(GUI)"=="WNT"
185 .IF
"$(OS)" == "SOLARIS"
189 .IF
"$(GUI)" == "UNX"
190 .IF
"$(OS)" == "LINUX"
191 APP1STDLIBS
+= -lXext
-lX11
-lSM
-lICE
193 .IF
"$(OS)"=="MACOSX"
194 APP1STDLIBS
+= -lapp
-lsample
203 APP1OBJS
= $(OBJ
)$/testbasi.obj \
204 $(OBJ
)$/cmdbasestream.obj \
205 $(OBJ
)$/svcommstream.obj
207 # --- TESTTOOL MINIAPP ------------------------------------------------------
208 # ressources are linked here
228 .IF
"$(OS)"=="MACOSX"
230 $(VOSLIB
) $(SALLIB
) $(LIBSTLPORT
)
236 # $(AUTOMATIONLIB) is build in SHL1TARGET
238 APP3DEPN
=$(SHL1TARGETN
)
240 APP3DEPN
=$(SHL1IMPLIBN
)
246 .IF
"$(GUI)" != "UNX"
247 .IF
"$(COM)" != "GCC"
248 # win16 braucht ein appobj
249 APP3OBJS
= $(OBJ
)$/testapp.obj
253 # --- Targets -----------------------------------------------------------
257 # --- Basic-Filter-Datei ---
259 $(MISC
)$/$(SHL1TARGET
).flt
: makefile.mk
260 @echo
------------------------------
266 @echo exception
>> $@
267 @echo bad_alloc
>> $@
270 $(MISC
)$/$(SHL2TARGET
).flt
: makefile.mk
271 @echo
------------------------------
277 @echo exception
>> $@
278 @echo bad_alloc
>> $@
281 $(MISC
)$/$(SHL3TARGET
).flt
: makefile.mk
282 @echo
------------------------------
288 @echo exception
>> $@
289 @echo bad_alloc
>> $@
293 # ------------------------------------------------------------------------