merged tag ooo/OOO330_m14
[LibreOffice.git] / automation / util / makefile.mk
blob756a3d6a62e40e7ebab96884838a76fbb7595603
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
28 PRJ=..
30 PRJNAME=automation
31 TARGET=automation
32 TARGETTYPE=GUI
34 # --- Settings ---------------------------------------------------
36 .INCLUDE : settings.mk
38 # --- Allgemein ---------------------------------------------------
40 LIB1TARGET=$(SLB)$/$(TARGET).lib
41 LIB1FILES= \
42 $(SLB)$/server.lib \
43 $(SLB)$/simplecm.lib \
44 $(SLB)$/communi.lib
46 # --- sts library ---------------------------------------------------
48 SHL1TARGET= sts$(DLLPOSTFIX)
49 SHL1IMPLIB= ists
51 SHL1STDLIBS= \
52 $(TOOLSLIB) \
53 $(UNOTOOLSLIB) \
54 $(SVTOOLLIB) \
55 $(SVLLIB) \
56 $(VCLLIB) \
57 $(BASICLIB) \
58 $(VOSLIB) \
59 $(SALLIB) \
60 $(CPPUHELPERLIB) \
61 $(CPPULIB) \
62 $(COMPHELPERLIB) \
63 $(SOTLIB)
66 .IF "$(GUI)"=="WNT"
67 SHL1STDLIBS+= \
68 $(ADVAPI32LIB) \
69 $(GDI32LIB)
70 .ENDIF
72 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
73 SHL1LIBS= $(SLB)$/$(TARGET).lib
75 DEF1NAME =$(SHL1TARGET)
76 DEF1DEPN = \
77 $(MISC)$/$(SHL1TARGET).flt
79 DEFLIB1NAME =$(TARGET)
80 DEF1DES =TestToolServer
82 # --- simple communication library (no vcl) ---------------------------------------------------
84 SHL2TARGET= simplecm$(DLLPOSTFIX)
85 SHL2IMPLIB= isimplecm
87 SHL2STDLIBS= \
88 $(TOOLSLIB) \
89 $(VOSLIB) \
90 $(SALLIB)
93 SHL2DEF= $(MISC)$/$(SHL2TARGET).def
94 SHL2LIBS= $(SLB)$/simplecm.lib
96 DEF2NAME =$(SHL2TARGET)
97 DEF2DEPN = \
98 $(MISC)$/$(SHL2TARGET).flt
100 DEFLIB2NAME =simplecm
101 DEF2DES =SimpleCommunication
103 # --- communication library ---------------------------------------------------
105 SHL3TARGET= communi$(DLLPOSTFIX)
106 SHL3IMPLIB= icommuni
108 SHL3STDLIBS= \
109 $(TOOLSLIB) \
110 $(SVLLIB) \
111 $(VCLLIB) \
112 $(VOSLIB) \
113 $(SALLIB) \
114 $(VOSLIB) \
115 $(SIMPLECMLIB)
118 .IF "$(GUI)"=="WNT"
119 SHL3STDLIBS+= \
120 $(ADVAPI32LIB) \
121 $(GDI32LIB)
122 .ENDIF
124 SHL3DEF= $(MISC)$/$(SHL3TARGET).def
125 SHL3LIBS= $(SLB)$/communi.lib
126 SHL3DEPN=$(SHL2TARGETN)
128 DEF3NAME =$(SHL3TARGET)
129 DEF3DEPN = \
130 $(MISC)$/$(SHL3TARGET).flt
132 DEFLIB3NAME =communi
133 DEF3DES =Communication
135 # --- TESTTOOL IDE ------------------------------------------------------
137 APP1TARGET=testtool
139 .IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
140 APP1DEPN+=$(SHL2TARGETN) $(SHL3TARGETN)
141 .ELSE
142 APP1DEPN+=$(SHL2IMPLIBN) $(SHL3IMPLIBN)
143 .ENDIF
144 APP1STDLIBS= \
145 $(APP3RDLIB) \
146 $(SAMPLE3RDLIB)
148 APP1STDLIBS+= \
149 $(CPPUHELPERLIB) \
150 $(TOOLSLIB) \
151 $(UNOTOOLSLIB) \
152 $(SVTOOLLIB) \
153 $(SVLLIB) \
154 $(VCLLIB) \
155 $(SALLIB) \
156 $(VOSLIB) \
157 $(UCBHELPERLIB) \
158 $(COMPHELPERLIB) \
159 $(BASICLIB) \
160 $(SIMPLECMLIB) \
161 $(COMMUNILIB)
163 .IF "$(GUI)"=="UNX"
164 APP1STDLIBS+= \
165 $(VOSLIB) $(SALLIB) $(BASICLIB)
166 APP1STDLIBS+=$(CPPULIB)
167 .ENDIF
168 .IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
169 APP1STDLIBS+=$(CPPULIB)
170 .ENDIF
172 .IF "$(GUI)"=="WNT"
173 APP1STDLIBS += \
174 $(SHELL32LIB) \
175 $(ADVAPI32LIB)
176 .ENDIF # "$(GUI)"=="WNT"
180 .IF "$(OS)" == "SOLARIS"
181 APP1STDLIBS+= -lXm
182 .ENDIF
184 .IF "$(GUI)" == "UNX"
185 .IF "$(OS)" == "LINUX"
186 APP1STDLIBS+= -lXext -lX11 -lSM -lICE
187 .ENDIF
188 .IF "$(OS)"=="MACOSX"
189 APP1STDLIBS+= -lapp -lsample
190 .ENDIF
191 .ENDIF
195 APP1LIBS=\
196 $(LB)$/testtool.lib
198 APP1OBJS= $(OBJ)$/testbasi.obj \
199 $(OBJ)$/cmdbasestream.obj \
200 $(OBJ)$/svcommstream.obj
202 # --- TESTTOOL MINIAPP ------------------------------------------------------
203 # ressources are linked here
205 RESLIB1NAME=tma
206 RESLIB1SRSFILES= \
207 $(SRS)$/miniapp.srs
209 APP3TARGET=miniapp
210 APP3STDLIBS= \
211 $(CPPULIB) \
212 $(CPPUHELPERLIB) \
213 $(UCBHELPERLIB) \
214 $(COMPHELPERLIB) \
215 $(AUTOMATIONLIB) \
216 $(SALLIB) \
217 $(TOOLSLIB) \
218 $(SVTOOLLIB) \
219 $(VCLLIB)
221 .IF "$(GUI)"=="UNX"
222 .IF "$(OS)"=="MACOSX"
223 APP3STDLIBS+= \
224 $(VOSLIB) $(SALLIB) $(LIBSTLPORT)
225 .ELSE
226 APP3STDLIBS+= \
227 $(VOSLIB) $(SALLIB)
228 .ENDIF
229 .ENDIF
230 # $(AUTOMATIONLIB) is build in SHL1TARGET
231 .IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
232 APP3DEPN=$(SHL1TARGETN)
233 .ELSE
234 APP3DEPN=$(SHL1IMPLIBN)
235 .ENDIF
237 APP3LIBS= \
238 $(LB)$/miniapp.lib
240 .IF "$(GUI)" != "UNX"
241 .IF "$(COM)" != "GCC"
242 # win16 braucht ein appobj
243 APP3OBJS= $(OBJ)$/testapp.obj
244 .ENDIF
245 .ENDIF
247 # --- Targets -----------------------------------------------------------
249 .INCLUDE : target.mk
251 # --- Basic-Filter-Datei ---
253 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
254 @echo ------------------------------
255 @echo Making: $@
256 @echo WEP > $@
257 @echo LIBMAIN >> $@
258 @echo LibMain >> $@
259 @echo Sbi >> $@
260 @echo exception >> $@
261 @echo bad_alloc >> $@
262 @echo __CT >> $@
264 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
265 @echo ------------------------------
266 @echo Making: $@
267 @echo WEP > $@
268 @echo LIBMAIN >> $@
269 @echo LibMain >> $@
270 @echo Sbi >> $@
271 @echo exception >> $@
272 @echo bad_alloc >> $@
273 @echo __CT >> $@
275 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
276 @echo ------------------------------
277 @echo Making: $@
278 @echo WEP > $@
279 @echo LIBMAIN >> $@
280 @echo LibMain >> $@
281 @echo Sbi >> $@
282 @echo exception >> $@
283 @echo bad_alloc >> $@
284 @echo __CT >> $@
287 # ------------------------------------------------------------------------