1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
34 #ENABLE_EXCEPTIONS=TRUE
37 #TESTAPP=test_osl_getVolInfo
38 #TESTAPP=test_osl_joinProcess
39 #TESTAPP=getlocaleinfotest
40 #TESTAPP=test_osl_joinProcess
41 #TESTAPP=getlocaleinfotest
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
75 APP1STDLIBS
=$(KERNEL32LIB
)
76 SHL1STDLIBS
=$(LB
)$/isal.lib
77 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
81 SHL1STDLIBS
=$(LB
)$/libsal.so
82 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
85 SHL1IMPLIB
=i
$(SHL1TARGET
)
86 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
87 DEF1NAME
=$(SHL1TARGET
)
88 DEF1EXPORTFILE
=export.exp
91 .IF
"$(TESTAPP)" == "test_osl_joinProcess"
92 OBJFILES
=$(OBJ
)$/t_ojp_exe.obj
97 APP1STDLIBS
=$(LB
)$/libsal.so
100 SHL1OBJS
=$(SLO
)$/t_osl_joinProcess.obj
103 .IF
"$(GUI)" == "WNT"
104 APP1STDLIBS
=$(KERNEL32LIB
)
105 SHL1STDLIBS
=$(LB
)$/isal.lib
106 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
109 .IF
"$(GUI)" == "UNX"
110 SHL1STDLIBS
=$(LB
)$/libsal.so
111 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
114 SHL1IMPLIB
=i
$(SHL1TARGET
)
115 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
116 DEF1NAME
=$(SHL1TARGET
)
117 DEF1EXPORTFILE
=export.exp
120 .IF
"$(TESTAPP)" == "getlocaleinfotest"
122 OBJFILES
=$(OBJ
)$/getlocaleinfotest.obj
124 APP1TARGET
= getlitest
134 APP1DEPN
=$(LB
)$/isal.lib
138 .IF
"$(TESTAPP)" == "salstattest"
140 CFLAGS
+= -DUSE_SAL_STATIC
142 OBJFILES
= $(OBJ
)$/salstattest.obj
144 APP1TARGET
= salstattest
145 APP1OBJS
= $(OBJFILES
)
153 APP1DEPN
= $(LB
)$/asal.lib
157 .IF
"$(TESTAPP)" == "saldyntest"
159 OBJFILES
= $(OBJ
)$/saldyntest.obj
161 APP1TARGET
= saldyntest
162 APP1OBJS
= $(OBJFILES
)
170 APP1DEPN
= $(LB
)$/isal.lib
177 .IF
"$(TESTAPP)" == "t_readline"
180 OBJFILES
= $(OBJ
)$/t_readline.obj
182 APP1TARGET
= t_readline
183 APP1OBJS
= $(OBJFILES
)
184 APP1STDLIBS
=$(SALLIB
)
185 APP1DEPN
= $(SLB
)$/sal.lib
194 .IF
"$(TESTAPP)" == "t_cipher"
197 OBJFILES
= $(OBJ
)$/t_cipher.obj
200 APP1OBJS
= $(OBJFILES
)
201 APP1STDLIBS
=$(SALLIB
)
202 APP1DEPN
= $(SLB
)$/sal.lib
209 .IF
"$(TESTAPP)" == "t_digest"
212 OBJFILES
= $(OBJ
)$/t_digest.obj
215 APP2OBJS
= $(OBJFILES
)
216 APP2STDLIBS
=$(SALLIB
)
217 APP2DEPN
= $(SLB
)$/sal.lib
224 .IF
"$(TESTAPP)" == "t_random"
227 OBJFILES
= $(OBJ
)$/t_random.obj
230 APP3OBJS
= $(OBJFILES
)
231 APP3STDLIBS
=$(SALLIB
)
232 APP3DEPN
= $(SLB
)$/sal.lib
239 .IF
"$(TESTAPP)" == "t_layer"
242 OBJFILES
= $(OBJ
)$/t_layer.obj
245 APP4OBJS
= $(OBJFILES
)
246 APP4STDLIBS
=$(SALLIB
)
247 APP4DEPN
= $(SLB
)$/sal.lib
254 .IF
"$(TESTAPP)" == "t_tls"
257 OBJFILES
= $(OBJ
)$/t_tls.obj
259 .IF
"$(SALTLSLIB)" == ""
261 .IF
"$(GUI)" == "UNX"
265 .IF
"$(GUI)" == "WNT"
266 SALTLSLIB
= $(SALTLSLIB
)
272 APP5OBJS
= $(OBJFILES
)
273 APP5STDLIBS
=$(SALTLSLIB
) $(SALLIB
)
274 APP5DEPN
= $(SLB
)$/sal.lib
281 .IF
"$(TESTAPP)" == "t_zip"
284 OBJFILES
= $(OBJ
)$/t_zip.obj
286 .IF
"$(SALZIPLIB)" == ""
288 .IF
"$(GUI)" == "UNX"
292 .IF
"$(GUI)" == "WNT"
293 SALZIPLIB
= $(SALZIPLIB
)
299 APP6OBJS
= $(OBJFILES
)
300 APP6STDLIBS
=$(SALZIPLIB
) $(SALLIB
)
301 APP6DEPN
= $(SLB
)$/sal.lib
308 .IF
"$(TESTAPP)" == "testfile"
310 CXXFILES
= testfile.
cxx
311 OBJFILES
= $(OBJ
)$/testfile.obj
314 APP1OBJS
= $(OBJFILES
)
315 APP1STDLIBS
=$(SALLIB
)
316 APP1DEPN
= $(SLB
)$/sal.lib
323 .IF
"$(TESTAPP)" == "testpipe"
325 CXXFILES
= testpipe.
cxx
326 OBJFILES
= $(OBJ
)$/testpipe.obj
329 APP2OBJS
= $(OBJFILES
)
330 APP2STDLIBS
=$(SALLIB
)
331 APP2DEPN
= $(SLB
)$/sal.lib
338 .IF
"$(TESTAPP)" == "testpip2"
340 CXXFILES
= testpip2.
cxx
341 OBJFILES
= $(OBJ
)$/testpip2.obj
344 APP3OBJS
= $(OBJFILES
)
345 APP3STDLIBS
=$(SALLIB
)
346 APP3DEPN
= $(SLB
)$/sal.lib
353 .IF
"$(TESTAPP)" == "testproc"
355 CXXFILES
= testproc.
cxx
356 OBJFILES
= $(OBJ
)$/testproc.obj
359 APP4OBJS
= $(OBJFILES
)
360 APP4STDLIBS
=$(SALLIB
)
361 APP4DEPN
= $(SLB
)$/sal.lib
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)
382 # --- Targets ------------------------------------------------------