1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
38 ENABLE_EXCEPTIONS
=TRUE
40 TESTAPP
=test_osl_getVolInfo
41 #TESTAPP=test_osl_joinProcess
42 #TESTAPP=getlocaleinfotest
43 #TESTAPP=test_osl_joinProcess
44 #TESTAPP=getlocaleinfotest
62 # --- Settings -----------------------------------------------------
64 .INCLUDE
: settings.mk
66 CFLAGS
+= $(LFS_CFLAGS
)
67 CXXFLAGS
+= $(LFS_CFLAGS
)
69 # --- Files --------------------------------------------------------
71 .IF
"$(TESTAPP)" == "test_osl_getVolInfo"
73 SHL1OBJS
=$(SLO
)$/t_osl_getVolInfo.obj
77 APP1STDLIBS
=$(KERNEL32LIB
)
78 SHL1STDLIBS
=$(LB
)$/isal.lib
79 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
83 SHL1STDLIBS
=$(LB
)$/libsal.so
84 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
87 SHL1IMPLIB
=i
$(SHL1TARGET
)
88 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
89 DEF1NAME
=$(SHL1TARGET
)
90 DEF1EXPORTFILE
=export.exp
93 .IF
"$(TESTAPP)" == "test_osl_joinProcess"
94 OBJFILES
=$(OBJ
)$/t_ojp_exe.obj
99 APP1STDLIBS
=$(LB
)$/libsal.so
102 SHL1OBJS
=$(SLO
)$/t_osl_joinProcess.obj
105 .IF
"$(GUI)" == "WNT"
106 APP1STDLIBS
=$(KERNEL32LIB
)
107 SHL1STDLIBS
=$(LB
)$/isal.lib
108 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
111 .IF
"$(GUI)" == "UNX"
112 SHL1STDLIBS
=$(LB
)$/libsal.so
113 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
116 SHL1IMPLIB
=i
$(SHL1TARGET
)
117 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
118 DEF1NAME
=$(SHL1TARGET
)
119 DEF1EXPORTFILE
=export.exp
122 .IF
"$(TESTAPP)" == "getlocaleinfotest"
124 OBJFILES
=$(OBJ
)$/getlocaleinfotest.obj
126 APP1TARGET
= getlitest
136 APP1DEPN
=$(LB
)$/isal.lib
140 .IF
"$(TESTAPP)" == "salstattest"
142 CFLAGS
+= -DUSE_SAL_STATIC
144 OBJFILES
= $(OBJ
)$/salstattest.obj
146 APP1TARGET
= salstattest
147 APP1OBJS
= $(OBJFILES
)
155 APP1DEPN
= $(LB
)$/asal.lib
159 .IF
"$(TESTAPP)" == "saldyntest"
161 OBJFILES
= $(OBJ
)$/saldyntest.obj
163 APP1TARGET
= saldyntest
164 APP1OBJS
= $(OBJFILES
)
172 APP1DEPN
= $(LB
)$/isal.lib
179 .IF
"$(TESTAPP)" == "t_cipher"
182 OBJFILES
= $(OBJ
)$/t_cipher.obj
185 APP1OBJS
= $(OBJFILES
)
186 APP1STDLIBS
=$(SALLIB
)
187 APP1DEPN
= $(SLB
)$/sal.lib
194 .IF
"$(TESTAPP)" == "t_digest"
197 OBJFILES
= $(OBJ
)$/t_digest.obj
200 APP2OBJS
= $(OBJFILES
)
201 APP2STDLIBS
=$(SALLIB
)
202 APP2DEPN
= $(SLB
)$/sal.lib
209 .IF
"$(TESTAPP)" == "t_random"
212 OBJFILES
= $(OBJ
)$/t_random.obj
215 APP3OBJS
= $(OBJFILES
)
216 APP3STDLIBS
=$(SALLIB
)
217 APP3DEPN
= $(SLB
)$/sal.lib
224 .IF
"$(TESTAPP)" == "t_layer"
227 OBJFILES
= $(OBJ
)$/t_layer.obj
230 APP4OBJS
= $(OBJFILES
)
231 APP4STDLIBS
=$(SALLIB
)
232 APP4DEPN
= $(SLB
)$/sal.lib
239 .IF
"$(TESTAPP)" == "t_tls"
242 OBJFILES
= $(OBJ
)$/t_tls.obj
244 .IF
"$(SALTLSLIB)" == ""
246 .IF
"$(GUI)" == "UNX"
250 .IF
"$(GUI)" == "WNT"
251 SALTLSLIB
= $(SALTLSLIB
)
257 APP5OBJS
= $(OBJFILES
)
258 APP5STDLIBS
=$(SALTLSLIB
) $(SALLIB
)
259 APP5DEPN
= $(SLB
)$/sal.lib
266 .IF
"$(TESTAPP)" == "t_zip"
269 OBJFILES
= $(OBJ
)$/t_zip.obj
271 .IF
"$(SALZIPLIB)" == ""
273 .IF
"$(GUI)" == "UNX"
277 .IF
"$(GUI)" == "WNT"
278 SALZIPLIB
= $(SALZIPLIB
)
284 APP6OBJS
= $(OBJFILES
)
285 APP6STDLIBS
=$(SALZIPLIB
) $(SALLIB
)
286 APP6DEPN
= $(SLB
)$/sal.lib
293 .IF
"$(TESTAPP)" == "testfile"
295 CXXFILES
= testfile.
cxx
296 OBJFILES
= $(OBJ
)$/testfile.obj
299 APP1OBJS
= $(OBJFILES
)
300 APP1STDLIBS
=$(SALLIB
)
301 APP1DEPN
= $(SLB
)$/sal.lib
308 .IF
"$(TESTAPP)" == "testpipe"
310 CXXFILES
= testpipe.
cxx
311 OBJFILES
= $(OBJ
)$/testpipe.obj
314 APP2OBJS
= $(OBJFILES
)
315 APP2STDLIBS
=$(SALLIB
)
316 APP2DEPN
= $(SLB
)$/sal.lib
323 .IF
"$(TESTAPP)" == "testpip2"
325 CXXFILES
= testpip2.
cxx
326 OBJFILES
= $(OBJ
)$/testpip2.obj
329 APP3OBJS
= $(OBJFILES
)
330 APP3STDLIBS
=$(SALLIB
)
331 APP3DEPN
= $(SLB
)$/sal.lib
338 .IF
"$(TESTAPP)" == "testproc"
340 CXXFILES
= testproc.
cxx
341 OBJFILES
= $(OBJ
)$/testproc.obj
344 APP4OBJS
= $(OBJFILES
)
345 APP4STDLIBS
=$(SALLIB
)
346 APP4DEPN
= $(SLB
)$/sal.lib
353 .IF
"$(TESTAPP)" == "tgetpwnam"
354 .IF
"$(OS)"=="SCO" ||
"$(OS)"=="NETBSD" ||
"$(OS)"=="FREEBSD"
356 CXXFILES
= tgetpwnam.
cxx
357 OBJFILES
= $(OBJ
)$/tgetpwnam.obj
359 APP5TARGET
= tgetpwnam
360 APP5OBJS
= $(OBJFILES
)
361 APP5STDLIBS
=$(SALLIB
)
362 APP5DEPN
= $(SLB
)$/sal.lib
364 .ENDIF
# (sco | netbsd | freebsd)
367 # --- Targets ------------------------------------------------------