Bump for 3.6-28
[LibreOffice.git] / sal / workben / makefile.mk
blob8c0e7c4ed25577f29ecd602d1c0b3da29c35fdac
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 NO_DEFAULT_STL=YES
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 CFLAGS+=$(LFS_CFLAGS)
42 CXXFLAGS+=$(LFS_CFLAGS)
44 # --- Files --------------------------------------------------------
47 # t_readline
49 OBJFILES+=\
50 $(OBJ)$/t_readline.obj
52 APP1TARGET=t_readline
53 APP1OBJS=$(OBJ)$/t_readline.obj
54 APP1STDLIBS=$(SALLIB)
55 APP1DEPN=$(SLB)$/sal.lib
56 APP1RPATH=UREBIN
59 # testfile
61 OBJFILES+=\
62 $(OBJ)$/testfile.obj
64 APP1TARGET=testfile
65 APP1OBJS=$(OBJ)$/testfile.obj
66 APP1STDLIBS=$(SALLIB)
67 APP1DEPN=$(SLB)$/sal.lib
70 # testpipe
72 OBJFILES+=\
73 $(OBJ)$/testpipe.obj
75 APP2TARGET=testpipe
76 APP2OBJS=$(OBJ)$/testpipe.obj
77 APP2STDLIBS=$(SALLIB)
78 APP2DEPN=$(SLB)$/sal.lib
81 # testpip2
83 OBJFILES+=\
84 $(OBJ)$/testpip2.obj
86 APP3TARGET=testpip2
87 APP3OBJS=$(OBJ)$/testpip2.obj
88 APP3STDLIBS=$(SALLIB)
89 APP3DEPN=$(SLB)$/sal.lib
92 # testproc
94 OBJFILES+=\
95 $(OBJ)$/testproc.obj
97 APP4TARGET=testproc
98 APP4OBJS=$(OBJ)$/testproc.obj
99 APP4STDLIBS=$(SALLIB)
100 APP4DEPN=$(SLB)$/sal.lib
103 # measure_oustrings
105 OBJFILES+=\
106 $(OBJ)$/measure_oustrings.obj
108 .IF "$(HAVE_CALLGRIND)" == "YES"
109 CFLAGSCXX+=-DHAVE_CALLGRIND
110 .ENDIF
112 APP6TARGET=measure_oustrings
113 APP6OBJS=$(OBJ)$/measure_oustrings.obj
114 APP6STDLIBS=$(SALLIB)
115 APP6DEPN=$(SLB)$/sal.lib
118 # t_random.
120 OBJFILES+=\
121 $(OBJ)$/t_random.obj
123 APP7TARGET=t_random
124 APP7OBJS=$(OBJ)$/t_random.obj
125 APP7STDLIBS=$(SALLIB)
126 APP7DEPN=$(SLB)$/sal.lib
129 # t_cipher
131 OBJFILES+=\
132 $(OBJ)$/t_cipher.obj
134 APP8TARGET=t_cipher
135 APP8OBJS=$(OBJ)$/t_cipher.obj
136 APP8STDLIBS=$(SALLIB)
137 APP8DEPN=$(SLB)$/sal.lib
140 # t_digest.
142 OBJFILES+=\
143 $(OBJ)$/t_digest.obj
145 APP9TARGET=t_digest
146 APP9OBJS=$(OBJ)$/t_digest.obj
147 APP9STDLIBS=$(SALLIB)
148 APP9DEPN=$(SLB)$/sal.lib
151 # getlitest
153 .IF "$(TESTAPP)" == "getlocaleinfotest"
154 OBJFILES+=\
155 $(OBJ)$/getlocaleinfotest.obj
157 APP10TARGET=getlitest
158 APP10OBJS=$(OBJ)$/getlocaleinfotest.obj
160 APP10STDLIBS=\
161 $(KERNEL32LIB)
163 APP10LIBS=\
164 $(LB)$/kernel9x.lib\
165 $(LB)$/isal.lib
167 APP10DEPN=$(LB)$/isal.lib
168 .ENDIF
170 .IF "$(TESTAPP)" == "test_osl_getVolInfo"
172 SHL10OBJS=$(SLO)$/t_osl_getVolInfo.obj
173 SHL10TARGET=togvi
175 .IF "$(GUI)" == "WNT"
176 APP10STDLIBS=$(KERNEL32LIB)
177 SHL10STDLIBS=$(LB)$/isal.lib
178 SHL10STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
179 .ENDIF
181 .IF "$(GUI)" == "UNX"
182 SHL10STDLIBS=$(LB)$/libsal.so
183 SHL10STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
184 .ENDIF
186 SHL10IMPLIB=i$(SHL1TARGET)
187 SHL10DEF=$(MISC)$/$(SHL1TARGET).def
188 DEF10NAME=$(SHL1TARGET)
189 DEF10EXPORTFILE=export.exp
190 .ENDIF
192 .IF "$(TESTAPP)" == "test_osl_joinProcess"
193 OBJFILES+=\
194 $(OBJ)$/t_ojp_exe.obj
195 APP10TARGET=ojpx
196 APP10OBJS=$(OBJ)$/t_ojp_exe.obj
198 .IF "$(GUI)" == "UNX"
199 APP10STDLIBS=$(LB)$/libsal.so
200 .ENDIF
202 SHL10OBJS=$(SLO)$/t_osl_joinProcess.obj
203 SHL10TARGET=tojp
205 .IF "$(GUI)" == "WNT"
206 APP10STDLIBS=$(KERNEL32LIB)
207 SHL10STDLIBS=$(LB)$/isal.lib
208 SHL10STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
209 .ENDIF
211 .IF "$(GUI)" == "UNX"
212 SHL10STDLIBS=$(LB)$/libsal.so
213 SHL10STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
214 .ENDIF
216 SHL10IMPLIB=i$(SHL1TARGET)
217 SHL10DEF=$(MISC)$/$(SHL1TARGET).def
218 DEF10NAME=$(SHL1TARGET)
219 DEF10EXPORTFILE=export.exp
220 .ENDIF
222 # --- Targets ------------------------------------------------------
224 .INCLUDE : target.mk