xref: /aoo41x/main/automation/util/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=automation
31TARGET=automation
32TARGETTYPE=GUI
33
34# --- Settings ---------------------------------------------------
35
36.INCLUDE :  settings.mk
37
38# --- Allgemein ---------------------------------------------------
39
40LIB1TARGET=$(SLB)$/$(TARGET).lib
41LIB1FILES=                 \
42	$(SLB)$/server.lib     \
43	$(SLB)$/simplecm.lib   \
44	$(SLB)$/communi.lib
45
46# --- sts library ---------------------------------------------------
47
48SHL1TARGET= sts$(DLLPOSTFIX)
49SHL1IMPLIB= ists
50
51SHL1STDLIBS= \
52			$(TOOLSLIB) \
53			$(UNOTOOLSLIB) \
54			$(SVTOOLLIB) \
55			$(SVLLIB)       \
56			$(VCLLIB) \
57			$(BASICLIB) \
58			$(VOSLIB) \
59			$(SALLIB) \
60			$(CPPUHELPERLIB) \
61			$(CPPULIB) \
62			$(COMPHELPERLIB) \
63			$(SOTLIB)
64
65
66.IF "$(GUI)"=="WNT"
67SHL1STDLIBS+= \
68		$(ADVAPI32LIB)	\
69		$(GDI32LIB)
70.ENDIF
71
72SHL1DEF=        $(MISC)$/$(SHL1TARGET).def
73SHL1LIBS=       $(SLB)$/$(TARGET).lib
74
75DEF1NAME        =$(SHL1TARGET)
76DEF1DEPN        =       \
77	$(MISC)$/$(SHL1TARGET).flt
78
79DEFLIB1NAME     =$(TARGET)
80DEF1DES         =TestToolServer
81
82# --- simple communication library (no vcl) ---------------------------------------------------
83
84SHL2TARGET= simplecm$(DLLPOSTFIX)
85SHL2IMPLIB= isimplecm
86
87SHL2STDLIBS= \
88			$(TOOLSLIB) \
89			$(VOSLIB) \
90			$(SALLIB)
91
92
93SHL2DEF=        $(MISC)$/$(SHL2TARGET).def
94SHL2LIBS=       $(SLB)$/simplecm.lib
95
96DEF2NAME        =$(SHL2TARGET)
97DEF2DEPN        =       \
98	$(MISC)$/$(SHL2TARGET).flt
99
100DEFLIB2NAME     =simplecm
101DEF2DES         =SimpleCommunication
102
103# --- communication library ---------------------------------------------------
104
105SHL3TARGET= communi$(DLLPOSTFIX)
106SHL3IMPLIB= icommuni
107
108SHL3STDLIBS= \
109			$(TOOLSLIB) \
110			$(SVLLIB)       \
111			$(VCLLIB) \
112			$(VOSLIB) \
113			$(SALLIB) \
114            $(VOSLIB) \
115            $(SIMPLECMLIB)
116
117
118.IF "$(GUI)"=="WNT"
119SHL3STDLIBS+= \
120		$(ADVAPI32LIB)	\
121		$(GDI32LIB)
122.ENDIF
123
124SHL3DEF=        $(MISC)$/$(SHL3TARGET).def
125SHL3LIBS=       $(SLB)$/communi.lib
126SHL3DEPN=$(SHL2TARGETN)
127
128DEF3NAME        =$(SHL3TARGET)
129DEF3DEPN        =       \
130	$(MISC)$/$(SHL3TARGET).flt
131
132DEFLIB3NAME     =communi
133DEF3DES         =Communication
134
135# --- TESTTOOL IDE ------------------------------------------------------
136
137APP1TARGET=testtool
138
139.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
140APP1DEPN+=$(SHL2TARGETN) $(SHL3TARGETN)
141.ELSE
142APP1DEPN+=$(SHL2IMPLIBN) $(SHL3IMPLIBN)
143.ENDIF
144APP1STDLIBS= \
145		$(APP3RDLIB) \
146		$(SAMPLE3RDLIB)
147
148APP1STDLIBS+= \
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)
162
163.IF "$(GUI)"=="UNX"
164APP1STDLIBS+= \
165			$(VOSLIB) $(SALLIB) $(BASICLIB)
166APP1STDLIBS+=$(CPPULIB)
167.ENDIF
168.IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
169APP1STDLIBS+=$(CPPULIB)
170.ENDIF
171
172.IF "$(GUI)"=="WNT"
173APP1STDLIBS += \
174		$(SHELL32LIB) \
175		$(ADVAPI32LIB)
176.ENDIF # "$(GUI)"=="WNT"
177
178
179
180.IF "$(OS)" == "SOLARIS"
181APP1STDLIBS+= -lXm
182.ENDIF
183
184.IF "$(GUI)" == "UNX"
185.IF "$(OS)" == "LINUX"
186APP1STDLIBS+= -lXext -lX11 -lSM -lICE
187.ENDIF
188.IF "$(OS)"=="MACOSX"
189APP1STDLIBS+= -lapp -lsample
190.ENDIF
191.ENDIF
192
193
194
195APP1LIBS=\
196		$(LB)$/testtool.lib
197
198APP1OBJS=       $(OBJ)$/testbasi.obj \
199                $(OBJ)$/cmdbasestream.obj \
200                $(OBJ)$/svcommstream.obj
201
202# --- TESTTOOL MINIAPP ------------------------------------------------------
203# ressources are linked here
204
205RESLIB1NAME=tma
206RESLIB1SRSFILES= \
207                $(SRS)$/miniapp.srs
208
209APP3TARGET=miniapp
210APP3STDLIBS= \
211			$(CPPULIB) \
212			$(CPPUHELPERLIB) \
213			$(UCBHELPERLIB) \
214			$(COMPHELPERLIB) \
215			$(AUTOMATIONLIB) \
216			$(SALLIB) \
217			$(TOOLSLIB) \
218			$(SVTOOLLIB) \
219			$(VCLLIB)
220
221.IF "$(GUI)"=="UNX"
222.IF "$(OS)"=="MACOSX"
223APP3STDLIBS+= \
224			$(VOSLIB) $(SALLIB) $(LIBSTLPORT)
225.ELSE
226APP3STDLIBS+= \
227			$(VOSLIB) $(SALLIB)
228.ENDIF
229.ENDIF
230# $(AUTOMATIONLIB) is build in SHL1TARGET
231.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
232APP3DEPN=$(SHL1TARGETN)
233.ELSE
234APP3DEPN=$(SHL1IMPLIBN)
235.ENDIF
236
237APP3LIBS= \
238		$(LB)$/miniapp.lib
239
240.IF "$(GUI)" != "UNX"
241.IF "$(COM)" != "GCC"
242#		win16 braucht ein appobj
243APP3OBJS=		$(OBJ)$/testapp.obj
244.ENDIF
245.ENDIF
246
247# --- Targets -----------------------------------------------------------
248
249.INCLUDE :  target.mk
250
251# --- Basic-Filter-Datei ---
252
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 >> $@
263
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 >> $@
274
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 >> $@
285
286
287# ------------------------------------------------------------------------
288
289