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 #*************************************************************************
41 ENABLE_EXCEPTIONS
=TRUE
43 # --- Settings -----------------------------------------------------
45 .INCLUDE
: settings.mk
49 # --- general section ----------------------------------------------------
52 LIB3TARGET
= $(LB
)$/svtool.lib
53 LIB3FILES
= $(LB
)$/_svt.lib
57 LIB4TARGET
= $(LB
)$/isvl.lib
58 LIB4FILES
= $(LB
)$/_isvl.lib
61 LIB7TARGET
= $(SLB
)$/svt.lib
69 $(SLB
)$/unoiface.lib \
76 $(SLB
)$/numbers.uno.lib \
81 $(SLB
)$/svcontnr.lib \
82 $(SLB
)$/syslocale.lib \
86 $(SLB
)$/heavyconfig.lib \
90 LIB8TARGET
= $(SLB
)$/svl.lib
94 $(SLB
)$/filepicker.lib \
101 # generation of resourcen-lib ----------------------------------------
103 RESLIB1NAME
= $(RESTARGET
)
104 RESLIB1IMAGES
=$(PRJ
)$/res
109 $(SRS
)$/dialogs.srs \
110 $(SRS
)$/plugapp.srs \
111 $(SRS
)$/svcontnr.srs \
114 $(SRS
)$/javaerror.srs
116 RESLIB2NAME
= $(RESTARGETSIMPLE
)
122 RESLIB3NAME
= $(RESTARGETPATCH
)
124 $(SRS
)$/patchjavaerror.srs
126 # build the shared library --------------------------------------------------
128 SHL1TARGET
= svt
$(DLLPOSTFIX
)
132 .IF
"$(OS)"!="MACOSX"
134 SHL1STDLIBS
+= $(JPEG3RDLIB
)
156 .IF
"$(OS)"=="MACOSX"
157 # static libraries go at end
158 SHL1STDLIBS
+= $(JPEG3RDLIB
)
178 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
179 SHL1DEPN
=$(SHL2TARGETN
)
181 DEF1NAME
= $(SHL1TARGET
)
182 DEF1DEPN
= $(MISC
)$/$(SHL1TARGET
).flt
187 # --- svtools lite --------------------------------------------------
189 SHL2TARGET
= svl
$(DLLPOSTFIX
)
192 #Do not link with VCL or any other library that links with VCL
212 SHL2LIBS
= $(SLB
)$/svl.lib
214 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
216 DEF2NAME
= $(SHL2TARGET
)
217 DEF2DEPN
= $(MISC
)$/$(SHL2TARGET
).flt
$(SLB
)$/svl.lib
219 DEF2DES
=SvTools lite
221 # --- g2g application --------------------------------------------------
224 APP2BASE
= 0x10000000
225 APP2DEPN
= $(SHL1TARGETN
) $(SHL2TARGETN
)
227 APP2OBJS
= $(OBJ
)$/g2g.obj
230 APP2STDLIBS
+= $(SVTOOLLIB
)
232 APP2STDLIBS
+= -lsvt
$(DLLPOSTFIX
)
233 APP2STDLIBS
+= -lsvl
$(DLLPOSTFIX
)
236 APP2STDLIBS
+= $(VCLLIB
) \
241 # --- Targets ------------------------------------------------------
244 SVTTARGETS
= $(LB
)$/lib
$(SHL2TARGET
)$(DLLPOST
) $(LB
)$/lib
$(SHL1TARGET
)$(DLLPOST
)
246 SVTTARGETS
= $(LB
)$/isvl.lib \
247 $(BIN
)$/$(SHL2TARGET
)$(DLLPOST
) $(BIN
)$/$(SHL1TARGET
)$(DLLPOST
)
250 # just a quick fix - has to be cleaned up some day...
251 .IF
"$(L10N-framework)"==""
252 ALL
: $(SLB
)$/svl.lib \
254 $(MISC
)$/$(SHL2TARGET
).flt \
255 $(MISC
)$/$(SHL1TARGET
).flt \
256 $(MISC
)$/$(SHL2TARGET
).def \
257 $(MISC
)$/$(SHL1TARGET
).def \
260 .ENDIF
# "$(L10N-framework)"==""
264 # --- Svtools-Control-Filter-Datei ---
266 $(MISC
)$/$(SHL1TARGET
).flt
: svt.flt
267 @echo
------------------------------
271 $(MISC
)$/$(SHL2TARGET
).flt
: svl.flt
272 @echo
------------------------------