update dev300-m57
[ooovba.git] / sal / workben / makefile.mk
blob05afbbb223ea563bdcde5e21deceb3b7c4a09449
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.16 $
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 #*************************************************************************
32 PRJ=..
34 PRJNAME=sal
35 TARGET=workben
36 LIBTARGET=NO
37 TARGETTYPE=CUI
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
45 #TESTAPP=salstattest
46 #TESTAPP=saldyntest
48 #TESTAPP=t_cipher
49 #TESTAPP=t_digest
50 #TESTAPP=t_random
51 #TESTAPP=t_layer
52 #TESTAPP=t_tls
53 #TESTAPP=t_zip
55 #TESTAPP=testfile
56 #TESTAPP=testpipe
57 #TESTAPP=testpip2
58 #TESTAPP=testproc
59 #TESTAPP=tgetpwnam
60 #TESTAPP=salstattest
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
74 SHL1TARGET=togvi
76 .IF "$(GUI)" == "WNT"
77 APP1STDLIBS=$(KERNEL32LIB)
78 SHL1STDLIBS=$(LB)$/isal.lib
79 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
80 .ENDIF
82 .IF "$(GUI)" == "UNX"
83 SHL1STDLIBS=$(LB)$/libsal.so
84 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
85 .ENDIF
87 SHL1IMPLIB=i$(SHL1TARGET)
88 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
89 DEF1NAME=$(SHL1TARGET)
90 DEF1EXPORTFILE=export.exp
91 .ENDIF
93 .IF "$(TESTAPP)" == "test_osl_joinProcess"
94 OBJFILES=$(OBJ)$/t_ojp_exe.obj
95 APP1TARGET=ojpx
96 APP1OBJS=$(OBJFILES)
98 .IF "$(GUI)" == "UNX"
99 APP1STDLIBS=$(LB)$/libsal.so
100 .ENDIF
102 SHL1OBJS=$(SLO)$/t_osl_joinProcess.obj
103 SHL1TARGET=tojp
105 .IF "$(GUI)" == "WNT"
106 APP1STDLIBS=$(KERNEL32LIB)
107 SHL1STDLIBS=$(LB)$/isal.lib
108 SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib
109 .ENDIF
111 .IF "$(GUI)" == "UNX"
112 SHL1STDLIBS=$(LB)$/libsal.so
113 SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
114 .ENDIF
116 SHL1IMPLIB=i$(SHL1TARGET)
117 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
118 DEF1NAME=$(SHL1TARGET)
119 DEF1EXPORTFILE=export.exp
120 .ENDIF
122 .IF "$(TESTAPP)" == "getlocaleinfotest"
124 OBJFILES=$(OBJ)$/getlocaleinfotest.obj
126 APP1TARGET= getlitest
127 APP1OBJS=$(OBJFILES)
129 APP1STDLIBS=\
130 $(KERNEL32LIB)
132 APP1LIBS=\
133 $(LB)$/kernel9x.lib\
134 $(LB)$/isal.lib
136 APP1DEPN=$(LB)$/isal.lib
138 .ENDIF
140 .IF "$(TESTAPP)" == "salstattest"
142 CFLAGS+= -DUSE_SAL_STATIC
144 OBJFILES= $(OBJ)$/salstattest.obj
146 APP1TARGET= salstattest
147 APP1OBJS= $(OBJFILES)
148 APP1STDLIBS=\
149 $(LB)$/asal.lib\
150 $(SHELL32LIB)\
151 $(USER32LIB)\
152 $(COMDLG32LIB)\
153 $(ADVAPI32LIB)
155 APP1DEPN= $(LB)$/asal.lib
157 .ENDIF # salstattest
159 .IF "$(TESTAPP)" == "saldyntest"
161 OBJFILES= $(OBJ)$/saldyntest.obj
163 APP1TARGET= saldyntest
164 APP1OBJS= $(OBJFILES)
165 APP1STDLIBS=\
166 $(LB)$/isal.lib\
167 $(SHELL32LIB)\
168 $(USER32LIB)\
169 $(COMDLG32LIB)\
170 $(ADVAPI32LIB)
172 APP1DEPN= $(LB)$/isal.lib
174 .ENDIF # salstattest
177 # t_cipher
179 .IF "$(TESTAPP)" == "t_cipher"
181 CFILES= t_cipher.c
182 OBJFILES= $(OBJ)$/t_cipher.obj
184 APP1TARGET= t_cipher
185 APP1OBJS= $(OBJFILES)
186 APP1STDLIBS=$(SALLIB)
187 APP1DEPN= $(SLB)$/sal.lib
189 .ENDIF # t_cipher
192 # t_digest.
194 .IF "$(TESTAPP)" == "t_digest"
196 CFILES= t_digest.c
197 OBJFILES= $(OBJ)$/t_digest.obj
199 APP2TARGET= t_digest
200 APP2OBJS= $(OBJFILES)
201 APP2STDLIBS=$(SALLIB)
202 APP2DEPN= $(SLB)$/sal.lib
204 .ENDIF # t_digest
207 # t_random.
209 .IF "$(TESTAPP)" == "t_random"
211 CFILES= t_random.c
212 OBJFILES= $(OBJ)$/t_random.obj
214 APP3TARGET= t_random
215 APP3OBJS= $(OBJFILES)
216 APP3STDLIBS=$(SALLIB)
217 APP3DEPN= $(SLB)$/sal.lib
219 .ENDIF # t_random
222 # t_layer.
224 .IF "$(TESTAPP)" == "t_layer"
226 CFILES= t_layer.c
227 OBJFILES= $(OBJ)$/t_layer.obj
229 APP4TARGET= t_layer
230 APP4OBJS= $(OBJFILES)
231 APP4STDLIBS=$(SALLIB)
232 APP4DEPN= $(SLB)$/sal.lib
234 .ENDIF # t_layer
237 # t_tls.
239 .IF "$(TESTAPP)" == "t_tls"
241 CFILES= t_tls.c
242 OBJFILES= $(OBJ)$/t_tls.obj
244 .IF "$(SALTLSLIB)" == ""
246 .IF "$(GUI)" == "UNX"
247 SALTLSLIB= -lsaltls2
248 .ENDIF # unx
250 .IF "$(GUI)" == "WNT"
251 SALTLSLIB= $(SALTLSLIB)
252 .ENDIF # wnt
254 .ENDIF # saltlslib
256 APP5TARGET= t_tls
257 APP5OBJS= $(OBJFILES)
258 APP5STDLIBS=$(SALTLSLIB) $(SALLIB)
259 APP5DEPN= $(SLB)$/sal.lib
261 .ENDIF # t_tls
264 # t_zip.
266 .IF "$(TESTAPP)" == "t_zip"
268 CFILES= t_zip.c
269 OBJFILES= $(OBJ)$/t_zip.obj
271 .IF "$(SALZIPLIB)" == ""
273 .IF "$(GUI)" == "UNX"
274 SALZIPLIB= -lsalzip2
275 .ENDIF # unx
277 .IF "$(GUI)" == "WNT"
278 SALZIPLIB= $(SALZIPLIB)
279 .ENDIF # wnt
281 .ENDIF # salziplib
283 APP6TARGET= t_zip
284 APP6OBJS= $(OBJFILES)
285 APP6STDLIBS=$(SALZIPLIB) $(SALLIB)
286 APP6DEPN= $(SLB)$/sal.lib
288 .ENDIF # t_zip
291 # testfile
293 .IF "$(TESTAPP)" == "testfile"
295 CXXFILES= testfile.cxx
296 OBJFILES= $(OBJ)$/testfile.obj
298 APP1TARGET= testfile
299 APP1OBJS= $(OBJFILES)
300 APP1STDLIBS=$(SALLIB)
301 APP1DEPN= $(SLB)$/sal.lib
303 .ENDIF # testfile
306 # testpipe
308 .IF "$(TESTAPP)" == "testpipe"
310 CXXFILES= testpipe.cxx
311 OBJFILES= $(OBJ)$/testpipe.obj
313 APP2TARGET= testpipe
314 APP2OBJS= $(OBJFILES)
315 APP2STDLIBS=$(SALLIB)
316 APP2DEPN= $(SLB)$/sal.lib
318 .ENDIF # testpipe
321 # testpip2
323 .IF "$(TESTAPP)" == "testpip2"
325 CXXFILES= testpip2.cxx
326 OBJFILES= $(OBJ)$/testpip2.obj
328 APP3TARGET= testpip2
329 APP3OBJS= $(OBJFILES)
330 APP3STDLIBS=$(SALLIB)
331 APP3DEPN= $(SLB)$/sal.lib
333 .ENDIF # testpip2
336 # testproc
338 .IF "$(TESTAPP)" == "testproc"
340 CXXFILES= testproc.cxx
341 OBJFILES= $(OBJ)$/testproc.obj
343 APP4TARGET= testproc
344 APP4OBJS= $(OBJFILES)
345 APP4STDLIBS=$(SALLIB)
346 APP4DEPN= $(SLB)$/sal.lib
348 .ENDIF # testproc
351 # tgetpwnam
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)
365 .ENDIF # tgetpwname
367 # --- Targets ------------------------------------------------------
369 .INCLUDE : target.mk