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
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 # --- OS2-Environment ----------------------------------------------
36 # YD defined in os2env.cmd
37 #.IF "$(NOSOLAR_JAVA)"==""
41 .IF
"$(SOLAR_JAVA)"!=""
56 CFLAGS
=-c
-3 -a1
-X
-d
-wbbf
-weas
-wucp
-w-hid
-w-par
-I.
$(MINUS_I
)$(INCLUDE
)
57 CFLAGSCXX
=-Pcxx
-RT-
-x-
-V
62 CFLAGSSLOGUIMT
=-sm
-sd
63 CFLAGSSLOCUIMT
=-sm
-sd
73 #LINKFLAGSAPPGUI=/Toe /B:0x10000 /aa
75 LINKFLAGSAPPGUI
=/Toe
/aa
77 LINKFLAGSAPPCUI
=/Toe
/B
:0x10000 /ap
82 .IF
"$(SOLAR_JAVA)"==""
86 STDOBJVCL
=$(L
)/salmain.obj
91 STDLIBGUIST
=c2.lib os2.lib
92 STDLIBCUIST
=c2.lib os2.lib
93 STDLIBGUIMT
=c2mt.lib os2.lib
94 STDLIBCUIMT
=c2mt.lib os2.lib
95 STDSHLGUIMT
=c2mt.lib os2.lib
96 STDSHLCUIMT
=c2mt.lib os2.lib
108 RCFLAGS
=-r
$(RCFILES
) $@
118 .IF
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OPTFUNC
180 #.IF "$(product)"!="full" && "$(product)"!="demo" && "$(product)"!="compact"
181 #LINKFLAGS=$(LINKFLAGS) /COD
183 #LINKFLAGS=$(LINKFLAGS)
186 .IF
"$(product)"=="full" ||
"$(product)"=="demo" ||
"$(product)"=="compact"
187 # LINKFLAGS=$(LINKFLAGS)
192 STDOBJVCL
=$(L
)/salmain.obj
199 STDLIBGUIST
=cppom30o.lib cpprtst.lib os2386.lib
200 STDLIBCUIST
=cppom30o.lib cpprtst.lib os2386.lib
201 STDLIBGUIMT
=cppom30o.lib cpprtst.lib os2386.lib
202 STDLIBCUIMT
=cppom30o.lib cpprtst.lib os2386.lib
203 STDSHLGUIMT
=cppom30o.lib cpprtst.lib os2386.lib
204 STDSHLCUIMT
=cppom30o.lib cpprtst.lib os2386.lib
206 STDLIBGUIST
=cppom30o.lib cppom30i.lib os2386.lib
207 STDLIBCUIST
=cppom30o.lib cppom30i.lib os2386.lib
208 STDLIBGUIMT
=cppom30o.lib cppom30i.lib os2386.lib
209 STDLIBCUIMT
=cppom30o.lib cppom30i.lib os2386.lib
210 STDSHLGUIMT
=cppom30o.lib cppom30i.lib os2386.lib
211 STDSHLCUIMT
=cppom30o.lib cppom30i.lib os2386.lib
214 STDLIBGUIST
=dde4sbs.lib os2386.lib
215 STDLIBCUIST
=dde4sbs.lib os2386.lib
216 STDLIBGUIMT
=dde4mbs.lib os2386.lib
217 STDLIBCUIMT
=dde4mbs.lib os2386.lib
218 STDSHLGUIMT
=dde4mbs.lib os2386.lib
219 STDSHLCUIMT
=dde4mbs.lib os2386.lib
236 RCFLAGS
=-r
$(RCFILES
) $@
246 .IF
"$(COM)" == "GCC"
248 .INCLUDE
: os2gcci.mk
253 .IF
"$(COM)" == "WTC"
261 CFLAGS
=-c
-W3
-Zp4
-Zld
$(MINUS_I
)$(INCLUDE
) -bt
=os2
-zq
-zm
-ep
-ee
263 CFLAGS
=-c
-Zp4
-W3
-Zl
-Zld
$(MINUS_I
)$(INCLUDE
) -bt
=os2
-zq
-s
266 CFLAGSOBJGUIST
= #-Alfd -GA -GEfs
268 CFLAGSOBJGUIMT
=-bm
#-Alfw -GA -GEd
270 CFLAGSSLOGUIMT
=-bm
-bd
#-Alfw -GD -GEfd
271 CFLAGSSLOCUIMT
=-bm
-bd
276 CFLAGSOPT
=-otexan
-3s
279 CFLAGSOPT
=-otexan
-4s
285 LINKFLAGS
=op symf op caseexact op statics op MANY
286 LINKFLAGSAPPGUI
=sys os2v2 pm
287 LINKFLAGSSHLGUI
=sys os2v2 dll INITINSTANCE TERMINSTANCE
288 LINKFLAGSAPPCUI
=sys os2v2
289 LINKFLAGSSHLCUI
=sys os2v2 dll
290 LINKFLAGSTACK
=op stack
=
292 LINKFLAGSDEBUG
=debug
all op undefsok
295 STDOBJVCL
=$(L
)/salmain.obj
296 STDOBJGUI
=libr clib3s.lib libr plib3s.lib libr math387s.lib
297 STDSLOGUI
=libr clib3s.lib libr os2386.lib libr plib3s.lib libr math387s.lib
298 STDOBJCUI
=libr clib3s.lib libr plib3s.lib libr math387s.lib
299 STDSLOCUI
=libr clib3s.lib libr plib3s.lib libr math387s.lib
300 STDLIBGUIST
=libr os2386.lib libr clib3s.lib libr plib3s.lib
301 STDLIBCUIST
=libr os2386.lib libr clib3s.lib libr plib3s.lib
302 STDLIBGUIMT
=libr os2386.lib libr clib3s.lib libr plib3s.lib
303 STDLIBCUIMT
=libr os2386.lib libr clib3s.lib libr plib3s.lib
304 STDSHLGUIMT
=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr math387s.lib libr plib3s.lib libr noemu387.lib
305 STDSHLCUIMT
=libr os2386.lib libr clib3s.lib libr plibmt3s.lib libr matg387s.lib libr plib3s.lib
308 LIBFLAGS
=/p
=128 /c
/m
317 RCFLAGS
=-r
$(RCFILES
) $@
326 # --- OS2 Allgemein ---
335 SOLARSHAREDBIN
=$(SOLARBINDIR
)