merged tag ooo/DEV300_m102
[LibreOffice.git] / sal / workben / makefile.mk
blobc93d756ba132b924a1f9684ca7f73acc251369fb
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=..
30 PRJNAME=sal
31 TARGET=workben
32 LIBTARGET=NO
33 TARGETTYPE=CUI
34 #ENABLE_EXCEPTIONS=TRUE
35 NO_DEFAULT_STL=YES
37 #TESTAPP=test_osl_getVolInfo
38 #TESTAPP=test_osl_joinProcess
39 #TESTAPP=getlocaleinfotest
40 #TESTAPP=test_osl_joinProcess
41 #TESTAPP=getlocaleinfotest
42 #TESTAPP=salstattest
43 #TESTAPP=saldyntest
45 TESTAPP=t_readline
46 #TESTAPP=t_cipher
47 #TESTAPP=t_digest
48 #TESTAPP=t_random
49 #TESTAPP=t_layer
50 #TESTAPP=t_tls
51 #TESTAPP=t_zip
53 #TESTAPP=testfile
54 #TESTAPP=testpipe
55 #TESTAPP=testpip2
56 #TESTAPP=testproc
57 #TESTAPP=tgetpwnam
58 #TESTAPP=salstattest
60 # --- Settings -----------------------------------------------------
62 .INCLUDE : settings.mk
64 CFLAGS+= $(LFS_CFLAGS)
65 CXXFLAGS+= $(LFS_CFLAGS)
67 # --- Files --------------------------------------------------------
69 .IF "$(TESTAPP)" == "test_osl_getVolInfo"
71 SHL1OBJS=$(SLO)$/t_osl_getVolInfo.obj
72 SHL1TARGET=togvi
74 .IF "$(GUI)" == "WNT"
75 APP1STDLIBS=$(KERNEL32LIB)
76 SHL1STDLIBS=$(LB)$/isal.lib
77 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
78 .ENDIF
80 .IF "$(GUI)" == "UNX"
81 SHL1STDLIBS=$(LB)$/libsal.so
82 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
83 .ENDIF
85 SHL1IMPLIB=i$(SHL1TARGET)
86 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
87 DEF1NAME=$(SHL1TARGET)
88 DEF1EXPORTFILE=export.exp
89 .ENDIF
91 .IF "$(TESTAPP)" == "test_osl_joinProcess"
92 OBJFILES=$(OBJ)$/t_ojp_exe.obj
93 APP1TARGET=ojpx
94 APP1OBJS=$(OBJFILES)
96 .IF "$(GUI)" == "UNX"
97 APP1STDLIBS=$(LB)$/libsal.so
98 .ENDIF
100 SHL1OBJS=$(SLO)$/t_osl_joinProcess.obj
101 SHL1TARGET=tojp
103 .IF "$(GUI)" == "WNT"
104 APP1STDLIBS=$(KERNEL32LIB)
105 SHL1STDLIBS=$(LB)$/isal.lib
106 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
107 .ENDIF
109 .IF "$(GUI)" == "UNX"
110 SHL1STDLIBS=$(LB)$/libsal.so
111 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
112 .ENDIF
114 SHL1IMPLIB=i$(SHL1TARGET)
115 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
116 DEF1NAME=$(SHL1TARGET)
117 DEF1EXPORTFILE=export.exp
118 .ENDIF
120 .IF "$(TESTAPP)" == "getlocaleinfotest"
122 OBJFILES=$(OBJ)$/getlocaleinfotest.obj
124 APP1TARGET= getlitest
125 APP1OBJS=$(OBJFILES)
127 APP1STDLIBS=\
128 $(KERNEL32LIB)
130 APP1LIBS=\
131 $(LB)$/kernel9x.lib\
132 $(LB)$/isal.lib
134 APP1DEPN=$(LB)$/isal.lib
136 .ENDIF
138 .IF "$(TESTAPP)" == "salstattest"
140 CFLAGS+= -DUSE_SAL_STATIC
142 OBJFILES= $(OBJ)$/salstattest.obj
144 APP1TARGET= salstattest
145 APP1OBJS= $(OBJFILES)
146 APP1STDLIBS=\
147 $(LB)$/asal.lib\
148 $(SHELL32LIB)\
149 $(USER32LIB)\
150 $(COMDLG32LIB)\
151 $(ADVAPI32LIB)
153 APP1DEPN= $(LB)$/asal.lib
155 .ENDIF # salstattest
157 .IF "$(TESTAPP)" == "saldyntest"
159 OBJFILES= $(OBJ)$/saldyntest.obj
161 APP1TARGET= saldyntest
162 APP1OBJS= $(OBJFILES)
163 APP1STDLIBS=\
164 $(LB)$/isal.lib\
165 $(SHELL32LIB)\
166 $(USER32LIB)\
167 $(COMDLG32LIB)\
168 $(ADVAPI32LIB)
170 APP1DEPN= $(LB)$/isal.lib
172 .ENDIF # salstattest
175 # t_readline
177 .IF "$(TESTAPP)" == "t_readline"
179 CFILES= t_readline.c
180 OBJFILES= $(OBJ)$/t_readline.obj
182 APP1TARGET= t_readline
183 APP1OBJS= $(OBJFILES)
184 APP1STDLIBS=$(SALLIB)
185 APP1DEPN= $(SLB)$/sal.lib
187 APP1RPATH=UREBIN
189 .ENDIF # t_readline
192 # t_cipher
194 .IF "$(TESTAPP)" == "t_cipher"
196 CFILES= t_cipher.c
197 OBJFILES= $(OBJ)$/t_cipher.obj
199 APP1TARGET= t_cipher
200 APP1OBJS= $(OBJFILES)
201 APP1STDLIBS=$(SALLIB)
202 APP1DEPN= $(SLB)$/sal.lib
204 .ENDIF # t_cipher
207 # t_digest.
209 .IF "$(TESTAPP)" == "t_digest"
211 CFILES= t_digest.c
212 OBJFILES= $(OBJ)$/t_digest.obj
214 APP2TARGET= t_digest
215 APP2OBJS= $(OBJFILES)
216 APP2STDLIBS=$(SALLIB)
217 APP2DEPN= $(SLB)$/sal.lib
219 .ENDIF # t_digest
222 # t_random.
224 .IF "$(TESTAPP)" == "t_random"
226 CFILES= t_random.c
227 OBJFILES= $(OBJ)$/t_random.obj
229 APP3TARGET= t_random
230 APP3OBJS= $(OBJFILES)
231 APP3STDLIBS=$(SALLIB)
232 APP3DEPN= $(SLB)$/sal.lib
234 .ENDIF # t_random
237 # t_layer.
239 .IF "$(TESTAPP)" == "t_layer"
241 CFILES= t_layer.c
242 OBJFILES= $(OBJ)$/t_layer.obj
244 APP4TARGET= t_layer
245 APP4OBJS= $(OBJFILES)
246 APP4STDLIBS=$(SALLIB)
247 APP4DEPN= $(SLB)$/sal.lib
249 .ENDIF # t_layer
252 # t_tls.
254 .IF "$(TESTAPP)" == "t_tls"
256 CFILES= t_tls.c
257 OBJFILES= $(OBJ)$/t_tls.obj
259 .IF "$(SALTLSLIB)" == ""
261 .IF "$(GUI)" == "UNX"
262 SALTLSLIB= -lsaltls2
263 .ENDIF # unx
265 .IF "$(GUI)" == "WNT"
266 SALTLSLIB= $(SALTLSLIB)
267 .ENDIF # wnt
269 .ENDIF # saltlslib
271 APP5TARGET= t_tls
272 APP5OBJS= $(OBJFILES)
273 APP5STDLIBS=$(SALTLSLIB) $(SALLIB)
274 APP5DEPN= $(SLB)$/sal.lib
276 .ENDIF # t_tls
279 # t_zip.
281 .IF "$(TESTAPP)" == "t_zip"
283 CFILES= t_zip.c
284 OBJFILES= $(OBJ)$/t_zip.obj
286 .IF "$(SALZIPLIB)" == ""
288 .IF "$(GUI)" == "UNX"
289 SALZIPLIB= -lsalzip2
290 .ENDIF # unx
292 .IF "$(GUI)" == "WNT"
293 SALZIPLIB= $(SALZIPLIB)
294 .ENDIF # wnt
296 .ENDIF # salziplib
298 APP6TARGET= t_zip
299 APP6OBJS= $(OBJFILES)
300 APP6STDLIBS=$(SALZIPLIB) $(SALLIB)
301 APP6DEPN= $(SLB)$/sal.lib
303 .ENDIF # t_zip
306 # testfile
308 .IF "$(TESTAPP)" == "testfile"
310 CXXFILES= testfile.cxx
311 OBJFILES= $(OBJ)$/testfile.obj
313 APP1TARGET= testfile
314 APP1OBJS= $(OBJFILES)
315 APP1STDLIBS=$(SALLIB)
316 APP1DEPN= $(SLB)$/sal.lib
318 .ENDIF # testfile
321 # testpipe
323 .IF "$(TESTAPP)" == "testpipe"
325 CXXFILES= testpipe.cxx
326 OBJFILES= $(OBJ)$/testpipe.obj
328 APP2TARGET= testpipe
329 APP2OBJS= $(OBJFILES)
330 APP2STDLIBS=$(SALLIB)
331 APP2DEPN= $(SLB)$/sal.lib
333 .ENDIF # testpipe
336 # testpip2
338 .IF "$(TESTAPP)" == "testpip2"
340 CXXFILES= testpip2.cxx
341 OBJFILES= $(OBJ)$/testpip2.obj
343 APP3TARGET= testpip2
344 APP3OBJS= $(OBJFILES)
345 APP3STDLIBS=$(SALLIB)
346 APP3DEPN= $(SLB)$/sal.lib
348 .ENDIF # testpip2
351 # testproc
353 .IF "$(TESTAPP)" == "testproc"
355 CXXFILES= testproc.cxx
356 OBJFILES= $(OBJ)$/testproc.obj
358 APP4TARGET= testproc
359 APP4OBJS= $(OBJFILES)
360 APP4STDLIBS=$(SALLIB)
361 APP4DEPN= $(SLB)$/sal.lib
363 .ENDIF # testproc
366 # tgetpwnam
368 .IF "$(TESTAPP)" == "tgetpwnam"
369 .IF "$(OS)"=="SCO" || "$(OS)"=="NETBSD" || "$(OS)"=="FREEBSD"
371 CXXFILES= tgetpwnam.cxx
372 OBJFILES= $(OBJ)$/tgetpwnam.obj
374 APP5TARGET= tgetpwnam
375 APP5OBJS= $(OBJFILES)
376 APP5STDLIBS=$(SALLIB)
377 APP5DEPN= $(SLB)$/sal.lib
379 .ENDIF # (sco | netbsd | freebsd)
380 .ENDIF # tgetpwname
382 # --- Targets ------------------------------------------------------
384 .INCLUDE : target.mk