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_sd
47 LINKFLAGS
+=/PACKCODE
:65500 /SEG
:16000 /NOE
/NOD
/MAP
52 LINKFLAGS
+=/SEGMENTS
:512 /PACKD
:32768
55 # --- Resourcen ----------------------------------------------------
59 $(SRS
)$/sd_app.srs
$(SRS
)$/sd_core.srs
63 SHL1TARGET
= bf_sd
$(DLLPOSTFIX
)
64 SHL1VERSIONMAP
= bf_sd.map
68 SHL1STDLIBS
= $(BFSCHLIB
) $(BFSCLIB
) $(BFSMLIB
)
88 SHL1LIBS
= $(LIB3TARGET
)
91 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
92 .IF
"$(GUI)" == "WNT" ||
"$(GUI)" == "WIN"
96 # --- Linken der Applikation ---------------------------------------
98 LIB2TARGET
=$(SLB
)$/sd_sdmod.lib
102 LIB3TARGET
=$(SLB
)$/sd_sdraw3.lib
104 $(SLB
)$/sd_view.lib \
106 $(SLB
)$/sd_docshell.lib \
107 $(SLB
)$/sd_core.lib \
110 $(SLB
)$/sd_filter.lib \
111 $(SLB
)$/sd_unoidl.lib
113 LIB4TARGET
=$(LB
)$/bf_sdlib.lib
114 LIB4ARCHIV
=$(LB
)$/libbf_sdlib.a
115 LIB4OBJFILES
=$(SLO
)$/sd_sdlib.obj \
116 $(SLO
)$/sd_sdresid.obj
118 # --- Targets -------------------------------------------------------------
122 .IF
"$(depend)" == ""
124 .IF
"$(GUI)" == "WNT"
126 $(MISC
)$/$(SHL1TARGET
).def
:
127 @echo
------------------------------
129 @echo LIBRARY
$(SHL1TARGET
) >$@
131 @echo DESCRIPTION
'SDRAW3 DLL' >>$@
132 @echo DATA READ WRITE NONSHARED
>>$@
135 @echo CreateSdDrawDocShellDll @
20 >>$@
136 @echo CreateSdGraphicDocShellDll @
21 >>$@
137 @echo CreateObjSdDrawDocShellDll @
22 >>$@
138 @echo CreateObjSdGraphicDocShellDll @
23 >>$@
139 @echo InitSdDll @
24 >>$@
140 @echo DeInitSdDll @
25 >>$@
141 @echo component_getImplementationEnvironment
>>$@
142 @echo component_writeInfo
>>$@
143 @echo component_getFactory
>>$@
146 .IF
"$(GUI)" == "OS2"
148 $(MISC
)$/$(SHL1TARGET
).def
:
149 @echo
------------------------------
151 @echo LIBRARY
$(SHL1TARGET8
) INITINSTANCE TERMINSTANCE
>$@
152 @echo DESCRIPTION
'SDRAW3 DLL' >>$@
153 @echo DATA MULTIPLE
>>$@
155 @echo _CreateSdDrawDocShellDll
>>$@
156 @echo _CreateSdGraphicDocShellDll
>>$@
157 @echo _CreateObjSdDrawDocShellDll
>>$@
158 @echo _CreateObjSdGraphicDocShellDll
>>$@
159 @echo _InitSdDll
>>$@
160 @echo _DeInitSdDll
>>$@
161 @echo _component_getImplementationEnvironment
>>$@
162 @echo _component_writeInfo
>>$@
163 @echo _component_getFactory
>>$@
168 $(MISCX
)$/$(SHL1TARGET
).flt
:
169 @echo
------------------------------