update dev300-m58
[ooovba.git] / dbaccess / util / makefile.mk
blobcb276b7a7a5a45203a34c0ead5f2657128d11ee8
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.38.68.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=dbaccess
34 TARGET=dba
35 TARGET2=dbu
36 TARGET3=sdbt
37 USE_DEFFILE=TRUE
38 GEN_HID=TRUE
39 GEN_HID_OTHER=TRUE
41 # --- Settings ----------------------------------
43 .INCLUDE : settings.mk
45 LDUMP=ldump2.exe
47 # --- database core (dba) -----------------------------------
49 LIB1TARGET=$(SLB)$/$(TARGET).lib
50 LIB1FILES=\
51 $(SLB)$/api.lib \
52 $(SLB)$/dataaccess.lib \
53 $(SLB)$/misc.lib \
54 $(SLB)$/core_resource.lib
56 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
58 SHL1STDLIBS= \
59 $(SVTOOLLIB) \
60 $(VCLLIB) \
61 $(UNOTOOLSLIB) \
62 $(TOOLSLIB) \
63 $(I18NISOLANGLIB) \
64 $(DBTOOLSLIB) \
65 $(COMPHELPERLIB) \
66 $(CPPUHELPERLIB) \
67 $(UCBHELPERLIB) \
68 $(SVLLIB) \
69 $(CPPULIB) \
70 $(SALLIB) \
71 $(SFXLIB) \
72 $(BASICLIB) \
73 $(FWELIB) \
74 $(SALHELPERLIB)
76 SHL1DEPN=
77 SHL1IMPLIB=i$(TARGET)
78 SHL1LIBS=$(LIB1TARGET)
79 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
80 DEF1NAME=$(SHL1TARGET)
81 DEFLIB1NAME=$(TARGET)
82 DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \
83 $(SLB)$/$(TARGET).lib
84 # SHL1VERSIONMAP=$(TARGET).map
85 SHL1USE_EXPORTS=name
87 # --- .res file ----------------------------------------------------------
89 RES1FILELIST=\
90 $(SRS)$/core_strings.srs
92 RESLIB1NAME=$(TARGET)
93 RESLIB1IMAGES=$(PRJ)$/res
94 RESLIB1SRSFILES=$(RES1FILELIST)
96 # --- database ui (dbu) -----------------------------------
98 LIB2TARGET=$(SLB)$/$(TARGET2).lib
99 LIB2FILES=\
100 $(SLB)$/relationdesign.lib \
101 $(SLB)$/tabledesign.lib \
102 $(SLB)$/querydesign.lib \
103 $(SLB)$/uimisc.lib \
104 $(SLB)$/uidlg.lib \
105 $(SLB)$/dbushared.lib \
106 $(SLB)$/browser.lib \
107 $(SLB)$/uiuno.lib \
108 $(SLB)$/app.lib \
109 $(SLB)$/uicontrols.lib
111 SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
113 SHL2STDLIBS= \
114 $(SVXCORELIB) \
115 $(SVXLIB) \
116 $(SFXLIB) \
117 $(SVTOOLLIB) \
118 $(FWELIB) \
119 $(TKLIB) \
120 $(VCLLIB) \
121 $(GOODIESLIB) \
122 $(SVLLIB) \
123 $(SOTLIB) \
124 $(UNOTOOLSLIB) \
125 $(TOOLSLIB) \
126 $(UCBHELPERLIB) \
127 $(DBTOOLSLIB) \
128 $(COMPHELPERLIB) \
129 $(CPPUHELPERLIB) \
130 $(CPPULIB) \
131 $(SO2LIB) \
132 $(VOSLIB) \
133 $(SALLIB)
135 .IF "$(GUI)"=="OS2"
136 SHL2STDLIBS+= $(LB)$/i$(TARGET).lib
137 SHL2DEPN=$(LB)$/i$(TARGET).lib
138 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
139 SHL2STDLIBS+= \
140 -l$(TARGET)$(DLLPOSTFIX)
141 SHL2DEPN=$(SHL1TARGETN)
142 .ELSE
143 SHL2STDLIBS+= \
144 $(LB)$/i$(TARGET).lib
145 SHL2DEPN=$(LB)$/i$(TARGET).lib
146 .ENDIF
148 SHL2IMPLIB=i$(TARGET2)
149 SHL2LIBS=$(LIB2TARGET)
150 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
151 DEF2NAME=$(SHL2TARGET)
152 DEFLIB2NAME=$(TARGET2)
153 DEF2DEPN= $(MISC)$/$(SHL2TARGET).flt \
154 $(SLB)$/$(TARGET2).lib
155 # SHL2VERSIONMAP=$(TARGET2).map
156 SHL2USE_EXPORTS=name
158 ALL: \
159 $(LIB1TARGET) \
160 $(LIB2TARGET) \
161 ALLTAR
163 # --- .res file ----------------------------------------------------------
165 RES2FILELIST=\
166 $(SRS)$/uidlg.srs \
167 $(SRS)$/app.srs \
168 $(SRS)$/uicontrols.srs \
169 $(SRS)$/browser.srs \
170 $(SRS)$/uiuno.srs \
171 $(SRS)$/querydesign.srs \
172 $(SRS)$/tabledesign.srs \
173 $(SRS)$/relationdesign.srs \
174 $(SRS)$/uiimglst.srs \
175 $(SRS)$/uimisc.srs
177 .IF "$(GUI)"=="WNT"
178 #needed by $(SLO)$/adodatalinks.obj
179 SHL2STDLIBS+= $(OLE32LIB) \
180 $(OLEAUT32LIB) \
181 $(UUIDLIB)
182 .ENDIF
184 RESLIB2NAME=$(TARGET2)
185 RESLIB2IMAGES=$(PRJ)$/res
186 RESLIB2SRSFILES=$(RES2FILELIST)
188 # --- database tools (sdbt) -----------------------------------
190 LIB3TARGET=$(SLB)$/$(TARGET3).lib
191 LIB3FILES=\
192 $(SLB)$/conntools.lib \
193 $(SLB)$/sdbtmisc.lib \
194 $(SLB)$/sdbtshared.lib
196 SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
198 SHL3STDLIBS= \
199 $(CPPULIB) \
200 $(CPPUHELPERLIB) \
201 $(UNOTOOLSLIB) \
202 $(COMPHELPERLIB) \
203 $(TOOLSLIB) \
204 $(DBTOOLSLIB) \
205 $(SALLIB)
207 SHL3LIBS=$(LIB3TARGET)
208 SHL3DEF=$(MISC)$/$(SHL3TARGET).def
209 DEF3NAME=$(SHL3TARGET)
210 SHL3VERSIONMAP=$(TARGET3).map
212 # --- .res file ----------------------------------------------------------
214 RES3FILELIST=\
215 $(SRS)$/sdbt_strings.srs
217 RESLIB3NAME=$(TARGET3)
218 RESLIB3IMAGES=$(PRJ)$/res
219 RESLIB3SRSFILES=$(RES3FILELIST)
221 # --- Targets ----------------------------------
223 .INCLUDE : target.mk
224 .IF "$(depend)"==""
226 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
227 @echo ------------------------------
228 @echo CLEAR_THE_FILE > $@
229 @echo _TI >>$@
230 @echo _real >>$@
232 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
233 @echo ------------------------------
234 @echo CLEAR_THE_FILE > $@
235 @echo _TI >>$@
236 @echo _real >>$@
237 .ENDIF