1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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
47 # --- Settings ------------------------------------------------------------
49 .INCLUDE
: settings.mk
50 INC
+= -I
$(PRJ
)$/inc
$/bf_sw
57 # --- Allgemein -----------------------------------------------------------
59 LINKFLAGS
+=-Wl
,-LD_LAYOUT
:lgot_buffer
=40
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 \
70 $(SRS
)$/sw_shells.srs \
71 $(SRS
)$/sw_utlui.srs \
77 LIB1TARGET
=$(LB
)$/bf_swlib.lib
78 LIB1ARCHIV
=$(LB
)$/libbf_swlib.a
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
)
90 $(SLB
)$/sw_filter.lib\
93 .IF
"$(OS)" != "MACOSX"
95 SHL2STDLIBS
+= $(BFSCHLIB
) $(BFSMLIB
)
121 .IF
"$(OS)" == "MACOSX"
123 SHL2STDLIBS
+= $(BFSCHLIB
) $(BFSMLIB
)
127 SHL2STDLIBS
+= $(ADVAPI32LIB
)
131 $(SLB
)$/sw_core1.lib\
132 $(SLB
)$/sw_core2.lib\
133 $(SLB
)$/sw_filter.lib\
138 # $(OUT)$/slo$/sw_swmodule.obj \
139 # $(OUT)$/slo$/sw_swdll.obj
140 # $(SLO)$/sw_.obj ^ \ nicht vergessen!
143 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
148 $(MISCX
)$/$(SHL2TARGET
).flt
:
149 @echo
------------------------------
155 # ------------------------------------------------------------------
157 # ------------------------------------------------------------------
159 .IF
"$(GUI)" == "WNT"
161 $(MISC
)$/$(SHL2TARGET
).def
: makefile.mk
162 @echo
------------------------------
164 @echo LIBRARY
$(SHL2TARGET
) >$@
166 @echo DESCRIPTION
'SWriter4 DLL' >>$@
167 @echo DATA READ WRITE NONSHARED
>>$@
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 >>$@
185 # ------------------------------------------------------------------
187 # ------------------------------------------------------------------
189 .IF
"$(GUI)" == "OS2"
191 $(MISC
)$/$(SHL2TARGET
).def
: makefile.mk
192 @echo
------------------------------
194 @echo LIBRARY
$(SHL2TARGET8
) INITINSTANCE TERMINSTANCE
>$@
195 @echo DESCRIPTION
'SWriter4 DLL' >>$@
196 @echo DATA MULTIPLE
>>$@
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
>>$@