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
)
169 $(VOSLIB
) $(SALLIB
) $(BASICLIB
)
170 APP1STDLIBS
+=$(CPPULIB
)
172 .IF
"$(GUI)"=="WNT" ||
"$(COM)"=="GCC"
173 APP1STDLIBS
+=$(CPPULIB
)
180 .ENDIF
# "$(GUI)"=="WNT"
184 .IF
"$(OS)" == "SOLARIS"
188 .IF
"$(GUI)" == "UNX"
189 .IF
"$(OS)" == "LINUX"
190 APP1STDLIBS
+= -lXext
-lX11
-lSM
-lICE
192 .IF
"$(OS)"=="MACOSX"
193 APP1STDLIBS
+= -lapp
-lsample
202 APP1OBJS
= $(OBJ
)$/testbasi.obj \
203 $(OBJ
)$/cmdbasestream.obj \
204 $(OBJ
)$/svcommstream.obj
206 # --- TESTTOOL MINIAPP ------------------------------------------------------
207 # ressources are linked here
226 .IF
"$(OS)"=="MACOSX"
228 $(VOSLIB
) $(SALLIB
) $(LIBSTLPORT
)
234 # $(AUTOMATIONLIB) is build in SHL1TARGET
236 APP3DEPN
=$(SHL1TARGETN
)
238 APP3DEPN
=$(SHL1IMPLIBN
)
244 .IF
"$(GUI)" != "UNX"
245 .IF
"$(COM)" != "GCC"
246 # win16 braucht ein appobj
247 APP3OBJS
= $(OBJ
)$/testapp.obj
251 # --- Targets -----------------------------------------------------------
255 # --- Basic-Filter-Datei ---
257 $(MISC
)$/$(SHL1TARGET
).flt
: makefile.mk
258 @echo
------------------------------
264 @echo exception
>> $@
265 @echo bad_alloc
>> $@
268 $(MISC
)$/$(SHL2TARGET
).flt
: makefile.mk
269 @echo
------------------------------
275 @echo exception
>> $@
276 @echo bad_alloc
>> $@
279 $(MISC
)$/$(SHL3TARGET
).flt
: makefile.mk
280 @echo
------------------------------
286 @echo exception
>> $@
287 @echo bad_alloc
>> $@
291 # ------------------------------------------------------------------------