update dev300-m58
[ooovba.git] / automation / util / makefile.mk
blobf96910a01325dc73574b134aecfe6225d5c405b6
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.27 $
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 #*************************************************************************
32 PRJ=..
34 PRJNAME=automation
35 TARGET=automation
36 TARGETTYPE=GUI
38 # --- Settings ---------------------------------------------------
40 .INCLUDE : settings.mk
42 # --- Allgemein ---------------------------------------------------
44 LIB1TARGET=$(SLB)$/$(TARGET).lib
45 LIB1FILES= \
46 $(SLB)$/server.lib \
47 $(SLB)$/simplecm.lib \
48 $(SLB)$/communi.lib
50 # --- sts library ---------------------------------------------------
52 SHL1TARGET= sts$(DLLPOSTFIX)
53 SHL1IMPLIB= ists
55 SHL1STDLIBS= \
56 $(TOOLSLIB) \
57 $(UNOTOOLSLIB) \
58 $(SVTOOLLIB) \
59 $(SVLLIB) \
60 $(VCLLIB) \
61 $(BASICLIB) \
62 $(VOSLIB) \
63 $(SALLIB) \
64 $(CPPUHELPERLIB) \
65 $(CPPULIB) \
66 $(COMPHELPERLIB) \
67 $(SOTLIB)
70 .IF "$(GUI)"=="WNT"
71 SHL1STDLIBS+= \
72 $(ADVAPI32LIB) \
73 $(GDI32LIB)
74 .ENDIF
76 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
77 SHL1LIBS= $(SLB)$/$(TARGET).lib
79 DEF1NAME =$(SHL1TARGET)
80 DEF1DEPN = \
81 $(MISC)$/$(SHL1TARGET).flt
83 DEFLIB1NAME =$(TARGET)
84 DEF1DES =TestToolServer
86 # --- simple communication library (no vcl) ---------------------------------------------------
88 SHL2TARGET= simplecm$(DLLPOSTFIX)
89 SHL2IMPLIB= isimplecm
91 SHL2STDLIBS= \
92 $(TOOLSLIB) \
93 $(VOSLIB) \
94 $(SALLIB)
97 SHL2DEF= $(MISC)$/$(SHL2TARGET).def
98 SHL2LIBS= $(SLB)$/simplecm.lib
100 DEF2NAME =$(SHL2TARGET)
101 DEF2DEPN = \
102 $(MISC)$/$(SHL2TARGET).flt
104 DEFLIB2NAME =simplecm
105 DEF2DES =SimpleCommunication
107 # --- communication library ---------------------------------------------------
109 SHL3TARGET= communi$(DLLPOSTFIX)
110 SHL3IMPLIB= icommuni
112 SHL3STDLIBS= \
113 $(TOOLSLIB) \
114 $(SVLLIB) \
115 $(VCLLIB) \
116 $(VOSLIB) \
117 $(SALLIB) \
118 $(VOSLIB) \
119 $(SIMPLECMLIB)
122 .IF "$(GUI)"=="WNT"
123 SHL3STDLIBS+= \
124 $(ADVAPI32LIB) \
125 $(GDI32LIB)
126 .ENDIF
128 SHL3DEF= $(MISC)$/$(SHL3TARGET).def
129 SHL3LIBS= $(SLB)$/communi.lib
130 SHL3DEPN=$(SHL2TARGETN)
132 DEF3NAME =$(SHL3TARGET)
133 DEF3DEPN = \
134 $(MISC)$/$(SHL3TARGET).flt
136 DEFLIB3NAME =communi
137 DEF3DES =Communication
139 # --- TESTTOOL IDE ------------------------------------------------------
141 APP1TARGET=testtool
143 .IF "$(GUI)" == "UNX"
144 APP1DEPN+=$(SHL2TARGETN) $(SHL3TARGETN)
145 .ELSE
146 APP1DEPN+=$(SHL2IMPLIBN) $(SHL3IMPLIBN)
147 .ENDIF
148 APP1STDLIBS= \
149 $(APP3RDLIB) \
150 $(SAMPLE3RDLIB)
152 APP1STDLIBS+= \
153 $(CPPUHELPERLIB) \
154 $(TOOLSLIB) \
155 $(UNOTOOLSLIB) \
156 $(SVTOOLLIB) \
157 $(SVLLIB) \
158 $(VCLLIB) \
159 $(SALLIB) \
160 $(SJLIB) \
161 $(VOSLIB) \
162 $(UCBHELPERLIB) \
163 $(COMPHELPERLIB) \
164 $(BASICLIB) \
165 $(SIMPLECMLIB) \
166 $(COMMUNILIB)
168 .IF "$(GUI)"=="UNX"
169 APP1STDLIBS+= \
170 $(VOSLIB) $(SALLIB) $(BASICLIB)
171 APP1STDLIBS+=$(CPPULIB)
172 .ENDIF
173 .IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
174 APP1STDLIBS+=$(CPPULIB)
175 .ENDIF
177 .IF "$(GUI)"=="WNT"
178 APP1STDLIBS += \
179 $(SHELL32LIB) \
180 $(ADVAPI32LIB)
181 .ENDIF # "$(GUI)"=="WNT"
185 .IF "$(OS)" == "SOLARIS"
186 APP1STDLIBS+= -lXm
187 .ENDIF
189 .IF "$(GUI)" == "UNX"
190 .IF "$(OS)" == "LINUX"
191 APP1STDLIBS+= -lXext -lX11 -lSM -lICE
192 .ENDIF
193 .IF "$(OS)"=="MACOSX"
194 APP1STDLIBS+= -lapp -lsample
195 .ENDIF
196 .ENDIF
200 APP1LIBS=\
201 $(LB)$/testtool.lib
203 APP1OBJS= $(OBJ)$/testbasi.obj \
204 $(OBJ)$/cmdbasestream.obj \
205 $(OBJ)$/svcommstream.obj
207 # --- TESTTOOL MINIAPP ------------------------------------------------------
208 # ressources are linked here
210 RESLIB1NAME=tma
211 RESLIB1SRSFILES= \
212 $(SRS)$/miniapp.srs
214 APP3TARGET=miniapp
215 APP3STDLIBS= \
216 $(CPPULIB) \
217 $(CPPUHELPERLIB) \
218 $(UCBHELPERLIB) \
219 $(COMPHELPERLIB) \
220 $(AUTOMATIONLIB) \
221 $(SALLIB) \
222 $(TOOLSLIB) \
223 $(SVTOOLLIB) \
224 $(VCLLIB) \
225 $(SJLIB)
227 .IF "$(GUI)"=="UNX"
228 .IF "$(OS)"=="MACOSX"
229 APP3STDLIBS+= \
230 $(VOSLIB) $(SALLIB) $(LIBSTLPORT)
231 .ELSE
232 APP3STDLIBS+= \
233 $(VOSLIB) $(SALLIB)
234 .ENDIF
235 .ENDIF
236 # $(AUTOMATIONLIB) is build in SHL1TARGET
237 .IF "$(GUI)"=="UNX"
238 APP3DEPN=$(SHL1TARGETN)
239 .ELSE
240 APP3DEPN=$(SHL1IMPLIBN)
241 .ENDIF
243 APP3LIBS= \
244 $(LB)$/miniapp.lib
246 .IF "$(GUI)" != "UNX"
247 .IF "$(COM)" != "GCC"
248 # win16 braucht ein appobj
249 APP3OBJS= $(OBJ)$/testapp.obj
250 .ENDIF
251 .ENDIF
253 # --- Targets -----------------------------------------------------------
255 .INCLUDE : target.mk
257 # --- Basic-Filter-Datei ---
259 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
260 @echo ------------------------------
261 @echo Making: $@
262 @echo WEP > $@
263 @echo LIBMAIN >> $@
264 @echo LibMain >> $@
265 @echo Sbi >> $@
266 @echo exception >> $@
267 @echo bad_alloc >> $@
268 @echo __CT >> $@
270 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
271 @echo ------------------------------
272 @echo Making: $@
273 @echo WEP > $@
274 @echo LIBMAIN >> $@
275 @echo LibMain >> $@
276 @echo Sbi >> $@
277 @echo exception >> $@
278 @echo bad_alloc >> $@
279 @echo __CT >> $@
281 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
282 @echo ------------------------------
283 @echo Making: $@
284 @echo WEP > $@
285 @echo LIBMAIN >> $@
286 @echo LibMain >> $@
287 @echo Sbi >> $@
288 @echo exception >> $@
289 @echo bad_alloc >> $@
290 @echo __CT >> $@
293 # ------------------------------------------------------------------------