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
41 # --- Settings -----------------------------------------------------------
43 .INCLUDE
: settings.mk
44 INC
+= -I
$(PRJ
)$/inc
$/bf_sc
45 IENV
!:=$(IENV
);..
$/res
48 LINKFLAGS
+=-Wl
,-LD_LAYOUT
:lgot_buffer
=30
51 # --- Resourcen ----------------------------------------------------
55 $(SRS
)$/sc_dbgui.srs \
64 SHL1TARGET
= bf_sc
$(DLLPOSTFIX
)
65 SHL1VERSIONMAP
= bf_sc.map
68 .IF
"$(OS)" != "MACOSX"
70 SHL1STDLIBS
+= $(BFSCHLIB
)
94 .IF
"$(OS)" == "MACOSX"
95 # static libraries must come at the end of list on MacOSX
96 SHL1STDLIBS
+= $(BFSCHLIB
)
100 SHL1LIBS
= $(LIB3TARGET
) $(LIB4TARGET
)
103 .IF
"$(GUI)$(COM)" != "WNTGCC"
104 SHL1OBJS
= $(SLO
)$/sc_scdll.obj
109 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
115 # --- Linken der Applikation ---------------------------------------
117 LIB2TARGET
=$(SLB
)$/scmod.lib
121 LIB3TARGET
=$(SLB
)$/scalc3.lib
125 $(SLB
)$/sc_docshell.lib \
126 $(SLB
)$/sc_view.lib \
130 $(SLB
)$/sc_unoobj.lib
132 LIB4TARGET
=$(SLB
)$/scalc3c.lib
135 $(SLB
)$/sc_data.lib \
136 $(SLB
)$/sc_tool.lib \
139 LIB5TARGET
=$(LB
)$/bf_sclib.lib
140 LIB5ARCHIV
=$(LB
)$/libbf_sclib.a
142 LIB5OBJFILES
=$(SLO
)$/sc_sclib.obj
144 # --- Targets -------------------------------------------------------------
151 .IF
"$(GUI)" == "WNT"
153 $(MISC
)$/$(SHL1TARGET
).def
: makefile.mk
154 @echo
------------------------------
156 @echo LIBRARY
$(SHL1TARGET
) >$@
158 @echo DESCRIPTION
'SCALC3 DLL' >>$@
159 @echo DATA READ WRITE NONSHARED
>>$@
162 @echo CreateScDocShellDll @
20 >>$@
163 @echo CreateObjScDocShellDll @
21 >>$@
164 @echo InitScDll @
22 >>$@
165 @echo DeInitScDll @
23 >>$@
166 @echo component_getImplementationEnvironment @
24 >>$@
167 @echo component_writeInfo @
25 >>$@
168 @echo component_getFactory @
26 >>$@
170 .IF
"$(OPTLINKS)" == "YES"
171 echo RC
$(RCFLAGS
) $(RES
)$/scappi.res
>>$@
174 .IF
"$(GUI)" == "OS2"
176 $(MISC
)$/$(SHL1TARGET
).def
: makefile.mk
177 @echo
------------------------------
179 @echo LIBRARY
$(SHL1TARGET8
) INITINSTANCE TERMINSTANCE
>$@
180 @echo DESCRIPTION
'SCALC3 DLL' >>$@
181 @echo DATA MULTIPLE
>>$@
183 @echo _CreateScDocShellDll
>>$@
184 @echo _CreateObjScDocShellDll
>>$@
185 @echo _InitScDll
>>$@
186 @echo _DeInitScDll
>>$@
187 @echo _component_getImplementationEnvironment
>>$@
188 @echo _component_writeInfo
>>$@
189 @echo _component_getFactory
>>$@