update dev300-m58
[ooovba.git] / sal / workben / makefile.mk
blob5f20dd07bd4af08bee7c0fe7b28385bb0e1003b1
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.16 $
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=sal
35 TARGET=workben
36 LIBTARGET=NO
37 TARGETTYPE=CUI
38 #ENABLE_EXCEPTIONS=TRUE
39 NO_DEFAULT_STL=YES
41 #TESTAPP=test_osl_getVolInfo
42 #TESTAPP=test_osl_joinProcess
43 #TESTAPP=getlocaleinfotest
44 #TESTAPP=test_osl_joinProcess
45 #TESTAPP=getlocaleinfotest
46 #TESTAPP=salstattest
47 #TESTAPP=saldyntest
49 TESTAPP=t_readline
50 #TESTAPP=t_cipher
51 #TESTAPP=t_digest
52 #TESTAPP=t_random
53 #TESTAPP=t_layer
54 #TESTAPP=t_tls
55 #TESTAPP=t_zip
57 #TESTAPP=testfile
58 #TESTAPP=testpipe
59 #TESTAPP=testpip2
60 #TESTAPP=testproc
61 #TESTAPP=tgetpwnam
62 #TESTAPP=salstattest
64 # --- Settings -----------------------------------------------------
66 .INCLUDE : settings.mk
68 CFLAGS+= $(LFS_CFLAGS)
69 CXXFLAGS+= $(LFS_CFLAGS)
71 # --- Files --------------------------------------------------------
73 .IF "$(TESTAPP)" == "test_osl_getVolInfo"
75 SHL1OBJS=$(SLO)$/t_osl_getVolInfo.obj
76 SHL1TARGET=togvi
78 .IF "$(GUI)" == "WNT"
79 APP1STDLIBS=$(KERNEL32LIB)
80 SHL1STDLIBS=$(LB)$/isal.lib
81 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
82 .ENDIF
84 .IF "$(GUI)" == "UNX"
85 SHL1STDLIBS=$(LB)$/libsal.so
86 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
87 .ENDIF
89 SHL1IMPLIB=i$(SHL1TARGET)
90 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
91 DEF1NAME=$(SHL1TARGET)
92 DEF1EXPORTFILE=export.exp
93 .ENDIF
95 .IF "$(TESTAPP)" == "test_osl_joinProcess"
96 OBJFILES=$(OBJ)$/t_ojp_exe.obj
97 APP1TARGET=ojpx
98 APP1OBJS=$(OBJFILES)
100 .IF "$(GUI)" == "UNX"
101 APP1STDLIBS=$(LB)$/libsal.so
102 .ENDIF
104 SHL1OBJS=$(SLO)$/t_osl_joinProcess.obj
105 SHL1TARGET=tojp
107 .IF "$(GUI)" == "WNT"
108 APP1STDLIBS=$(KERNEL32LIB)
109 SHL1STDLIBS=$(LB)$/isal.lib
110 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
111 .ENDIF
113 .IF "$(GUI)" == "UNX"
114 SHL1STDLIBS=$(LB)$/libsal.so
115 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
116 .ENDIF
118 SHL1IMPLIB=i$(SHL1TARGET)
119 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
120 DEF1NAME=$(SHL1TARGET)
121 DEF1EXPORTFILE=export.exp
122 .ENDIF
124 .IF "$(TESTAPP)" == "getlocaleinfotest"
126 OBJFILES=$(OBJ)$/getlocaleinfotest.obj
128 APP1TARGET= getlitest
129 APP1OBJS=$(OBJFILES)
131 APP1STDLIBS=\
132 $(KERNEL32LIB)
134 APP1LIBS=\
135 $(LB)$/kernel9x.lib\
136 $(LB)$/isal.lib
138 APP1DEPN=$(LB)$/isal.lib
140 .ENDIF
142 .IF "$(TESTAPP)" == "salstattest"
144 CFLAGS+= -DUSE_SAL_STATIC
146 OBJFILES= $(OBJ)$/salstattest.obj
148 APP1TARGET= salstattest
149 APP1OBJS= $(OBJFILES)
150 APP1STDLIBS=\
151 $(LB)$/asal.lib\
152 $(SHELL32LIB)\
153 $(USER32LIB)\
154 $(COMDLG32LIB)\
155 $(ADVAPI32LIB)
157 APP1DEPN= $(LB)$/asal.lib
159 .ENDIF # salstattest
161 .IF "$(TESTAPP)" == "saldyntest"
163 OBJFILES= $(OBJ)$/saldyntest.obj
165 APP1TARGET= saldyntest
166 APP1OBJS= $(OBJFILES)
167 APP1STDLIBS=\
168 $(LB)$/isal.lib\
169 $(SHELL32LIB)\
170 $(USER32LIB)\
171 $(COMDLG32LIB)\
172 $(ADVAPI32LIB)
174 APP1DEPN= $(LB)$/isal.lib
176 .ENDIF # salstattest
179 # t_readline
181 .IF "$(TESTAPP)" == "t_readline"
183 CFILES= t_readline.c
184 OBJFILES= $(OBJ)$/t_readline.obj
186 APP1TARGET= t_readline
187 APP1OBJS= $(OBJFILES)
188 APP1STDLIBS=$(SALLIB)
189 APP1DEPN= $(SLB)$/sal.lib
191 APP1RPATH=UREBIN
193 .ENDIF # t_readline
196 # t_cipher
198 .IF "$(TESTAPP)" == "t_cipher"
200 CFILES= t_cipher.c
201 OBJFILES= $(OBJ)$/t_cipher.obj
203 APP1TARGET= t_cipher
204 APP1OBJS= $(OBJFILES)
205 APP1STDLIBS=$(SALLIB)
206 APP1DEPN= $(SLB)$/sal.lib
208 .ENDIF # t_cipher
211 # t_digest.
213 .IF "$(TESTAPP)" == "t_digest"
215 CFILES= t_digest.c
216 OBJFILES= $(OBJ)$/t_digest.obj
218 APP2TARGET= t_digest
219 APP2OBJS= $(OBJFILES)
220 APP2STDLIBS=$(SALLIB)
221 APP2DEPN= $(SLB)$/sal.lib
223 .ENDIF # t_digest
226 # t_random.
228 .IF "$(TESTAPP)" == "t_random"
230 CFILES= t_random.c
231 OBJFILES= $(OBJ)$/t_random.obj
233 APP3TARGET= t_random
234 APP3OBJS= $(OBJFILES)
235 APP3STDLIBS=$(SALLIB)
236 APP3DEPN= $(SLB)$/sal.lib
238 .ENDIF # t_random
241 # t_layer.
243 .IF "$(TESTAPP)" == "t_layer"
245 CFILES= t_layer.c
246 OBJFILES= $(OBJ)$/t_layer.obj
248 APP4TARGET= t_layer
249 APP4OBJS= $(OBJFILES)
250 APP4STDLIBS=$(SALLIB)
251 APP4DEPN= $(SLB)$/sal.lib
253 .ENDIF # t_layer
256 # t_tls.
258 .IF "$(TESTAPP)" == "t_tls"
260 CFILES= t_tls.c
261 OBJFILES= $(OBJ)$/t_tls.obj
263 .IF "$(SALTLSLIB)" == ""
265 .IF "$(GUI)" == "UNX"
266 SALTLSLIB= -lsaltls2
267 .ENDIF # unx
269 .IF "$(GUI)" == "WNT"
270 SALTLSLIB= $(SALTLSLIB)
271 .ENDIF # wnt
273 .ENDIF # saltlslib
275 APP5TARGET= t_tls
276 APP5OBJS= $(OBJFILES)
277 APP5STDLIBS=$(SALTLSLIB) $(SALLIB)
278 APP5DEPN= $(SLB)$/sal.lib
280 .ENDIF # t_tls
283 # t_zip.
285 .IF "$(TESTAPP)" == "t_zip"
287 CFILES= t_zip.c
288 OBJFILES= $(OBJ)$/t_zip.obj
290 .IF "$(SALZIPLIB)" == ""
292 .IF "$(GUI)" == "UNX"
293 SALZIPLIB= -lsalzip2
294 .ENDIF # unx
296 .IF "$(GUI)" == "WNT"
297 SALZIPLIB= $(SALZIPLIB)
298 .ENDIF # wnt
300 .ENDIF # salziplib
302 APP6TARGET= t_zip
303 APP6OBJS= $(OBJFILES)
304 APP6STDLIBS=$(SALZIPLIB) $(SALLIB)
305 APP6DEPN= $(SLB)$/sal.lib
307 .ENDIF # t_zip
310 # testfile
312 .IF "$(TESTAPP)" == "testfile"
314 CXXFILES= testfile.cxx
315 OBJFILES= $(OBJ)$/testfile.obj
317 APP1TARGET= testfile
318 APP1OBJS= $(OBJFILES)
319 APP1STDLIBS=$(SALLIB)
320 APP1DEPN= $(SLB)$/sal.lib
322 .ENDIF # testfile
325 # testpipe
327 .IF "$(TESTAPP)" == "testpipe"
329 CXXFILES= testpipe.cxx
330 OBJFILES= $(OBJ)$/testpipe.obj
332 APP2TARGET= testpipe
333 APP2OBJS= $(OBJFILES)
334 APP2STDLIBS=$(SALLIB)
335 APP2DEPN= $(SLB)$/sal.lib
337 .ENDIF # testpipe
340 # testpip2
342 .IF "$(TESTAPP)" == "testpip2"
344 CXXFILES= testpip2.cxx
345 OBJFILES= $(OBJ)$/testpip2.obj
347 APP3TARGET= testpip2
348 APP3OBJS= $(OBJFILES)
349 APP3STDLIBS=$(SALLIB)
350 APP3DEPN= $(SLB)$/sal.lib
352 .ENDIF # testpip2
355 # testproc
357 .IF "$(TESTAPP)" == "testproc"
359 CXXFILES= testproc.cxx
360 OBJFILES= $(OBJ)$/testproc.obj
362 APP4TARGET= testproc
363 APP4OBJS= $(OBJFILES)
364 APP4STDLIBS=$(SALLIB)
365 APP4DEPN= $(SLB)$/sal.lib
367 .ENDIF # testproc
370 # tgetpwnam
372 .IF "$(TESTAPP)" == "tgetpwnam"
373 .IF "$(OS)"=="SCO" || "$(OS)"=="NETBSD" || "$(OS)"=="FREEBSD"
375 CXXFILES= tgetpwnam.cxx
376 OBJFILES= $(OBJ)$/tgetpwnam.obj
378 APP5TARGET= tgetpwnam
379 APP5OBJS= $(OBJFILES)
380 APP5STDLIBS=$(SALLIB)
381 APP5DEPN= $(SLB)$/sal.lib
383 .ENDIF # (sco | netbsd | freebsd)
384 .ENDIF # tgetpwname
386 # --- Targets ------------------------------------------------------
388 .INCLUDE : target.mk