xref: /aoo41x/main/reportdesign/util/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25PRJNAME=reportdesign
26TARGET=rpt
27TARGET2=$(TARGET)ui
28# USE_DEFFILE=TRUE
29GEN_HID=TRUE
30GEN_HID_OTHER=TRUE
31
32# --- Settings ----------------------------------
33.INCLUDE :  settings.mk
34
35.IF "$(L10N_framework)"==""
36
37# ------------------------------------------------------------------
38# --- reportdesign core (rpt) -----------------------------------
39
40LIB1TARGET=$(SLB)$/$(TARGET).lib
41LIB1FILES=\
42		$(SLB)$/api.lib				\
43		$(SLB)$/coreshared.lib		\
44		$(SLB)$/core_resource.lib	\
45		$(SLB)$/core_sdr.lib        \
46        $(SLB)$/core_misc.lib
47
48SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
49
50SHL1STDLIBS= \
51	$(EDITENGLIB)			\
52		$(SVXCORELIB)			\
53		$(SVXLIB)				\
54		$(FWELIB)				\
55		$(SFXLIB)				\
56		$(TOOLSLIB) 			\
57		$(I18NISOLANGLIB) \
58		$(SVLLIB)				\
59		$(SVTOOLLIB)			\
60		$(UNOTOOLSLIB)			\
61		$(DBTOOLSLIB)			\
62		$(COMPHELPERLIB) 		\
63		$(CPPUHELPERLIB) 		\
64		$(CPPULIB)				\
65		$(VCLLIB)				\
66		$(TKLIB)				\
67		$(VOSLIB)				\
68		$(SALLIB)
69
70.IF "$(GUI)"=="OS2"
71SHL1STDLIBS+= \
72		idbu.lib
73.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
74SHL1STDLIBS+= \
75		-ldbu$(DLLPOSTFIX)
76.ELSE
77SHL1STDLIBS+= \
78		idbu.lib
79.ENDIF
80
81SHL1IMPLIB=i$(TARGET)
82SHL1USE_EXPORTS=name
83SHL1LIBS=$(LIB1TARGET)
84SHL1DEF=$(MISC)$/$(SHL1TARGET).def
85
86DEF1NAME=$(SHL1TARGET)
87DEFLIB1NAME=$(TARGET)
88.ENDIF
89# --- .res file ----------------------------------------------------------
90
91RES1FILELIST=\
92	$(SRS)$/core_strings.srs
93
94RESLIB1NAME=$(TARGET)
95RESLIB1IMAGES=$(PRJ)$/res
96RESLIB1SRSFILES=$(RES1FILELIST)
97
98.IF "$(L10N_framework)"==""
99# --- reportdesign UI core (rptui) -----------------------------------
100LIB2TARGET=$(SLB)$/$(TARGET2).lib
101LIB2FILES=\
102		$(SLB)$/uimisc.lib			\
103		$(SLB)$/uidlg.lib			\
104		$(SLB)$/uishared.lib		\
105		$(SLB)$/ui_inspection.lib	\
106		$(SLB)$/report.lib
107
108SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
109
110SHL2STDLIBS= \
111	$(EDITENGLIB)			\
112		$(SVXCORELIB)			\
113		$(SVXLIB)				\
114		$(SFXLIB)				\
115		$(SVTOOLLIB)			\
116		$(TKLIB)				\
117		$(VCLLIB)				\
118		$(SVLLIB)				\
119		$(SOTLIB)				\
120		$(UNOTOOLSLIB)			\
121		$(TOOLSLIB)				\
122		$(DBTOOLSLIB)			\
123		$(COMPHELPERLIB)		\
124		$(CPPUHELPERLIB)		\
125		$(CPPULIB)				\
126		$(FWELIB)				\
127		$(SO2LIB)				\
128		$(I18NISOLANGLIB)		\
129		$(SALLIB)
130.IF "$(GUI)"=="OS2"
131SHL2STDLIBS+= \
132		idbu.lib				\
133		i$(TARGET).lib
134.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
135SHL2STDLIBS+= \
136		-ldbu$(DLLPOSTFIX) \
137		-l$(TARGET)$(DLLPOSTFIX)
138.ELSE
139SHL2STDLIBS+= \
140		idbu.lib				\
141		i$(TARGET).lib
142.ENDIF
143
144.IF "$(GUI)"=="OS2"
145SHL2STDLIBS+= \
146		ifor.lib \
147		iforui.lib
148.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
149SHL2STDLIBS+= \
150		-lfor$(DLLPOSTFIX) \
151		-lforui$(DLLPOSTFIX)
152.ELSE
153SHL2STDLIBS+= \
154		ifor.lib \
155		iforui.lib
156.ENDIF
157
158
159SHL2DEPN=$(SHL1TARGETN)
160SHL2LIBS=$(LIB2TARGET)
161SHL2DEF=$(MISC)$/$(SHL2TARGET).def
162DEF2NAME=$(SHL2TARGET)
163SHL2VERSIONMAP=$(SOLARENV)/src/component.map
164.ENDIF
165# --- .res file ----------------------------------------------------------
166RES2FILELIST=\
167	$(SRS)$/uidlg.srs				\
168	$(SRS)$/ui_inspection.srs		\
169	$(SRS)$/report.srs
170
171RESLIB2NAME=$(TARGET2)
172RESLIB2IMAGES=$(PRJ)$/res
173RESLIB2SRSFILES=$(RES2FILELIST)
174.IF "$(L10N_framework)"==""
175
176# ------------------- rptxml -------------------
177TARGET3=rptxml
178# --- Library -----------------------------------
179LIB3TARGET=$(SLB)$/rpt_flt.lib
180LIB3FILES=\
181		$(SLB)$/xmlshared.lib	\
182		$(SLB)$/$(TARGET3).lib
183
184SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
185
186SHL3STDLIBS=\
187	$(EDITENGLIB)			\
188	$(SVXCORELIB)			\
189	$(XMLOFFLIB)		\
190	$(VCLLIB)			\
191	$(UNOTOOLSLIB)		\
192	$(TOOLSLIB)			\
193	$(DBTOOLSLIB)		\
194	$(COMPHELPERLIB)	\
195	$(CPPUHELPERLIB)	\
196	$(CPPULIB)			\
197	$(UCBHELPERLIB)		\
198	$(SFXLIB)			\
199	$(SVLLIB)			\
200	$(SOTLIB)			\
201	$(SO2LIB)			\
202	$(SALLIB)
203.IF "$(GUI)"=="OS2"
204SHL3STDLIBS+= \
205	irpt.lib
206.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
207SHL3STDLIBS+= \
208		-l$(TARGET)$(DLLPOSTFIX)
209.ELSE
210SHL3STDLIBS+= \
211	irpt.lib
212.ENDIF
213
214
215SHL3DEPN=$(SHL1TARGETN)
216SHL3LIBS=$(LIB3TARGET)
217SHL3IMPLIB=	i$(SHL3TARGET)
218SHL3VERSIONMAP=$(SOLARENV)/src/component.map
219SHL3DEF=	$(MISC)$/$(SHL3TARGET).def
220
221DEF3NAME=$(SHL3TARGET)
222
223.ENDIF
224
225# --- Targets ----------------------------------
226
227.INCLUDE : target.mk
228
229
230
231ALLTAR : $(MISC)/rpt.component $(MISC)/rptui.component $(MISC)/rptxml.component
232
233$(MISC)/rpt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
234        rpt.component
235    $(XSLTPROC) --nonet --stringparam uri \
236        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
237        $(SOLARENV)/bin/createcomponent.xslt rpt.component
238
239$(MISC)/rptui.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
240        rptui.component
241    $(XSLTPROC) --nonet --stringparam uri \
242        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
243        $(SOLARENV)/bin/createcomponent.xslt rptui.component
244
245$(MISC)/rptxml.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
246        rptxml.component
247    $(XSLTPROC) --nonet --stringparam uri \
248        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
249        $(SOLARENV)/bin/createcomponent.xslt rptxml.component
250