Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / sal / workben / makefile.mk
blobb7141a73d9db1a8a962cf0c2906baf0836c1bbda
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 PRJ=..
21 PRJNAME=sal
22 TARGET=workben
23 LIBTARGET=NO
24 TARGETTYPE=CUI
25 NO_DEFAULT_STL=YES
28 # --- Settings -----------------------------------------------------
30 .INCLUDE : settings.mk
32 CFLAGS+=$(LFS_CFLAGS)
33 CXXFLAGS+=$(LFS_CFLAGS)
35 # --- Files --------------------------------------------------------
38 # t_readline
40 OBJFILES+=\
41 $(OBJ)$/t_readline.obj
43 APP1TARGET=t_readline
44 APP1OBJS=$(OBJ)$/t_readline.obj
45 APP1STDLIBS=$(SALLIB)
46 APP1DEPN=$(SLB)$/sal.lib
47 APP1RPATH=UREBIN
50 # testfile
52 OBJFILES+=\
53 $(OBJ)$/testfile.obj
55 APP1TARGET=testfile
56 APP1OBJS=$(OBJ)$/testfile.obj
57 APP1STDLIBS=$(SALLIB)
58 APP1DEPN=$(SLB)$/sal.lib
61 # testpipe
63 OBJFILES+=\
64 $(OBJ)$/testpipe.obj
66 APP2TARGET=testpipe
67 APP2OBJS=$(OBJ)$/testpipe.obj
68 APP2STDLIBS=$(SALLIB)
69 APP2DEPN=$(SLB)$/sal.lib
72 # testpip2
74 OBJFILES+=\
75 $(OBJ)$/testpip2.obj
77 APP3TARGET=testpip2
78 APP3OBJS=$(OBJ)$/testpip2.obj
79 APP3STDLIBS=$(SALLIB)
80 APP3DEPN=$(SLB)$/sal.lib
83 # testproc
85 OBJFILES+=\
86 $(OBJ)$/testproc.obj
88 APP4TARGET=testproc
89 APP4OBJS=$(OBJ)$/testproc.obj
90 APP4STDLIBS=$(SALLIB)
91 APP4DEPN=$(SLB)$/sal.lib
94 # measure_oustrings
96 OBJFILES+=\
97 $(OBJ)$/measure_oustrings.obj
99 .IF "$(ENABLE_VALGRIND)" == "TRUE"
100 CFLAGSCXX+=-DHAVE_VALGRIND_HEADERS
101 .ENDIF
103 APP6TARGET=measure_oustrings
104 APP6OBJS=$(OBJ)$/measure_oustrings.obj
105 APP6STDLIBS=$(SALLIB)
106 APP6DEPN=$(SLB)$/sal.lib
109 # t_random.
111 OBJFILES+=\
112 $(OBJ)$/t_random.obj
114 APP7TARGET=t_random
115 APP7OBJS=$(OBJ)$/t_random.obj
116 APP7STDLIBS=$(SALLIB)
117 APP7DEPN=$(SLB)$/sal.lib
120 # t_cipher
122 OBJFILES+=\
123 $(OBJ)$/t_cipher.obj
125 APP8TARGET=t_cipher
126 APP8OBJS=$(OBJ)$/t_cipher.obj
127 APP8STDLIBS=$(SALLIB)
128 APP8DEPN=$(SLB)$/sal.lib
131 # t_digest.
133 OBJFILES+=\
134 $(OBJ)$/t_digest.obj
136 APP9TARGET=t_digest
137 APP9OBJS=$(OBJ)$/t_digest.obj
138 APP9STDLIBS=$(SALLIB)
139 APP9DEPN=$(SLB)$/sal.lib
142 # getlitest
144 .IF "$(TESTAPP)" == "getlocaleinfotest"
145 OBJFILES+=\
146 $(OBJ)$/getlocaleinfotest.obj
148 APP10TARGET=getlitest
149 APP10OBJS=$(OBJ)$/getlocaleinfotest.obj
151 APP10STDLIBS=\
152 $(KERNEL32LIB)
154 APP10LIBS=\
155 $(LB)$/kernel9x.lib\
156 $(LB)$/isal.lib
158 APP10DEPN=$(LB)$/isal.lib
159 .ENDIF
161 .IF "$(TESTAPP)" == "test_osl_getVolInfo"
163 SHL10OBJS=$(SLO)$/t_osl_getVolInfo.obj
164 SHL10TARGET=togvi
166 .IF "$(OS)" == "WNT"
167 APP10STDLIBS=$(KERNEL32LIB)
168 SHL10STDLIBS=$(LB)$/isal.lib
169 SHL10STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
170 .ENDIF
172 .IF "$(OS)" != "WNT"
173 SHL10STDLIBS=$(LB)$/libsal.so
174 SHL10STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
175 .ENDIF
177 SHL10IMPLIB=i$(SHL1TARGET)
178 SHL10DEF=$(MISC)$/$(SHL1TARGET).def
179 DEF10NAME=$(SHL1TARGET)
180 DEF10EXPORTFILE=export.exp
181 .ENDIF
183 .IF "$(TESTAPP)" == "test_osl_joinProcess"
184 OBJFILES+=\
185 $(OBJ)$/t_ojp_exe.obj
186 APP10TARGET=ojpx
187 APP10OBJS=$(OBJ)$/t_ojp_exe.obj
189 .IF "$(OS)" != "WNT"
190 APP10STDLIBS=$(LB)$/libsal.so
191 .ENDIF
193 SHL10OBJS=$(SLO)$/t_osl_joinProcess.obj
194 SHL10TARGET=tojp
196 .IF "$(OS)" == "WNT"
197 APP10STDLIBS=$(KERNEL32LIB)
198 SHL10STDLIBS=$(LB)$/isal.lib
199 SHL10STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
200 .ENDIF
202 .IF "$(OS)" != "WNT"
203 SHL10STDLIBS=$(LB)$/libsal.so
204 SHL10STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
205 .ENDIF
207 SHL10IMPLIB=i$(SHL1TARGET)
208 SHL10DEF=$(MISC)$/$(SHL1TARGET).def
209 DEF10NAME=$(SHL1TARGET)
210 DEF10EXPORTFILE=export.exp
211 .ENDIF
213 # --- Targets ------------------------------------------------------
215 .INCLUDE : target.mk