merge the formfield patch from ooo-build
[ooovba.git] / reportdesign / util / makefile.mk
blob82f22e30ede73e59ef0164e127b033139778216f
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.21.2.2 $
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=..
33 PRJNAME=reportdesign
34 TARGET=rpt
35 TARGET2=$(TARGET)ui
36 # USE_DEFFILE=TRUE
37 GEN_HID=TRUE
38 GEN_HID_OTHER=TRUE
40 # --- Settings ----------------------------------
41 .INCLUDE : settings.mk
43 .IF "$(L10N_framework)"==""
45 # ------------------------------------------------------------------
46 # --- reportdesign core (rpt) -----------------------------------
48 LIB1TARGET=$(SLB)$/$(TARGET).lib
49 LIB1FILES=\
50 $(SLB)$/api.lib \
51 $(SLB)$/coreshared.lib \
52 $(SLB)$/core_resource.lib \
53 $(SLB)$/core_sdr.lib \
54 $(SLB)$/core_misc.lib
56 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
58 SHL1STDLIBS= \
59 $(SVXCORELIB) \
60 $(SVXLIB) \
61 $(FWELIB) \
62 $(SFXLIB) \
63 $(TOOLSLIB) \
64 $(I18NISOLANGLIB) \
65 $(SVLLIB) \
66 $(SVTOOLLIB) \
67 $(UNOTOOLSLIB) \
68 $(DBTOOLSLIB) \
69 $(COMPHELPERLIB) \
70 $(CPPUHELPERLIB) \
71 $(CPPULIB) \
72 $(VCLLIB) \
73 $(TKLIB) \
74 $(VOSLIB) \
75 $(SALLIB)
77 .IF "$(GUI)"=="OS2"
78 SHL1STDLIBS+= \
79 idbu.lib
80 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
81 SHL1STDLIBS+= \
82 -ldbu$(DLLPOSTFIX)
83 .ELSE
84 SHL1STDLIBS+= \
85 idbu.lib
86 .ENDIF
88 SHL1IMPLIB=i$(TARGET)
89 SHL1USE_EXPORTS=name
90 SHL1LIBS=$(LIB1TARGET)
91 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
93 DEF1NAME=$(SHL1TARGET)
94 DEFLIB1NAME=$(TARGET)
95 .ENDIF
96 # --- .res file ----------------------------------------------------------
98 RES1FILELIST=\
99 $(SRS)$/core_strings.srs
101 RESLIB1NAME=$(TARGET)
102 RESLIB1IMAGES=$(PRJ)$/res
103 RESLIB1SRSFILES=$(RES1FILELIST)
105 .IF "$(L10N_framework)"==""
106 # --- reportdesign UI core (rptui) -----------------------------------
107 LIB2TARGET=$(SLB)$/$(TARGET2).lib
108 LIB2FILES=\
109 $(SLB)$/uimisc.lib \
110 $(SLB)$/uidlg.lib \
111 $(SLB)$/uishared.lib \
112 $(SLB)$/ui_inspection.lib \
113 $(SLB)$/report.lib
115 SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
117 SHL2STDLIBS= \
118 $(SVXCORELIB) \
119 $(SVXLIB) \
120 $(SFXLIB) \
121 $(SVTOOLLIB) \
122 $(TKLIB) \
123 $(VCLLIB) \
124 $(SVLLIB) \
125 $(SOTLIB) \
126 $(UNOTOOLSLIB) \
127 $(TOOLSLIB) \
128 $(DBTOOLSLIB) \
129 $(COMPHELPERLIB) \
130 $(CPPUHELPERLIB) \
131 $(CPPULIB) \
132 $(FWELIB) \
133 $(SO2LIB) \
134 $(I18NISOLANGLIB) \
135 $(SALLIB)
136 .IF "$(GUI)"=="OS2"
137 SHL2STDLIBS+= \
138 idbu.lib \
139 i$(TARGET).lib
140 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
141 SHL2STDLIBS+= \
142 -ldbu$(DLLPOSTFIX) \
143 -l$(TARGET)$(DLLPOSTFIX)
144 .ELSE
145 SHL2STDLIBS+= \
146 idbu.lib \
147 i$(TARGET).lib
148 .ENDIF
150 .IF "$(GUI)"=="OS2"
151 SHL2STDLIBS+= \
152 ifor.lib \
153 iforui.lib
154 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
155 SHL2STDLIBS+= \
156 -lfor$(DLLPOSTFIX) \
157 -lforui$(DLLPOSTFIX)
158 .ELSE
159 SHL2STDLIBS+= \
160 ifor.lib \
161 iforui.lib
162 .ENDIF
165 SHL2DEPN=$(SHL1TARGETN)
166 SHL2LIBS=$(LIB2TARGET)
167 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
168 DEF2NAME=$(SHL2TARGET)
169 SHL2VERSIONMAP=$(TARGET2).map
170 .ENDIF
171 # --- .res file ----------------------------------------------------------
172 RES2FILELIST=\
173 $(SRS)$/uidlg.srs \
174 $(SRS)$/ui_inspection.srs \
175 $(SRS)$/report.srs
177 RESLIB2NAME=$(TARGET2)
178 RESLIB2IMAGES=$(PRJ)$/res
179 RESLIB2SRSFILES=$(RES2FILELIST)
180 .IF "$(L10N_framework)"==""
182 # ------------------- rptxml -------------------
183 TARGET3=rptxml
184 # --- Library -----------------------------------
185 LIB3TARGET=$(SLB)$/rpt_flt.lib
186 LIB3FILES=\
187 $(SLB)$/xmlshared.lib \
188 $(SLB)$/$(TARGET3).lib
190 SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
192 SHL3STDLIBS=\
193 $(SVXCORELIB) \
194 $(XMLOFFLIB) \
195 $(VCLLIB) \
196 $(UNOTOOLSLIB) \
197 $(TOOLSLIB) \
198 $(DBTOOLSLIB) \
199 $(COMPHELPERLIB) \
200 $(CPPUHELPERLIB) \
201 $(CPPULIB) \
202 $(UCBHELPERLIB) \
203 $(SFXLIB) \
204 $(SVLLIB) \
205 $(SOTLIB) \
206 $(SO2LIB) \
207 $(SALLIB)
208 .IF "$(GUI)"=="OS2"
209 SHL3STDLIBS+= \
210 irpt.lib
211 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
212 SHL3STDLIBS+= \
213 -l$(TARGET)$(DLLPOSTFIX)
214 .ELSE
215 SHL3STDLIBS+= \
216 irpt.lib
217 .ENDIF
220 SHL3DEPN=$(SHL1TARGETN)
221 SHL3LIBS=$(LIB3TARGET)
222 SHL3IMPLIB= i$(SHL3TARGET)
223 SHL3VERSIONMAP=rptui.map
224 SHL3DEF= $(MISC)$/$(SHL3TARGET).def
226 DEF3NAME=$(SHL3TARGET)
228 .ENDIF
230 # --- Targets ----------------------------------
232 .INCLUDE : target.mk