xref: /aoo41x/main/reportdesign/util/makefile.mk (revision 685bfa88)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweirPRJNAME=reportdesign
26cdf0e10cSrcweirTARGET=rpt
27cdf0e10cSrcweirTARGET2=$(TARGET)ui
28cdf0e10cSrcweir# USE_DEFFILE=TRUE
29cdf0e10cSrcweirGEN_HID=TRUE
30cdf0e10cSrcweirGEN_HID_OTHER=TRUE
31cdf0e10cSrcweir
32cdf0e10cSrcweir# --- Settings ----------------------------------
33cdf0e10cSrcweir.INCLUDE :  settings.mk
34cdf0e10cSrcweir
35cdf0e10cSrcweir.IF "$(L10N_framework)"==""
36cdf0e10cSrcweir
37cdf0e10cSrcweir# ------------------------------------------------------------------
38cdf0e10cSrcweir# --- reportdesign core (rpt) -----------------------------------
39cdf0e10cSrcweir
40cdf0e10cSrcweirLIB1TARGET=$(SLB)$/$(TARGET).lib
41cdf0e10cSrcweirLIB1FILES=\
42cdf0e10cSrcweir		$(SLB)$/api.lib				\
43cdf0e10cSrcweir		$(SLB)$/coreshared.lib		\
44cdf0e10cSrcweir		$(SLB)$/core_resource.lib	\
45cdf0e10cSrcweir		$(SLB)$/core_sdr.lib        \
46cdf0e10cSrcweir        $(SLB)$/core_misc.lib
47cdf0e10cSrcweir
48cdf0e10cSrcweirSHL1TARGET=$(TARGET)$(DLLPOSTFIX)
49cdf0e10cSrcweir
50cdf0e10cSrcweirSHL1STDLIBS= \
51cdf0e10cSrcweir	$(EDITENGLIB)			\
52cdf0e10cSrcweir		$(SVXCORELIB)			\
53cdf0e10cSrcweir		$(SVXLIB)				\
54cdf0e10cSrcweir		$(FWELIB)				\
55cdf0e10cSrcweir		$(SFXLIB)				\
56cdf0e10cSrcweir		$(TOOLSLIB) 			\
57cdf0e10cSrcweir		$(I18NISOLANGLIB) \
58cdf0e10cSrcweir		$(SVLLIB)				\
59cdf0e10cSrcweir		$(SVTOOLLIB)			\
60cdf0e10cSrcweir		$(UNOTOOLSLIB)			\
61cdf0e10cSrcweir		$(DBTOOLSLIB)			\
62cdf0e10cSrcweir		$(COMPHELPERLIB) 		\
63cdf0e10cSrcweir		$(CPPUHELPERLIB) 		\
64cdf0e10cSrcweir		$(CPPULIB)				\
65cdf0e10cSrcweir		$(VCLLIB)				\
66cdf0e10cSrcweir		$(TKLIB)				\
67cdf0e10cSrcweir		$(VOSLIB)				\
68cdf0e10cSrcweir		$(SALLIB)
69cdf0e10cSrcweir
70*685bfa88SYuri Dario.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
71cdf0e10cSrcweirSHL1STDLIBS+= \
72cdf0e10cSrcweir		-ldbu$(DLLPOSTFIX)
73cdf0e10cSrcweir.ELSE
74cdf0e10cSrcweirSHL1STDLIBS+= \
75cdf0e10cSrcweir		idbu.lib
76cdf0e10cSrcweir.ENDIF
77cdf0e10cSrcweir
78cdf0e10cSrcweirSHL1IMPLIB=i$(TARGET)
79cdf0e10cSrcweirSHL1USE_EXPORTS=name
80cdf0e10cSrcweirSHL1LIBS=$(LIB1TARGET)
81cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
82cdf0e10cSrcweir
83cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
84cdf0e10cSrcweirDEFLIB1NAME=$(TARGET)
85cdf0e10cSrcweir.ENDIF
86cdf0e10cSrcweir# --- .res file ----------------------------------------------------------
87cdf0e10cSrcweir
88cdf0e10cSrcweirRES1FILELIST=\
89cdf0e10cSrcweir	$(SRS)$/core_strings.srs
90cdf0e10cSrcweir
91cdf0e10cSrcweirRESLIB1NAME=$(TARGET)
92cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res
93cdf0e10cSrcweirRESLIB1SRSFILES=$(RES1FILELIST)
94cdf0e10cSrcweir
95cdf0e10cSrcweir.IF "$(L10N_framework)"==""
96cdf0e10cSrcweir# --- reportdesign UI core (rptui) -----------------------------------
97cdf0e10cSrcweirLIB2TARGET=$(SLB)$/$(TARGET2).lib
98cdf0e10cSrcweirLIB2FILES=\
99cdf0e10cSrcweir		$(SLB)$/uimisc.lib			\
100cdf0e10cSrcweir		$(SLB)$/uidlg.lib			\
101cdf0e10cSrcweir		$(SLB)$/uishared.lib		\
102cdf0e10cSrcweir		$(SLB)$/ui_inspection.lib	\
103cdf0e10cSrcweir		$(SLB)$/report.lib
104cdf0e10cSrcweir
105cdf0e10cSrcweirSHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
106cdf0e10cSrcweir
107cdf0e10cSrcweirSHL2STDLIBS= \
108cdf0e10cSrcweir	$(EDITENGLIB)			\
109cdf0e10cSrcweir		$(SVXCORELIB)			\
110cdf0e10cSrcweir		$(SVXLIB)				\
111cdf0e10cSrcweir		$(SFXLIB)				\
112cdf0e10cSrcweir		$(SVTOOLLIB)			\
113cdf0e10cSrcweir		$(TKLIB)				\
114cdf0e10cSrcweir		$(VCLLIB)				\
115cdf0e10cSrcweir		$(SVLLIB)				\
116cdf0e10cSrcweir		$(SOTLIB)				\
117cdf0e10cSrcweir		$(UNOTOOLSLIB)			\
118cdf0e10cSrcweir		$(TOOLSLIB)				\
119cdf0e10cSrcweir		$(DBTOOLSLIB)			\
120cdf0e10cSrcweir		$(COMPHELPERLIB)		\
121cdf0e10cSrcweir		$(CPPUHELPERLIB)		\
122cdf0e10cSrcweir		$(CPPULIB)				\
123cdf0e10cSrcweir		$(FWELIB)				\
124cdf0e10cSrcweir		$(SO2LIB)				\
125cdf0e10cSrcweir		$(I18NISOLANGLIB)		\
126cdf0e10cSrcweir		$(SALLIB)
127*685bfa88SYuri Dario.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
128cdf0e10cSrcweirSHL2STDLIBS+= \
129cdf0e10cSrcweir		-ldbu$(DLLPOSTFIX) \
130cdf0e10cSrcweir		-l$(TARGET)$(DLLPOSTFIX)
131cdf0e10cSrcweir.ELSE
132cdf0e10cSrcweirSHL2STDLIBS+= \
133cdf0e10cSrcweir		idbu.lib				\
134cdf0e10cSrcweir		i$(TARGET).lib
135cdf0e10cSrcweir.ENDIF
136cdf0e10cSrcweir
137*685bfa88SYuri Dario.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
138cdf0e10cSrcweirSHL2STDLIBS+= \
139cdf0e10cSrcweir		-lfor$(DLLPOSTFIX) \
140cdf0e10cSrcweir		-lforui$(DLLPOSTFIX)
141cdf0e10cSrcweir.ELSE
142cdf0e10cSrcweirSHL2STDLIBS+= \
143cdf0e10cSrcweir		ifor.lib \
144cdf0e10cSrcweir		iforui.lib
145cdf0e10cSrcweir.ENDIF
146cdf0e10cSrcweir
147cdf0e10cSrcweir
148cdf0e10cSrcweirSHL2DEPN=$(SHL1TARGETN)
149cdf0e10cSrcweirSHL2LIBS=$(LIB2TARGET)
150cdf0e10cSrcweirSHL2DEF=$(MISC)$/$(SHL2TARGET).def
151cdf0e10cSrcweirDEF2NAME=$(SHL2TARGET)
152cdf0e10cSrcweirSHL2VERSIONMAP=$(SOLARENV)/src/component.map
153cdf0e10cSrcweir.ENDIF
154cdf0e10cSrcweir# --- .res file ----------------------------------------------------------
155cdf0e10cSrcweirRES2FILELIST=\
156cdf0e10cSrcweir	$(SRS)$/uidlg.srs				\
157cdf0e10cSrcweir	$(SRS)$/ui_inspection.srs		\
158cdf0e10cSrcweir	$(SRS)$/report.srs
159cdf0e10cSrcweir
160cdf0e10cSrcweirRESLIB2NAME=$(TARGET2)
161cdf0e10cSrcweirRESLIB2IMAGES=$(PRJ)$/res
162cdf0e10cSrcweirRESLIB2SRSFILES=$(RES2FILELIST)
163cdf0e10cSrcweir.IF "$(L10N_framework)"==""
164cdf0e10cSrcweir
165cdf0e10cSrcweir# ------------------- rptxml -------------------
166cdf0e10cSrcweirTARGET3=rptxml
167cdf0e10cSrcweir# --- Library -----------------------------------
168cdf0e10cSrcweirLIB3TARGET=$(SLB)$/rpt_flt.lib
169cdf0e10cSrcweirLIB3FILES=\
170cdf0e10cSrcweir		$(SLB)$/xmlshared.lib	\
171cdf0e10cSrcweir		$(SLB)$/$(TARGET3).lib
172cdf0e10cSrcweir
173cdf0e10cSrcweirSHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
174cdf0e10cSrcweir
175cdf0e10cSrcweirSHL3STDLIBS=\
176cdf0e10cSrcweir	$(EDITENGLIB)			\
177cdf0e10cSrcweir	$(SVXCORELIB)			\
178cdf0e10cSrcweir	$(XMLOFFLIB)		\
179cdf0e10cSrcweir	$(VCLLIB)			\
180cdf0e10cSrcweir	$(UNOTOOLSLIB)		\
181cdf0e10cSrcweir	$(TOOLSLIB)			\
182cdf0e10cSrcweir	$(DBTOOLSLIB)		\
183cdf0e10cSrcweir	$(COMPHELPERLIB)	\
184cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
185cdf0e10cSrcweir	$(CPPULIB)			\
186cdf0e10cSrcweir	$(UCBHELPERLIB)		\
187cdf0e10cSrcweir	$(SFXLIB)			\
188cdf0e10cSrcweir	$(SVLLIB)			\
189cdf0e10cSrcweir	$(SOTLIB)			\
190cdf0e10cSrcweir	$(SO2LIB)			\
191cdf0e10cSrcweir	$(SALLIB)
192*685bfa88SYuri Dario.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
193cdf0e10cSrcweirSHL3STDLIBS+= \
194cdf0e10cSrcweir		-l$(TARGET)$(DLLPOSTFIX)
195cdf0e10cSrcweir.ELSE
196cdf0e10cSrcweirSHL3STDLIBS+= \
197cdf0e10cSrcweir	irpt.lib
198cdf0e10cSrcweir.ENDIF
199cdf0e10cSrcweir
200cdf0e10cSrcweir
201cdf0e10cSrcweirSHL3DEPN=$(SHL1TARGETN)
202cdf0e10cSrcweirSHL3LIBS=$(LIB3TARGET)
203cdf0e10cSrcweirSHL3IMPLIB=	i$(SHL3TARGET)
204cdf0e10cSrcweirSHL3VERSIONMAP=$(SOLARENV)/src/component.map
205cdf0e10cSrcweirSHL3DEF=	$(MISC)$/$(SHL3TARGET).def
206cdf0e10cSrcweir
207cdf0e10cSrcweirDEF3NAME=$(SHL3TARGET)
208cdf0e10cSrcweir
209cdf0e10cSrcweir.ENDIF
210cdf0e10cSrcweir
211cdf0e10cSrcweir# --- Targets ----------------------------------
212cdf0e10cSrcweir
213cdf0e10cSrcweir.INCLUDE : target.mk
214cdf0e10cSrcweir
215cdf0e10cSrcweir
216cdf0e10cSrcweir
217cdf0e10cSrcweirALLTAR : $(MISC)/rpt.component $(MISC)/rptui.component $(MISC)/rptxml.component
218cdf0e10cSrcweir
219cdf0e10cSrcweir$(MISC)/rpt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
220cdf0e10cSrcweir        rpt.component
221cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
222cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
223cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt rpt.component
224cdf0e10cSrcweir
225cdf0e10cSrcweir$(MISC)/rptui.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
226cdf0e10cSrcweir        rptui.component
227cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
228cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
229cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt rptui.component
230cdf0e10cSrcweir
231cdf0e10cSrcweir$(MISC)/rptxml.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
232cdf0e10cSrcweir        rptxml.component
233cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
234cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
235cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt rptxml.component
236