Update ooo320-m1
[ooovba.git] / svtools / util / makefile.mk
blob80596d23e866b7698fb3406b9591dab70bf3a5b6
1 #*************************************************************************
2 #*
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.67 $
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=svtools
35 TARGET=svtool
36 RESTARGET=svt
37 RESTARGETPATCH=svp
38 RESTARGETSIMPLE=svs
39 GEN_HID=TRUE
40 GEN_HID_OTHER=TRUE
41 ENABLE_EXCEPTIONS=TRUE
43 # --- Settings -----------------------------------------------------
45 .INCLUDE : settings.mk
47 USE_LDUMP2=TRUE
49 # --- general section ----------------------------------------------------
51 .IF "$(GUI)"!="UNX"
52 LIB3TARGET= $(LB)$/svtool.lib
53 LIB3FILES= $(LB)$/_svt.lib
54 .ENDIF
56 .IF "$(GUI)"!="UNX"
57 LIB4TARGET= $(LB)$/isvl.lib
58 LIB4FILES= $(LB)$/_isvl.lib
59 .ENDIF
61 LIB7TARGET= $(SLB)$/svt.lib
62 LIB7FILES= \
63 $(SLB)$/misc.lib \
64 $(SLB)$/items.lib \
65 $(SLB)$/browse.lib \
66 $(SLB)$/ctrl.lib \
67 $(SLB)$/dialogs.lib \
68 $(SLB)$/edit.lib \
69 $(SLB)$/unoiface.lib \
70 $(SLB)$/filter.lib \
71 $(SLB)$/igif.lib \
72 $(SLB)$/jpeg.lib \
73 $(SLB)$/ixpm.lib \
74 $(SLB)$/ixbm.lib \
75 $(SLB)$/numbers.lib \
76 $(SLB)$/numbers.uno.lib \
77 $(SLB)$/wmf.lib \
78 $(SLB)$/undo.lib \
79 $(SLB)$/urlobj.lib \
80 $(SLB)$/plugapp.lib \
81 $(SLB)$/svcontnr.lib \
82 $(SLB)$/syslocale.lib \
83 $(SLB)$/svdde.lib \
84 $(SLB)$/svhtml.lib \
85 $(SLB)$/svrtf.lib \
86 $(SLB)$/heavyconfig.lib \
87 $(SLB)$/table.lib \
88 $(SLB)$/java.lib
90 LIB8TARGET= $(SLB)$/svl.lib
91 LIB8FILES= \
92 $(SLB)$/config.lib \
93 $(SLB)$/filerec.lib \
94 $(SLB)$/filepicker.lib \
95 $(SLB)$/items1.lib \
96 $(SLB)$/misc1.lib \
97 $(SLB)$/notify.lib \
98 $(SLB)$/svarray.lib \
99 $(SLB)$/svsql.lib
101 # generation of resourcen-lib ----------------------------------------
103 RESLIB1NAME= $(RESTARGET)
104 RESLIB1IMAGES=$(PRJ)$/res
105 RESLIB1SRSFILES= \
106 $(SRS)$/filter.srs \
107 $(SRS)$/misc.srs \
108 $(SRS)$/ctrl.srs \
109 $(SRS)$/dialogs.srs \
110 $(SRS)$/plugapp.srs \
111 $(SRS)$/svcontnr.srs \
112 $(SRS)$/uno.srs \
113 $(SRS)$/browse.srs \
114 $(SRS)$/javaerror.srs
116 RESLIB2NAME= $(RESTARGETSIMPLE)
117 RESLIB2SRSFILES=\
118 $(SRS)$/items1.srs \
119 $(SRS)$/misc1.srs
122 RESLIB3NAME= $(RESTARGETPATCH)
123 RESLIB3SRSFILES= \
124 $(SRS)$/patchjavaerror.srs
126 # build the shared library --------------------------------------------------
128 SHL1TARGET= svt$(DLLPOSTFIX)
129 SHL1IMPLIB= _svt
130 SHL1USE_EXPORTS=name
132 .IF "$(OS)"!="MACOSX"
133 # static libraries
134 SHL1STDLIBS+= $(JPEG3RDLIB)
135 .ENDIF
137 # dynamic libraries
138 SHL1STDLIBS+= \
139 $(TKLIB) \
140 $(VCLLIB) \
141 $(SVLLIB) \
142 $(SOTLIB) \
143 $(UNOTOOLSLIB) \
144 $(TOOLSLIB) \
145 $(I18NISOLANGLIB) \
146 $(I18NUTILLIB) \
147 $(UCBHELPERLIB) \
148 $(COMPHELPERLIB) \
149 $(CPPUHELPERLIB) \
150 $(CPPULIB) \
151 $(VOSLIB) \
152 $(SALLIB) \
153 $(ICUUCLIB) \
154 $(JVMFWKLIB)
156 .IF "$(OS)"=="MACOSX"
157 # static libraries go at end
158 SHL1STDLIBS+= $(JPEG3RDLIB)
159 .ENDIF
161 .IF "$(GUI)"=="WNT"
162 SHL1STDLIBS+= \
163 $(UWINAPILIB) \
164 $(ADVAPI32LIB) \
165 $(GDI32LIB) \
166 $(OLE32LIB) \
167 $(UUIDLIB) \
168 $(ADVAPI32LIB) \
169 $(OLEAUT32LIB)
170 .ENDIF # WNT
172 SHL1OBJS= \
173 $(SLO)$/svtdata.obj
175 SHL1LIBS= \
176 $(SLB)$/svt.lib
178 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
179 SHL1DEPN=$(SHL2TARGETN)
181 DEF1NAME= $(SHL1TARGET)
182 DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt
183 DEFLIB1NAME =svt
184 DEF1DES =SvTools
187 # --- svtools lite --------------------------------------------------
189 SHL2TARGET= svl$(DLLPOSTFIX)
190 SHL2IMPLIB= _isvl
191 SHL2USE_EXPORTS=name
192 #Do not link with VCL or any other library that links with VCL
193 SHL2STDLIBS= \
194 $(UNOTOOLSLIB) \
195 $(TOOLSLIB) \
196 $(I18NISOLANGLIB) \
197 $(UCBHELPERLIB) \
198 $(COMPHELPERLIB) \
199 $(CPPUHELPERLIB) \
200 $(CPPULIB) \
201 $(VOSLIB) \
202 $(VCLLIB) \
203 $(SALLIB)
205 .IF "$(GUI)"=="WNT"
206 SHL2STDLIBS+= \
207 $(UWINAPILIB) \
208 $(ADVAPI32LIB) \
209 $(GDI32LIB)
210 .ENDIF # WNT
212 SHL2LIBS= $(SLB)$/svl.lib
214 SHL2DEF= $(MISC)$/$(SHL2TARGET).def
216 DEF2NAME= $(SHL2TARGET)
217 DEF2DEPN= $(MISC)$/$(SHL2TARGET).flt $(SLB)$/svl.lib
218 DEFLIB2NAME=svl
219 DEF2DES =SvTools lite
221 # --- g2g application --------------------------------------------------
223 APP2TARGET = g2g
224 APP2BASE = 0x10000000
225 APP2DEPN = $(SHL1TARGETN) $(SHL2TARGETN)
227 APP2OBJS = $(OBJ)$/g2g.obj
229 .IF "$(GUI)"!="UNX"
230 APP2STDLIBS+= $(SVTOOLLIB)
231 .ELSE
232 APP2STDLIBS+= -lsvt$(DLLPOSTFIX)
233 APP2STDLIBS+= -lsvl$(DLLPOSTFIX)
234 .ENDIF
236 APP2STDLIBS+= $(VCLLIB) \
237 $(TOOLSLIB) \
238 $(VOSLIB) \
239 $(SALLIB)
241 # --- Targets ------------------------------------------------------
243 .IF "$(GUI)"=="UNX"
244 SVTTARGETS= $(LB)$/lib$(SHL2TARGET)$(DLLPOST) $(LB)$/lib$(SHL1TARGET)$(DLLPOST)
245 .ELSE
246 SVTTARGETS= $(LB)$/isvl.lib \
247 $(BIN)$/$(SHL2TARGET)$(DLLPOST) $(BIN)$/$(SHL1TARGET)$(DLLPOST)
248 .ENDIF
250 # just a quick fix - has to be cleaned up some day...
251 .IF "$(L10N-framework)"==""
252 ALL: $(SLB)$/svl.lib \
253 $(SLB)$/svt.lib \
254 $(MISC)$/$(SHL2TARGET).flt \
255 $(MISC)$/$(SHL1TARGET).flt \
256 $(MISC)$/$(SHL2TARGET).def \
257 $(MISC)$/$(SHL1TARGET).def \
258 $(SVTTARGETS) \
259 ALLTAR
260 .ENDIF # "$(L10N-framework)"==""
262 .INCLUDE : target.mk
264 # --- Svtools-Control-Filter-Datei ---
266 $(MISC)$/$(SHL1TARGET).flt: svt.flt
267 @echo ------------------------------
268 @echo Making: $@
269 $(TYPE) svt.flt >$@
271 $(MISC)$/$(SHL2TARGET).flt: svl.flt
272 @echo ------------------------------
273 @echo Making: $@
274 $(TYPE) svl.flt >$@