xref: /aoo41x/main/automation/util/makefile.mk (revision 0817ece2)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25
26PRJNAME=automation
27TARGET=automation
28TARGETTYPE=GUI
29
30# --- Settings ---------------------------------------------------
31
32.INCLUDE :  settings.mk
33
34# --- Allgemein ---------------------------------------------------
35
36LIB1TARGET=$(SLB)$/$(TARGET).lib
37LIB1FILES=                 \
38	$(SLB)$/server.lib     \
39	$(SLB)$/simplecm.lib   \
40	$(SLB)$/communi.lib
41
42# --- sts library ---------------------------------------------------
43
44SHL1TARGET= sts$(DLLPOSTFIX)
45SHL1IMPLIB= ists
46
47SHL1STDLIBS= \
48			$(TOOLSLIB) \
49			$(UNOTOOLSLIB) \
50			$(SVTOOLLIB) \
51			$(SVLLIB)       \
52			$(VCLLIB) \
53			$(BASICLIB) \
54			$(VOSLIB) \
55			$(SALLIB) \
56			$(CPPUHELPERLIB) \
57			$(CPPULIB) \
58			$(COMPHELPERLIB) \
59			$(SOTLIB)
60
61
62.IF "$(GUI)"=="WNT"
63SHL1STDLIBS+= \
64		$(ADVAPI32LIB)	\
65		$(GDI32LIB)
66.ENDIF
67
68SHL1DEF=        $(MISC)$/$(SHL1TARGET).def
69SHL1LIBS=       $(SLB)$/$(TARGET).lib
70
71DEF1NAME        =$(SHL1TARGET)
72DEF1DEPN        =       \
73	$(MISC)$/$(SHL1TARGET).flt
74
75DEFLIB1NAME     =$(TARGET)
76DEF1DES         =TestToolServer
77
78# --- simple communication library (no vcl) ---------------------------------------------------
79
80SHL2TARGET= simplecm$(DLLPOSTFIX)
81SHL2IMPLIB= isimplecm
82
83SHL2STDLIBS= \
84			$(TOOLSLIB) \
85			$(VOSLIB) \
86			$(SALLIB)
87
88
89SHL2DEF=        $(MISC)$/$(SHL2TARGET).def
90SHL2LIBS=       $(SLB)$/simplecm.lib
91
92DEF2NAME        =$(SHL2TARGET)
93DEF2DEPN        =       \
94	$(MISC)$/$(SHL2TARGET).flt
95
96DEFLIB2NAME     =simplecm
97DEF2DES         =SimpleCommunication
98
99# --- communication library ---------------------------------------------------
100
101SHL3TARGET= communi$(DLLPOSTFIX)
102SHL3IMPLIB= icommuni
103
104SHL3STDLIBS= \
105			$(TOOLSLIB) \
106			$(SVLLIB)       \
107			$(VCLLIB) \
108			$(VOSLIB) \
109			$(SALLIB) \
110            $(VOSLIB) \
111            $(SIMPLECMLIB)
112
113
114.IF "$(GUI)"=="WNT"
115SHL3STDLIBS+= \
116		$(ADVAPI32LIB)	\
117		$(GDI32LIB)
118.ENDIF
119
120SHL3DEF=        $(MISC)$/$(SHL3TARGET).def
121SHL3LIBS=       $(SLB)$/communi.lib
122SHL3DEPN=$(SHL2TARGETN)
123
124DEF3NAME        =$(SHL3TARGET)
125DEF3DEPN        =       \
126	$(MISC)$/$(SHL3TARGET).flt
127
128DEFLIB3NAME     =communi
129DEF3DES         =Communication
130
131# --- TESTTOOL IDE ------------------------------------------------------
132
133#APP1TARGET=testtool
134
135#.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
136#APP1DEPN+=$(SHL2TARGETN) $(SHL3TARGETN)
137#.ELSE
138#APP1DEPN+=$(SHL2IMPLIBN) $(SHL3IMPLIBN)
139#.ENDIF
140#APP1STDLIBS= \
141		$(APP3RDLIB) \
142		$(SAMPLE3RDLIB)
143
144#APP1STDLIBS+= \
145			$(CPPUHELPERLIB) \
146			$(TOOLSLIB) \
147            $(UNOTOOLSLIB) \
148			$(SVTOOLLIB) \
149			$(SVLLIB) \
150			$(VCLLIB) \
151			$(SALLIB) \
152			$(VOSLIB) \
153			$(UCBHELPERLIB) \
154			$(COMPHELPERLIB) \
155            $(BASICLIB) \
156            $(SIMPLECMLIB) \
157            $(COMMUNILIB)
158
159#.IF "$(GUI)"=="UNX"
160#APP1STDLIBS+= \
161			$(VOSLIB) $(SALLIB) $(BASICLIB)
162#APP1STDLIBS+=$(CPPULIB)
163#.ENDIF
164#.IF "$(GUI)"=="WNT" || "$(COM)"=="GCC"
165#APP1STDLIBS+=$(CPPULIB)
166#.ENDIF
167
168#.IF "$(GUI)"=="WNT"
169#APP1STDLIBS += \
170		$(SHELL32LIB) \
171		$(ADVAPI32LIB)
172#.ENDIF # "$(GUI)"=="WNT"
173
174
175
176#.IF "$(OS)" == "SOLARIS"
177#APP1STDLIBS+= -lXm
178#.ENDIF
179
180#.IF "$(GUI)" == "UNX"
181#.IF "$(OS)" == "LINUX"
182#APP1STDLIBS+= -lXext -lX11 -lSM -lICE
183#.ENDIF
184#.IF "$(OS)"=="MACOSX"
185#APP1STDLIBS+= -lapp -lsample
186#.ENDIF
187#.ENDIF
188
189
190
191#APP1LIBS=\
192		$(LB)$/testtool.lib
193
194#APP1OBJS=       $(OBJ)$/testbasi.obj \
195                $(OBJ)$/cmdbasestream.obj \
196                $(OBJ)$/svcommstream.obj
197
198# --- TESTTOOL MINIAPP ------------------------------------------------------
199# ressources are linked here
200
201#RESLIB1NAME=tma
202#RESLIB1SRSFILES= \
203                $(SRS)$/miniapp.srs
204
205#APP3TARGET=miniapp
206#APP3STDLIBS= \
207			$(CPPULIB) \
208			$(CPPUHELPERLIB) \
209			$(UCBHELPERLIB) \
210			$(COMPHELPERLIB) \
211			$(AUTOMATIONLIB) \
212			$(SALLIB) \
213			$(TOOLSLIB) \
214			$(SVTOOLLIB) \
215			$(VCLLIB)
216
217#.IF "$(GUI)"=="UNX"
218#.IF "$(OS)"=="MACOSX"
219#APP3STDLIBS+= \
220			$(VOSLIB) $(SALLIB) $(LIBSTLPORT)
221#.ELSE
222#APP3STDLIBS+= \
223			$(VOSLIB) $(SALLIB)
224#.ENDIF
225#.ENDIF
226# $(AUTOMATIONLIB) is build in SHL1TARGET
227#.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT")
228#APP3DEPN=$(SHL1TARGETN)
229#.ELSE
230#APP3DEPN=$(SHL1IMPLIBN)
231#.ENDIF
232
233#APP3LIBS= \
234		$(LB)$/miniapp.lib
235
236#.IF "$(GUI)" != "UNX"
237#.IF "$(COM)" != "GCC"
238#		win16 braucht ein appobj
239#APP3OBJS=		$(OBJ)$/testapp.obj
240#.ENDIF
241#.ENDIF
242
243# --- Targets -----------------------------------------------------------
244
245.INCLUDE :  target.mk
246
247# --- Basic-Filter-Datei ---
248
249$(MISC)$/$(SHL1TARGET).flt: makefile.mk
250	@echo ------------------------------
251	@echo Making: $@
252	@echo WEP > $@
253	@echo LIBMAIN >> $@
254	@echo LibMain >> $@
255	@echo Sbi >> $@
256	@echo exception >> $@
257	@echo bad_alloc >> $@
258	@echo __CT >> $@
259
260$(MISC)$/$(SHL2TARGET).flt: makefile.mk
261	@echo ------------------------------
262	@echo Making: $@
263	@echo WEP > $@
264	@echo LIBMAIN >> $@
265	@echo LibMain >> $@
266	@echo Sbi >> $@
267	@echo exception >> $@
268	@echo bad_alloc >> $@
269	@echo __CT >> $@
270
271$(MISC)$/$(SHL3TARGET).flt: makefile.mk
272	@echo ------------------------------
273	@echo Making: $@
274	@echo WEP > $@
275	@echo LIBMAIN >> $@
276	@echo LibMain >> $@
277	@echo Sbi >> $@
278	@echo exception >> $@
279	@echo bad_alloc >> $@
280	@echo __CT >> $@
281
282
283# ------------------------------------------------------------------------
284
285