Update ooo320-m1
[ooovba.git] / binfilter / bf_sc / util / makefile.mk
blob2f5da43ecdb6a76663aa2384d57e238d38767d30
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.24 $
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
33 PRJ=..$/..
34 BFPRJ=..
36 PRJNAME=binfilter
37 TARGET=scalc3
39 NO_HIDS=TRUE
41 # --- Settings -----------------------------------------------------------
43 .INCLUDE : settings.mk
44 INC+= -I$(PRJ)$/inc$/bf_sc
45 IENV!:=$(IENV);..$/res
47 .IF "$(OS)"=="IRIX"
48 LINKFLAGS+=-Wl,-LD_LAYOUT:lgot_buffer=30
49 .ENDIF
51 # --- Resourcen ----------------------------------------------------
53 RESLIB1LIST=\
54 $(SRS)$/sc_ui.srs \
55 $(SRS)$/sc_dbgui.srs \
56 $(SRS)$/sc_core.srs \
58 RESLIB1NAME=bf_sc
59 RESLIB1SRSFILES=\
60 $(RESLIB1LIST)
62 # --- StarClac DLL
64 SHL1TARGET= bf_sc$(DLLPOSTFIX)
65 SHL1VERSIONMAP= bf_sc.map
66 SHL1IMPLIB= bf_sci
68 .IF "$(OS)" != "MACOSX"
69 # static libraries
70 SHL1STDLIBS+= $(BFSCHLIB)
71 .ENDIF
73 # dynamic libraries
74 SHL1STDLIBS+= \
75 $(BFBASICLIB) \
76 $(LEGACYSMGRLIB) \
77 $(BFSO3LIB) \
78 $(BFSVTOOLLIB) \
79 $(BFSVXLIB) \
80 $(BFOFALIB) \
81 $(VCLLIB) \
82 $(CPPULIB) \
83 $(CPPUHELPERLIB) \
84 $(COMPHELPERLIB) \
85 $(UCBHELPERLIB) \
86 $(VOSLIB) \
87 $(SALLIB) \
88 $(TOOLSLIB) \
89 $(I18NISOLANGLIB) \
90 $(UNOTOOLSLIB) \
91 $(SOTLIB) \
92 $(BFXMLOFFLIB)
94 .IF "$(OS)" == "MACOSX"
95 # static libraries must come at the end of list on MacOSX
96 SHL1STDLIBS+= $(BFSCHLIB)
97 .ENDIF
100 SHL1LIBS= $(LIB3TARGET) $(LIB4TARGET)
102 .IF "$(GUI)"!="UNX"
103 .IF "$(GUI)$(COM)" != "WNTGCC"
104 SHL1OBJS= $(SLO)$/sc_scdll.obj
105 .ENDIF
106 .ENDIF
109 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
111 .IF "$(GUI)"=="WNT"
112 SHL1RES= $(RCTARGET)
113 .ENDIF
115 # --- Linken der Applikation ---------------------------------------
117 LIB2TARGET=$(SLB)$/scmod.lib
118 LIB2OBJFILES= \
119 $(SLO)$/sc_scmod.obj
121 LIB3TARGET=$(SLB)$/scalc3.lib
123 LIB3FILES= \
124 $(SLB)$/sc_app.lib \
125 $(SLB)$/sc_docshell.lib \
126 $(SLB)$/sc_view.lib \
127 $(SLB)$/sc_dbgui.lib
129 LIB3FILES+= \
130 $(SLB)$/sc_unoobj.lib
132 LIB4TARGET=$(SLB)$/scalc3c.lib
134 LIB4FILES= \
135 $(SLB)$/sc_data.lib \
136 $(SLB)$/sc_tool.lib \
137 $(SLB)$/sc_xml.lib
139 LIB5TARGET=$(LB)$/bf_sclib.lib
140 LIB5ARCHIV=$(LB)$/libbf_sclib.a
142 LIB5OBJFILES=$(SLO)$/sc_sclib.obj
144 # --- Targets -------------------------------------------------------------
146 .INCLUDE : target.mk
148 ALLTAR: \
149 $(MISC)$/linkinc.ls
151 .IF "$(GUI)" == "WNT"
153 $(MISC)$/$(SHL1TARGET).def: makefile.mk
154 @echo ------------------------------
155 @echo Making: $@
156 @echo LIBRARY $(SHL1TARGET) >$@
157 .IF "$(COM)"!="GCC"
158 @echo DESCRIPTION 'SCALC3 DLL' >>$@
159 @echo DATA READ WRITE NONSHARED >>$@
160 .ENDIF
161 @echo EXPORTS >>$@
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 >>$@
169 .ENDIF
170 .IF "$(OPTLINKS)" == "YES"
171 echo RC $(RCFLAGS) $(RES)$/scappi.res >>$@
172 .ENDIF
174 .IF "$(GUI)" == "OS2"
176 $(MISC)$/$(SHL1TARGET).def: makefile.mk
177 @echo ------------------------------
178 @echo Making: $@
179 @echo LIBRARY $(SHL1TARGET8) INITINSTANCE TERMINSTANCE >$@
180 @echo DESCRIPTION 'SCALC3 DLL' >>$@
181 @echo DATA MULTIPLE >>$@
182 @echo EXPORTS >>$@
183 @echo _CreateScDocShellDll >>$@
184 @echo _CreateObjScDocShellDll >>$@
185 @echo _InitScDll >>$@
186 @echo _DeInitScDll >>$@
187 @echo _component_getImplementationEnvironment >>$@
188 @echo _component_writeInfo >>$@
189 @echo _component_getFactory >>$@
190 .ENDIF