merge the formfield patch from ooo-build
[ooovba.git] / automation / util / makefile.mk
blob8d68000c7c5a1c2c6129c4eaddf5ed2532433303
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 $(VOSLIB) \
161 $(UCBHELPERLIB) \
162 $(COMPHELPERLIB) \
163 $(BASICLIB) \
164 $(SIMPLECMLIB) \
165 $(COMMUNILIB)
167 .IF "$(GUI)"=="UNX"
168 APP1STDLIBS+= \
169 $(VOSLIB) $(SALLIB) $(BASICLIB)
170 APP1STDLIBS+=$(CPPULIB)
171 .ENDIF
172 .IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
173 APP1STDLIBS+=$(CPPULIB)
174 .ENDIF
176 .IF "$(GUI)"=="WNT"
177 APP1STDLIBS += \
178 $(SHELL32LIB) \
179 $(ADVAPI32LIB)
180 .ENDIF # "$(GUI)"=="WNT"
184 .IF "$(OS)" == "SOLARIS"
185 APP1STDLIBS+= -lXm
186 .ENDIF
188 .IF "$(GUI)" == "UNX"
189 .IF "$(OS)" == "LINUX"
190 APP1STDLIBS+= -lXext -lX11 -lSM -lICE
191 .ENDIF
192 .IF "$(OS)"=="MACOSX"
193 APP1STDLIBS+= -lapp -lsample
194 .ENDIF
195 .ENDIF
199 APP1LIBS=\
200 $(LB)$/testtool.lib
202 APP1OBJS= $(OBJ)$/testbasi.obj \
203 $(OBJ)$/cmdbasestream.obj \
204 $(OBJ)$/svcommstream.obj
206 # --- TESTTOOL MINIAPP ------------------------------------------------------
207 # ressources are linked here
209 RESLIB1NAME=tma
210 RESLIB1SRSFILES= \
211 $(SRS)$/miniapp.srs
213 APP3TARGET=miniapp
214 APP3STDLIBS= \
215 $(CPPULIB) \
216 $(CPPUHELPERLIB) \
217 $(UCBHELPERLIB) \
218 $(COMPHELPERLIB) \
219 $(AUTOMATIONLIB) \
220 $(SALLIB) \
221 $(TOOLSLIB) \
222 $(SVTOOLLIB) \
223 $(VCLLIB)
225 .IF "$(GUI)"=="UNX"
226 .IF "$(OS)"=="MACOSX"
227 APP3STDLIBS+= \
228 $(VOSLIB) $(SALLIB) $(LIBSTLPORT)
229 .ELSE
230 APP3STDLIBS+= \
231 $(VOSLIB) $(SALLIB)
232 .ENDIF
233 .ENDIF
234 # $(AUTOMATIONLIB) is build in SHL1TARGET
235 .IF "$(GUI)"=="UNX"
236 APP3DEPN=$(SHL1TARGETN)
237 .ELSE
238 APP3DEPN=$(SHL1IMPLIBN)
239 .ENDIF
241 APP3LIBS= \
242 $(LB)$/miniapp.lib
244 .IF "$(GUI)" != "UNX"
245 .IF "$(COM)" != "GCC"
246 # win16 braucht ein appobj
247 APP3OBJS= $(OBJ)$/testapp.obj
248 .ENDIF
249 .ENDIF
251 # --- Targets -----------------------------------------------------------
253 .INCLUDE : target.mk
255 # --- Basic-Filter-Datei ---
257 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
258 @echo ------------------------------
259 @echo Making: $@
260 @echo WEP > $@
261 @echo LIBMAIN >> $@
262 @echo LibMain >> $@
263 @echo Sbi >> $@
264 @echo exception >> $@
265 @echo bad_alloc >> $@
266 @echo __CT >> $@
268 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
269 @echo ------------------------------
270 @echo Making: $@
271 @echo WEP > $@
272 @echo LIBMAIN >> $@
273 @echo LibMain >> $@
274 @echo Sbi >> $@
275 @echo exception >> $@
276 @echo bad_alloc >> $@
277 @echo __CT >> $@
279 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
280 @echo ------------------------------
281 @echo Making: $@
282 @echo WEP > $@
283 @echo LIBMAIN >> $@
284 @echo LibMain >> $@
285 @echo Sbi >> $@
286 @echo exception >> $@
287 @echo bad_alloc >> $@
288 @echo __CT >> $@
291 # ------------------------------------------------------------------------