Update ooo320-m1
[ooovba.git] / binfilter / bf_sw / util / makefile.mk
blob4c3a4e385e5f0caa705f74370700bedc389a374c
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 $
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 EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
34 PRJ=..$/..
35 BFPRJ=..
37 PRJNAME=binfilter
38 TARGET=bf_sw
40 NO_HIDS=TRUE
42 .IF "$(CPU)"=="i386"
43 USE_LDUMP2=TRUE
44 .ENDIF
47 # --- Settings ------------------------------------------------------------
49 .INCLUDE : settings.mk
50 INC+= -I$(PRJ)$/inc$/bf_sw
52 DESK=T
54 RESLIB1NAME=bf_sw
55 MYRESLIBNAME=sw
57 # --- Allgemein -----------------------------------------------------------
58 .IF "$(OS)"=="IRIX"
59 LINKFLAGS+=-Wl,-LD_LAYOUT:lgot_buffer=40
60 .ENDIF
62 sw_res_files= \
63 $(SRS)$/sw_app.srs \
64 $(SRS)$/sw_config.srs \
65 $(SRS)$/sw_dochdl.srs \
66 $(SRS)$/sw_fldui.srs \
67 $(SRS)$/sw_globdoc.srs \
68 $(SRS)$/sw_index.srs \
69 $(SRS)$/sw_misc.srs \
70 $(SRS)$/sw_shells.srs \
71 $(SRS)$/sw_utlui.srs \
72 $(SRS)$/sw_wrtsh.srs
74 RESLIB1SRSFILES= \
75 $(sw_res_files)
77 LIB1TARGET=$(LB)$/bf_swlib.lib
78 LIB1ARCHIV=$(LB)$/libbf_swlib.a
79 LIB1OBJFILES= \
80 $(SLO)$/sw_w4wflt.obj \
81 $(SLO)$/sw_swlib.obj \
82 $(SLO)$/sw_swcomlib.obj
84 SHL2TARGET= $(TARGET)$(DLLPOSTFIX)
85 SHL2VERSIONMAP= $(TARGET).map
86 SHL2IMPLIB= _$(TARGET)
87 SHL2LIBS= \
88 $(SLB)$/sw_core1.lib\
89 $(SLB)$/sw_core2.lib\
90 $(SLB)$/sw_filter.lib\
91 $(SLB)$/sw_ui.lib
93 .IF "$(OS)" != "MACOSX"
94 # static libraries
95 SHL2STDLIBS+= $(BFSCHLIB) $(BFSMLIB)
96 .ENDIF
98 # dynamic libraries
99 SHL2STDLIBS+= \
100 $(BFOFALIB) \
101 $(BFSVXLIB) \
102 $(LEGACYSMGRLIB) \
103 $(BFXMLOFFLIB) \
104 $(BFBASICLIB) \
105 $(BFGOODIESLIB) \
106 $(BFSVTOOLLIB) \
107 $(BFSO3LIB) \
108 $(TKLIB) \
109 $(VCLLIB) \
110 $(SOTLIB) \
111 $(UNOTOOLSLIB) \
112 $(TOOLSLIB) \
113 $(COMPHELPERLIB) \
114 $(UCBHELPERLIB) \
115 $(CPPUHELPERLIB) \
116 $(CPPULIB) \
117 $(SALLIB) \
118 $(ICUUCLIB)
121 .IF "$(OS)" == "MACOSX"
122 # static libraries
123 SHL2STDLIBS+= $(BFSCHLIB) $(BFSMLIB)
124 .ENDIF
126 .IF "$(GUI)"=="WNT"
127 SHL2STDLIBS+= $(ADVAPI32LIB)
128 .ENDIF # WNT
130 SHL2DEPN= \
131 $(SLB)$/sw_core1.lib\
132 $(SLB)$/sw_core2.lib\
133 $(SLB)$/sw_filter.lib\
134 $(SLB)$/sw_ui.lib
137 #SHL2OBJS= \
138 # $(OUT)$/slo$/sw_swmodule.obj \
139 # $(OUT)$/slo$/sw_swdll.obj
140 # $(SLO)$/sw_.obj ^ \ nicht vergessen!
143 SHL2DEF= $(MISC)$/$(SHL2TARGET).def
144 SHL2BASE= 0x1e000000
146 .INCLUDE : target.mk
148 $(MISCX)$/$(SHL2TARGET).flt:
149 @echo ------------------------------
150 @echo Making: $@
151 @echo WEP>$@
152 @echo LIBMAIN>>$@
153 @echo LibMain>>$@
155 # ------------------------------------------------------------------
156 # Windows NT
157 # ------------------------------------------------------------------
159 .IF "$(GUI)" == "WNT"
161 $(MISC)$/$(SHL2TARGET).def: makefile.mk
162 @echo ------------------------------
163 @echo Making: $@
164 @echo LIBRARY $(SHL2TARGET) >$@
165 .IF "$(COM)"!="GCC"
166 @echo DESCRIPTION 'SWriter4 DLL' >>$@
167 @echo DATA READ WRITE NONSHARED >>$@
168 .ENDIF
169 @echo EXPORTS >>$@
170 @echo CreateSwDocShellDll @20 >>$@
171 @echo CreateSwWebDocShellDll @30 >>$@
172 @echo CreateSwGlobalDocShellDll @40 >>$@
173 @echo CreateObjSwDocShellDll @21 >>$@
174 @echo CreateObjSwWebDocShellDll @22 >>$@
175 @echo CreateObjSwGlobalDocShellDll @23 >>$@
176 @echo InitSwDll @24 >>$@
177 @echo DeInitSwDll @25 >>$@
178 @echo component_getImplementationEnvironment @50 >>$@
179 @echo component_writeInfo @51 >>$@
180 @echo component_getFactory @52 >>$@
182 .ENDIF
185 # ------------------------------------------------------------------
186 # OS/2
187 # ------------------------------------------------------------------
189 .IF "$(GUI)" == "OS2"
191 $(MISC)$/$(SHL2TARGET).def: makefile.mk
192 @echo ------------------------------
193 @echo Making: $@
194 @echo LIBRARY $(SHL2TARGET8) INITINSTANCE TERMINSTANCE >$@
195 @echo DESCRIPTION 'SWriter4 DLL' >>$@
196 @echo DATA MULTIPLE >>$@
197 @echo EXPORTS >>$@
198 @echo _CreateSwDocShellDll >>$@
199 @echo _CreateSwWebDocShellDll >>$@
200 @echo _CreateSwGlobalDocShellDll >>$@
201 @echo _CreateObjSwDocShellDll >>$@
202 @echo _CreateObjSwWebDocShellDll >>$@
203 @echo _CreateObjSwGlobalDocShellDll >>$@
204 @echo _InitSwDll >>$@
205 @echo _DeInitSwDll >>$@
206 @echo _component_getImplementationEnvironment >>$@
207 @echo _component_writeInfo >>$@
208 @echo _component_getFactory >>$@
210 .ENDIF