xref: /aoo41x/main/sal/workben/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sal
27cdf0e10cSrcweirTARGET=workben
28cdf0e10cSrcweirLIBTARGET=NO
29cdf0e10cSrcweirTARGETTYPE=CUI
30cdf0e10cSrcweir#ENABLE_EXCEPTIONS=TRUE
31cdf0e10cSrcweirNO_DEFAULT_STL=YES
32cdf0e10cSrcweir
33cdf0e10cSrcweir#TESTAPP=test_osl_getVolInfo
34cdf0e10cSrcweir#TESTAPP=test_osl_joinProcess
35cdf0e10cSrcweir#TESTAPP=getlocaleinfotest
36cdf0e10cSrcweir#TESTAPP=test_osl_joinProcess
37cdf0e10cSrcweir#TESTAPP=getlocaleinfotest
38cdf0e10cSrcweir#TESTAPP=salstattest
39cdf0e10cSrcweir#TESTAPP=saldyntest
40cdf0e10cSrcweir
41cdf0e10cSrcweirTESTAPP=t_readline
42cdf0e10cSrcweir#TESTAPP=t_cipher
43cdf0e10cSrcweir#TESTAPP=t_digest
44cdf0e10cSrcweir#TESTAPP=t_random
45cdf0e10cSrcweir#TESTAPP=t_layer
46cdf0e10cSrcweir#TESTAPP=t_tls
47cdf0e10cSrcweir#TESTAPP=t_zip
48cdf0e10cSrcweir
49cdf0e10cSrcweir#TESTAPP=testfile
50cdf0e10cSrcweir#TESTAPP=testpipe
51cdf0e10cSrcweir#TESTAPP=testpip2
52cdf0e10cSrcweir#TESTAPP=testproc
53cdf0e10cSrcweir#TESTAPP=tgetpwnam
54cdf0e10cSrcweir#TESTAPP=salstattest
55cdf0e10cSrcweir
56cdf0e10cSrcweir# --- Settings -----------------------------------------------------
57cdf0e10cSrcweir
58cdf0e10cSrcweir.INCLUDE :  settings.mk
59cdf0e10cSrcweir
60cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS)
61cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS)
62cdf0e10cSrcweir
63cdf0e10cSrcweir# --- Files --------------------------------------------------------
64cdf0e10cSrcweir
65cdf0e10cSrcweir.IF "$(TESTAPP)" == "test_osl_getVolInfo"
66cdf0e10cSrcweir
67cdf0e10cSrcweirSHL1OBJS=$(SLO)$/t_osl_getVolInfo.obj
68cdf0e10cSrcweirSHL1TARGET=togvi
69cdf0e10cSrcweir
70cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
71cdf0e10cSrcweirAPP1STDLIBS=$(KERNEL32LIB)
72cdf0e10cSrcweirSHL1STDLIBS=$(LB)$/isal.lib
73cdf0e10cSrcweirSHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
74cdf0e10cSrcweir.ENDIF
75cdf0e10cSrcweir
76cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
77cdf0e10cSrcweirSHL1STDLIBS=$(LB)$/libsal.so
78cdf0e10cSrcweirSHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
79cdf0e10cSrcweir.ENDIF
80cdf0e10cSrcweir
81cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
82cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
83cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
84cdf0e10cSrcweirDEF1EXPORTFILE=export.exp
85cdf0e10cSrcweir.ENDIF
86cdf0e10cSrcweir
87cdf0e10cSrcweir.IF "$(TESTAPP)" == "test_osl_joinProcess"
88cdf0e10cSrcweirOBJFILES=$(OBJ)$/t_ojp_exe.obj
89cdf0e10cSrcweirAPP1TARGET=ojpx
90cdf0e10cSrcweirAPP1OBJS=$(OBJFILES)
91cdf0e10cSrcweir
92cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
93cdf0e10cSrcweirAPP1STDLIBS=$(LB)$/libsal.so
94cdf0e10cSrcweir.ENDIF
95cdf0e10cSrcweir
96cdf0e10cSrcweirSHL1OBJS=$(SLO)$/t_osl_joinProcess.obj
97cdf0e10cSrcweirSHL1TARGET=tojp
98cdf0e10cSrcweir
99cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
100cdf0e10cSrcweirAPP1STDLIBS=$(KERNEL32LIB)
101cdf0e10cSrcweirSHL1STDLIBS=$(LB)$/isal.lib
102cdf0e10cSrcweirSHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
103cdf0e10cSrcweir.ENDIF
104cdf0e10cSrcweir
105cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
106cdf0e10cSrcweirSHL1STDLIBS=$(LB)$/libsal.so
107cdf0e10cSrcweirSHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir
110cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
111cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
112cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
113cdf0e10cSrcweirDEF1EXPORTFILE=export.exp
114cdf0e10cSrcweir.ENDIF
115cdf0e10cSrcweir
116cdf0e10cSrcweir.IF "$(TESTAPP)" == "getlocaleinfotest"
117cdf0e10cSrcweir
118cdf0e10cSrcweir	OBJFILES=$(OBJ)$/getlocaleinfotest.obj
119cdf0e10cSrcweir
120cdf0e10cSrcweir	APP1TARGET=	getlitest
121cdf0e10cSrcweir	APP1OBJS=$(OBJFILES)
122cdf0e10cSrcweir
123cdf0e10cSrcweir	APP1STDLIBS=\
124cdf0e10cSrcweir				$(KERNEL32LIB)
125cdf0e10cSrcweir
126cdf0e10cSrcweir	APP1LIBS=\
127cdf0e10cSrcweir			$(LB)$/kernel9x.lib\
128cdf0e10cSrcweir			$(LB)$/isal.lib
129cdf0e10cSrcweir
130cdf0e10cSrcweir	APP1DEPN=$(LB)$/isal.lib
131cdf0e10cSrcweir
132cdf0e10cSrcweir.ENDIF
133cdf0e10cSrcweir
134cdf0e10cSrcweir.IF "$(TESTAPP)" == "salstattest"
135cdf0e10cSrcweir
136cdf0e10cSrcweir	CFLAGS+= -DUSE_SAL_STATIC
137cdf0e10cSrcweir
138cdf0e10cSrcweir	OBJFILES=	$(OBJ)$/salstattest.obj
139cdf0e10cSrcweir
140cdf0e10cSrcweir	APP1TARGET=	salstattest
141cdf0e10cSrcweir	APP1OBJS=	$(OBJFILES)
142cdf0e10cSrcweir	APP1STDLIBS=\
143cdf0e10cSrcweir				$(LB)$/asal.lib\
144cdf0e10cSrcweir				$(SHELL32LIB)\
145cdf0e10cSrcweir				$(USER32LIB)\
146cdf0e10cSrcweir				$(COMDLG32LIB)\
147cdf0e10cSrcweir				$(ADVAPI32LIB)
148cdf0e10cSrcweir
149cdf0e10cSrcweir	APP1DEPN=	$(LB)$/asal.lib
150cdf0e10cSrcweir
151cdf0e10cSrcweir.ENDIF # salstattest
152cdf0e10cSrcweir
153cdf0e10cSrcweir.IF "$(TESTAPP)" == "saldyntest"
154cdf0e10cSrcweir
155cdf0e10cSrcweir	OBJFILES=	$(OBJ)$/saldyntest.obj
156cdf0e10cSrcweir
157cdf0e10cSrcweir	APP1TARGET=	saldyntest
158cdf0e10cSrcweir	APP1OBJS=	$(OBJFILES)
159cdf0e10cSrcweir	APP1STDLIBS=\
160cdf0e10cSrcweir				$(LB)$/isal.lib\
161cdf0e10cSrcweir				$(SHELL32LIB)\
162cdf0e10cSrcweir				$(USER32LIB)\
163cdf0e10cSrcweir				$(COMDLG32LIB)\
164cdf0e10cSrcweir				$(ADVAPI32LIB)
165cdf0e10cSrcweir
166cdf0e10cSrcweir	APP1DEPN=	$(LB)$/isal.lib
167cdf0e10cSrcweir
168cdf0e10cSrcweir.ENDIF # salstattest
169cdf0e10cSrcweir
170cdf0e10cSrcweir#
171cdf0e10cSrcweir# t_readline
172cdf0e10cSrcweir#
173cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_readline"
174cdf0e10cSrcweir
175cdf0e10cSrcweirCFILES=		t_readline.c
176cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_readline.obj
177cdf0e10cSrcweir
178cdf0e10cSrcweirAPP1TARGET=	t_readline
179cdf0e10cSrcweirAPP1OBJS=	$(OBJFILES)
180cdf0e10cSrcweirAPP1STDLIBS=$(SALLIB)
181cdf0e10cSrcweirAPP1DEPN=	$(SLB)$/sal.lib
182cdf0e10cSrcweir
183cdf0e10cSrcweirAPP1RPATH=UREBIN
184cdf0e10cSrcweir
185cdf0e10cSrcweir.ENDIF # t_readline
186cdf0e10cSrcweir
187cdf0e10cSrcweir#
188cdf0e10cSrcweir# t_cipher
189cdf0e10cSrcweir#
190cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_cipher"
191cdf0e10cSrcweir
192cdf0e10cSrcweirCFILES=		t_cipher.c
193cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_cipher.obj
194cdf0e10cSrcweir
195cdf0e10cSrcweirAPP1TARGET=	t_cipher
196cdf0e10cSrcweirAPP1OBJS=	$(OBJFILES)
197cdf0e10cSrcweirAPP1STDLIBS=$(SALLIB)
198cdf0e10cSrcweirAPP1DEPN=	$(SLB)$/sal.lib
199cdf0e10cSrcweir
200cdf0e10cSrcweir.ENDIF # t_cipher
201cdf0e10cSrcweir
202cdf0e10cSrcweir#
203cdf0e10cSrcweir# t_digest.
204cdf0e10cSrcweir#
205cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_digest"
206cdf0e10cSrcweir
207cdf0e10cSrcweirCFILES=		t_digest.c
208cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_digest.obj
209cdf0e10cSrcweir
210cdf0e10cSrcweirAPP2TARGET=	t_digest
211cdf0e10cSrcweirAPP2OBJS=	$(OBJFILES)
212cdf0e10cSrcweirAPP2STDLIBS=$(SALLIB)
213cdf0e10cSrcweirAPP2DEPN=	$(SLB)$/sal.lib
214cdf0e10cSrcweir
215cdf0e10cSrcweir.ENDIF # t_digest
216cdf0e10cSrcweir
217cdf0e10cSrcweir#
218cdf0e10cSrcweir# t_random.
219cdf0e10cSrcweir#
220cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_random"
221cdf0e10cSrcweir
222cdf0e10cSrcweirCFILES=		t_random.c
223cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_random.obj
224cdf0e10cSrcweir
225cdf0e10cSrcweirAPP3TARGET=	t_random
226cdf0e10cSrcweirAPP3OBJS=	$(OBJFILES)
227cdf0e10cSrcweirAPP3STDLIBS=$(SALLIB)
228cdf0e10cSrcweirAPP3DEPN=	$(SLB)$/sal.lib
229cdf0e10cSrcweir
230cdf0e10cSrcweir.ENDIF # t_random
231cdf0e10cSrcweir
232cdf0e10cSrcweir#
233cdf0e10cSrcweir# t_layer.
234cdf0e10cSrcweir#
235cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_layer"
236cdf0e10cSrcweir
237cdf0e10cSrcweirCFILES=		t_layer.c
238cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_layer.obj
239cdf0e10cSrcweir
240cdf0e10cSrcweirAPP4TARGET=	t_layer
241cdf0e10cSrcweirAPP4OBJS=	$(OBJFILES)
242cdf0e10cSrcweirAPP4STDLIBS=$(SALLIB)
243cdf0e10cSrcweirAPP4DEPN=	$(SLB)$/sal.lib
244cdf0e10cSrcweir
245cdf0e10cSrcweir.ENDIF # t_layer
246cdf0e10cSrcweir
247cdf0e10cSrcweir#
248cdf0e10cSrcweir# t_tls.
249cdf0e10cSrcweir#
250cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_tls"
251cdf0e10cSrcweir
252cdf0e10cSrcweirCFILES=		t_tls.c
253cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_tls.obj
254cdf0e10cSrcweir
255cdf0e10cSrcweir.IF "$(SALTLSLIB)" == ""
256cdf0e10cSrcweir
257cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
258cdf0e10cSrcweirSALTLSLIB=		-lsaltls2
259cdf0e10cSrcweir.ENDIF # unx
260cdf0e10cSrcweir
261cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
262cdf0e10cSrcweirSALTLSLIB=		$(SALTLSLIB)
263cdf0e10cSrcweir.ENDIF # wnt
264cdf0e10cSrcweir
265cdf0e10cSrcweir.ENDIF # saltlslib
266cdf0e10cSrcweir
267cdf0e10cSrcweirAPP5TARGET=	t_tls
268cdf0e10cSrcweirAPP5OBJS=	$(OBJFILES)
269cdf0e10cSrcweirAPP5STDLIBS=$(SALTLSLIB) $(SALLIB)
270cdf0e10cSrcweirAPP5DEPN=	$(SLB)$/sal.lib
271cdf0e10cSrcweir
272cdf0e10cSrcweir.ENDIF # t_tls
273cdf0e10cSrcweir
274cdf0e10cSrcweir#
275cdf0e10cSrcweir# t_zip.
276cdf0e10cSrcweir#
277cdf0e10cSrcweir.IF "$(TESTAPP)" == "t_zip"
278cdf0e10cSrcweir
279cdf0e10cSrcweirCFILES=		t_zip.c
280cdf0e10cSrcweirOBJFILES=	$(OBJ)$/t_zip.obj
281cdf0e10cSrcweir
282cdf0e10cSrcweir.IF "$(SALZIPLIB)" == ""
283cdf0e10cSrcweir
284cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
285cdf0e10cSrcweirSALZIPLIB=	-lsalzip2
286cdf0e10cSrcweir.ENDIF # unx
287cdf0e10cSrcweir
288cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
289cdf0e10cSrcweirSALZIPLIB=	$(SALZIPLIB)
290cdf0e10cSrcweir.ENDIF # wnt
291cdf0e10cSrcweir
292cdf0e10cSrcweir.ENDIF # salziplib
293cdf0e10cSrcweir
294cdf0e10cSrcweirAPP6TARGET=	t_zip
295cdf0e10cSrcweirAPP6OBJS=	$(OBJFILES)
296cdf0e10cSrcweirAPP6STDLIBS=$(SALZIPLIB) $(SALLIB)
297cdf0e10cSrcweirAPP6DEPN=	$(SLB)$/sal.lib
298cdf0e10cSrcweir
299cdf0e10cSrcweir.ENDIF # t_zip
300cdf0e10cSrcweir
301cdf0e10cSrcweir#
302cdf0e10cSrcweir# testfile
303cdf0e10cSrcweir#
304cdf0e10cSrcweir.IF "$(TESTAPP)" == "testfile"
305cdf0e10cSrcweir
306cdf0e10cSrcweirCXXFILES=	testfile.cxx
307cdf0e10cSrcweirOBJFILES=	$(OBJ)$/testfile.obj
308cdf0e10cSrcweir
309cdf0e10cSrcweirAPP1TARGET=	testfile
310cdf0e10cSrcweirAPP1OBJS=	$(OBJFILES)
311cdf0e10cSrcweirAPP1STDLIBS=$(SALLIB)
312cdf0e10cSrcweirAPP1DEPN=	$(SLB)$/sal.lib
313cdf0e10cSrcweir
314cdf0e10cSrcweir.ENDIF # testfile
315cdf0e10cSrcweir
316cdf0e10cSrcweir#
317cdf0e10cSrcweir# testpipe
318cdf0e10cSrcweir#
319cdf0e10cSrcweir.IF "$(TESTAPP)" == "testpipe"
320cdf0e10cSrcweir
321cdf0e10cSrcweirCXXFILES=	testpipe.cxx
322cdf0e10cSrcweirOBJFILES=	$(OBJ)$/testpipe.obj
323cdf0e10cSrcweir
324cdf0e10cSrcweirAPP2TARGET= testpipe
325cdf0e10cSrcweirAPP2OBJS=   $(OBJFILES)
326cdf0e10cSrcweirAPP2STDLIBS=$(SALLIB)
327cdf0e10cSrcweirAPP2DEPN=	$(SLB)$/sal.lib
328cdf0e10cSrcweir
329cdf0e10cSrcweir.ENDIF # testpipe
330cdf0e10cSrcweir
331cdf0e10cSrcweir#
332cdf0e10cSrcweir# testpip2
333cdf0e10cSrcweir#
334cdf0e10cSrcweir.IF "$(TESTAPP)" == "testpip2"
335cdf0e10cSrcweir
336cdf0e10cSrcweirCXXFILES=	testpip2.cxx
337cdf0e10cSrcweirOBJFILES=	$(OBJ)$/testpip2.obj
338cdf0e10cSrcweir
339cdf0e10cSrcweirAPP3TARGET=	testpip2
340cdf0e10cSrcweirAPP3OBJS=	$(OBJFILES)
341cdf0e10cSrcweirAPP3STDLIBS=$(SALLIB)
342cdf0e10cSrcweirAPP3DEPN=	$(SLB)$/sal.lib
343cdf0e10cSrcweir
344cdf0e10cSrcweir.ENDIF # testpip2
345cdf0e10cSrcweir
346cdf0e10cSrcweir#
347cdf0e10cSrcweir# testproc
348cdf0e10cSrcweir#
349cdf0e10cSrcweir.IF "$(TESTAPP)" == "testproc"
350cdf0e10cSrcweir
351cdf0e10cSrcweirCXXFILES=	testproc.cxx
352cdf0e10cSrcweirOBJFILES=	$(OBJ)$/testproc.obj
353cdf0e10cSrcweir
354cdf0e10cSrcweirAPP4TARGET= testproc
355cdf0e10cSrcweirAPP4OBJS=	$(OBJFILES)
356cdf0e10cSrcweirAPP4STDLIBS=$(SALLIB)
357cdf0e10cSrcweirAPP4DEPN=	$(SLB)$/sal.lib
358cdf0e10cSrcweir
359cdf0e10cSrcweir.ENDIF # testproc
360cdf0e10cSrcweir
361cdf0e10cSrcweir#
362cdf0e10cSrcweir# tgetpwnam
363cdf0e10cSrcweir#
364cdf0e10cSrcweir.IF "$(TESTAPP)" == "tgetpwnam"
365cdf0e10cSrcweir.IF "$(OS)"=="SCO" || "$(OS)"=="NETBSD" || "$(OS)"=="FREEBSD"
366cdf0e10cSrcweir
367cdf0e10cSrcweirCXXFILES=	tgetpwnam.cxx
368cdf0e10cSrcweirOBJFILES=	$(OBJ)$/tgetpwnam.obj
369cdf0e10cSrcweir
370cdf0e10cSrcweirAPP5TARGET= tgetpwnam
371cdf0e10cSrcweirAPP5OBJS=	$(OBJFILES)
372cdf0e10cSrcweirAPP5STDLIBS=$(SALLIB)
373cdf0e10cSrcweirAPP5DEPN=	$(SLB)$/sal.lib
374cdf0e10cSrcweir
375cdf0e10cSrcweir.ENDIF # (sco | netbsd | freebsd)
376cdf0e10cSrcweir.ENDIF # tgetpwname
377cdf0e10cSrcweir
378cdf0e10cSrcweir# --- Targets ------------------------------------------------------
379cdf0e10cSrcweir
380cdf0e10cSrcweir.INCLUDE :  target.mk
381cdf0e10cSrcweir
382cdf0e10cSrcweir
383