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
41 #TESTAPP=test_osl_getVolInfo
42 #TESTAPP=test_osl_joinProcess
43 #TESTAPP=getlocaleinfotest
44 #TESTAPP=test_osl_joinProcess
45 #TESTAPP=getlocaleinfotest
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
79 APP1STDLIBS
=$(KERNEL32LIB
)
80 SHL1STDLIBS
=$(LB
)$/isal.lib
81 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
85 SHL1STDLIBS
=$(LB
)$/libsal.so
86 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
89 SHL1IMPLIB
=i
$(SHL1TARGET
)
90 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
91 DEF1NAME
=$(SHL1TARGET
)
92 DEF1EXPORTFILE
=export.exp
95 .IF
"$(TESTAPP)" == "test_osl_joinProcess"
96 OBJFILES
=$(OBJ
)$/t_ojp_exe.obj
100 .IF
"$(GUI)" == "UNX"
101 APP1STDLIBS
=$(LB
)$/libsal.so
104 SHL1OBJS
=$(SLO
)$/t_osl_joinProcess.obj
107 .IF
"$(GUI)" == "WNT"
108 APP1STDLIBS
=$(KERNEL32LIB
)
109 SHL1STDLIBS
=$(LB
)$/isal.lib
110 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/cppunit.lib
113 .IF
"$(GUI)" == "UNX"
114 SHL1STDLIBS
=$(LB
)$/libsal.so
115 SHL1STDLIBS
+=$(SOLARLIBDIR
)$/libcppunit
$(DLLPOSTFIX
).a
118 SHL1IMPLIB
=i
$(SHL1TARGET
)
119 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
120 DEF1NAME
=$(SHL1TARGET
)
121 DEF1EXPORTFILE
=export.exp
124 .IF
"$(TESTAPP)" == "getlocaleinfotest"
126 OBJFILES
=$(OBJ
)$/getlocaleinfotest.obj
128 APP1TARGET
= getlitest
138 APP1DEPN
=$(LB
)$/isal.lib
142 .IF
"$(TESTAPP)" == "salstattest"
144 CFLAGS
+= -DUSE_SAL_STATIC
146 OBJFILES
= $(OBJ
)$/salstattest.obj
148 APP1TARGET
= salstattest
149 APP1OBJS
= $(OBJFILES
)
157 APP1DEPN
= $(LB
)$/asal.lib
161 .IF
"$(TESTAPP)" == "saldyntest"
163 OBJFILES
= $(OBJ
)$/saldyntest.obj
165 APP1TARGET
= saldyntest
166 APP1OBJS
= $(OBJFILES
)
174 APP1DEPN
= $(LB
)$/isal.lib
181 .IF
"$(TESTAPP)" == "t_readline"
184 OBJFILES
= $(OBJ
)$/t_readline.obj
186 APP1TARGET
= t_readline
187 APP1OBJS
= $(OBJFILES
)
188 APP1STDLIBS
=$(SALLIB
)
189 APP1DEPN
= $(SLB
)$/sal.lib
198 .IF
"$(TESTAPP)" == "t_cipher"
201 OBJFILES
= $(OBJ
)$/t_cipher.obj
204 APP1OBJS
= $(OBJFILES
)
205 APP1STDLIBS
=$(SALLIB
)
206 APP1DEPN
= $(SLB
)$/sal.lib
213 .IF
"$(TESTAPP)" == "t_digest"
216 OBJFILES
= $(OBJ
)$/t_digest.obj
219 APP2OBJS
= $(OBJFILES
)
220 APP2STDLIBS
=$(SALLIB
)
221 APP2DEPN
= $(SLB
)$/sal.lib
228 .IF
"$(TESTAPP)" == "t_random"
231 OBJFILES
= $(OBJ
)$/t_random.obj
234 APP3OBJS
= $(OBJFILES
)
235 APP3STDLIBS
=$(SALLIB
)
236 APP3DEPN
= $(SLB
)$/sal.lib
243 .IF
"$(TESTAPP)" == "t_layer"
246 OBJFILES
= $(OBJ
)$/t_layer.obj
249 APP4OBJS
= $(OBJFILES
)
250 APP4STDLIBS
=$(SALLIB
)
251 APP4DEPN
= $(SLB
)$/sal.lib
258 .IF
"$(TESTAPP)" == "t_tls"
261 OBJFILES
= $(OBJ
)$/t_tls.obj
263 .IF
"$(SALTLSLIB)" == ""
265 .IF
"$(GUI)" == "UNX"
269 .IF
"$(GUI)" == "WNT"
270 SALTLSLIB
= $(SALTLSLIB
)
276 APP5OBJS
= $(OBJFILES
)
277 APP5STDLIBS
=$(SALTLSLIB
) $(SALLIB
)
278 APP5DEPN
= $(SLB
)$/sal.lib
285 .IF
"$(TESTAPP)" == "t_zip"
288 OBJFILES
= $(OBJ
)$/t_zip.obj
290 .IF
"$(SALZIPLIB)" == ""
292 .IF
"$(GUI)" == "UNX"
296 .IF
"$(GUI)" == "WNT"
297 SALZIPLIB
= $(SALZIPLIB
)
303 APP6OBJS
= $(OBJFILES
)
304 APP6STDLIBS
=$(SALZIPLIB
) $(SALLIB
)
305 APP6DEPN
= $(SLB
)$/sal.lib
312 .IF
"$(TESTAPP)" == "testfile"
314 CXXFILES
= testfile.
cxx
315 OBJFILES
= $(OBJ
)$/testfile.obj
318 APP1OBJS
= $(OBJFILES
)
319 APP1STDLIBS
=$(SALLIB
)
320 APP1DEPN
= $(SLB
)$/sal.lib
327 .IF
"$(TESTAPP)" == "testpipe"
329 CXXFILES
= testpipe.
cxx
330 OBJFILES
= $(OBJ
)$/testpipe.obj
333 APP2OBJS
= $(OBJFILES
)
334 APP2STDLIBS
=$(SALLIB
)
335 APP2DEPN
= $(SLB
)$/sal.lib
342 .IF
"$(TESTAPP)" == "testpip2"
344 CXXFILES
= testpip2.
cxx
345 OBJFILES
= $(OBJ
)$/testpip2.obj
348 APP3OBJS
= $(OBJFILES
)
349 APP3STDLIBS
=$(SALLIB
)
350 APP3DEPN
= $(SLB
)$/sal.lib
357 .IF
"$(TESTAPP)" == "testproc"
359 CXXFILES
= testproc.
cxx
360 OBJFILES
= $(OBJ
)$/testproc.obj
363 APP4OBJS
= $(OBJFILES
)
364 APP4STDLIBS
=$(SALLIB
)
365 APP4DEPN
= $(SLB
)$/sal.lib
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)
386 # --- Targets ------------------------------------------------------