xref: /aoo41x/main/reportdesign/util/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29PRJNAME=reportdesign
30TARGET=rpt
31TARGET2=$(TARGET)ui
32# USE_DEFFILE=TRUE
33GEN_HID=TRUE
34GEN_HID_OTHER=TRUE
35
36# --- Settings ----------------------------------
37.INCLUDE :  settings.mk
38
39.IF "$(L10N_framework)"==""
40
41# ------------------------------------------------------------------
42# --- reportdesign core (rpt) -----------------------------------
43
44LIB1TARGET=$(SLB)$/$(TARGET).lib
45LIB1FILES=\
46		$(SLB)$/api.lib				\
47		$(SLB)$/coreshared.lib		\
48		$(SLB)$/core_resource.lib	\
49		$(SLB)$/core_sdr.lib        \
50        $(SLB)$/core_misc.lib
51
52SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
53
54SHL1STDLIBS= \
55	$(EDITENGLIB)			\
56		$(SVXCORELIB)			\
57		$(SVXLIB)				\
58		$(FWELIB)				\
59		$(SFXLIB)				\
60		$(TOOLSLIB) 			\
61		$(I18NISOLANGLIB) \
62		$(SVLLIB)				\
63		$(SVTOOLLIB)			\
64		$(UNOTOOLSLIB)			\
65		$(DBTOOLSLIB)			\
66		$(COMPHELPERLIB) 		\
67		$(CPPUHELPERLIB) 		\
68		$(CPPULIB)				\
69		$(VCLLIB)				\
70		$(TKLIB)				\
71		$(VOSLIB)				\
72		$(SALLIB)
73
74.IF "$(GUI)"=="OS2"
75SHL1STDLIBS+= \
76		idbu.lib
77.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
78SHL1STDLIBS+= \
79		-ldbu$(DLLPOSTFIX)
80.ELSE
81SHL1STDLIBS+= \
82		idbu.lib
83.ENDIF
84
85SHL1IMPLIB=i$(TARGET)
86SHL1USE_EXPORTS=name
87SHL1LIBS=$(LIB1TARGET)
88SHL1DEF=$(MISC)$/$(SHL1TARGET).def
89
90DEF1NAME=$(SHL1TARGET)
91DEFLIB1NAME=$(TARGET)
92.ENDIF
93# --- .res file ----------------------------------------------------------
94
95RES1FILELIST=\
96	$(SRS)$/core_strings.srs
97
98RESLIB1NAME=$(TARGET)
99RESLIB1IMAGES=$(PRJ)$/res
100RESLIB1SRSFILES=$(RES1FILELIST)
101
102.IF "$(L10N_framework)"==""
103# --- reportdesign UI core (rptui) -----------------------------------
104LIB2TARGET=$(SLB)$/$(TARGET2).lib
105LIB2FILES=\
106		$(SLB)$/uimisc.lib			\
107		$(SLB)$/uidlg.lib			\
108		$(SLB)$/uishared.lib		\
109		$(SLB)$/ui_inspection.lib	\
110		$(SLB)$/report.lib
111
112SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
113
114SHL2STDLIBS= \
115	$(EDITENGLIB)			\
116		$(SVXCORELIB)			\
117		$(SVXLIB)				\
118		$(SFXLIB)				\
119		$(SVTOOLLIB)			\
120		$(TKLIB)				\
121		$(VCLLIB)				\
122		$(SVLLIB)				\
123		$(SOTLIB)				\
124		$(UNOTOOLSLIB)			\
125		$(TOOLSLIB)				\
126		$(DBTOOLSLIB)			\
127		$(COMPHELPERLIB)		\
128		$(CPPUHELPERLIB)		\
129		$(CPPULIB)				\
130		$(FWELIB)				\
131		$(SO2LIB)				\
132		$(I18NISOLANGLIB)		\
133		$(SALLIB)
134.IF "$(GUI)"=="OS2"
135SHL2STDLIBS+= \
136		idbu.lib				\
137		i$(TARGET).lib
138.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
139SHL2STDLIBS+= \
140		-ldbu$(DLLPOSTFIX) \
141		-l$(TARGET)$(DLLPOSTFIX)
142.ELSE
143SHL2STDLIBS+= \
144		idbu.lib				\
145		i$(TARGET).lib
146.ENDIF
147
148.IF "$(GUI)"=="OS2"
149SHL2STDLIBS+= \
150		ifor.lib \
151		iforui.lib
152.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
153SHL2STDLIBS+= \
154		-lfor$(DLLPOSTFIX) \
155		-lforui$(DLLPOSTFIX)
156.ELSE
157SHL2STDLIBS+= \
158		ifor.lib \
159		iforui.lib
160.ENDIF
161
162
163SHL2DEPN=$(SHL1TARGETN)
164SHL2LIBS=$(LIB2TARGET)
165SHL2DEF=$(MISC)$/$(SHL2TARGET).def
166DEF2NAME=$(SHL2TARGET)
167SHL2VERSIONMAP=$(SOLARENV)/src/component.map
168.ENDIF
169# --- .res file ----------------------------------------------------------
170RES2FILELIST=\
171	$(SRS)$/uidlg.srs				\
172	$(SRS)$/ui_inspection.srs		\
173	$(SRS)$/report.srs
174
175RESLIB2NAME=$(TARGET2)
176RESLIB2IMAGES=$(PRJ)$/res
177RESLIB2SRSFILES=$(RES2FILELIST)
178.IF "$(L10N_framework)"==""
179
180# ------------------- rptxml -------------------
181TARGET3=rptxml
182# --- Library -----------------------------------
183LIB3TARGET=$(SLB)$/rpt_flt.lib
184LIB3FILES=\
185		$(SLB)$/xmlshared.lib	\
186		$(SLB)$/$(TARGET3).lib
187
188SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
189
190SHL3STDLIBS=\
191	$(EDITENGLIB)			\
192	$(SVXCORELIB)			\
193	$(XMLOFFLIB)		\
194	$(VCLLIB)			\
195	$(UNOTOOLSLIB)		\
196	$(TOOLSLIB)			\
197	$(DBTOOLSLIB)		\
198	$(COMPHELPERLIB)	\
199	$(CPPUHELPERLIB)	\
200	$(CPPULIB)			\
201	$(UCBHELPERLIB)		\
202	$(SFXLIB)			\
203	$(SVLLIB)			\
204	$(SOTLIB)			\
205	$(SO2LIB)			\
206	$(SALLIB)
207.IF "$(GUI)"=="OS2"
208SHL3STDLIBS+= \
209	irpt.lib
210.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
211SHL3STDLIBS+= \
212		-l$(TARGET)$(DLLPOSTFIX)
213.ELSE
214SHL3STDLIBS+= \
215	irpt.lib
216.ENDIF
217
218
219SHL3DEPN=$(SHL1TARGETN)
220SHL3LIBS=$(LIB3TARGET)
221SHL3IMPLIB=	i$(SHL3TARGET)
222SHL3VERSIONMAP=$(SOLARENV)/src/component.map
223SHL3DEF=	$(MISC)$/$(SHL3TARGET).def
224
225DEF3NAME=$(SHL3TARGET)
226
227.ENDIF
228
229# --- Targets ----------------------------------
230
231.INCLUDE : target.mk
232
233
234
235ALLTAR : $(MISC)/rpt.component $(MISC)/rptui.component $(MISC)/rptxml.component
236
237$(MISC)/rpt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
238        rpt.component
239    $(XSLTPROC) --nonet --stringparam uri \
240        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
241        $(SOLARENV)/bin/createcomponent.xslt rpt.component
242
243$(MISC)/rptui.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
244        rptui.component
245    $(XSLTPROC) --nonet --stringparam uri \
246        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
247        $(SOLARENV)/bin/createcomponent.xslt rptui.component
248
249$(MISC)/rptxml.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
250        rptxml.component
251    $(XSLTPROC) --nonet --stringparam uri \
252        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
253        $(SOLARENV)/bin/createcomponent.xslt rptxml.component
254