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 #*************************************************************************
37 ENABLE_EXCEPTIONS
=TRUE
39 # --- Settings -----------------------------------------------------
41 .INCLUDE
: settings.mk
43 CFLAGS
+= $(LFS_CFLAGS
)
44 CXXFLAGS
+= $(LFS_CFLAGS
)
46 # BEGIN ----------------------------------------------------------------
47 # auto generated Target:Socket by codegen.pl
49 $(SLO
)$/osl_Socket.obj
51 SHL1TARGET
=osl_SocketOld
57 #SHL1STDLIBS+= $(SOLARLIBDIR)$/cppunit.lib
58 SHL1STDLIBS
+= $(WS2_32LIB
)
62 #SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a
63 SHL1STDLIBS
+= -ldl
-lnsl
66 SHL1IMPLIB
= i
$(SHL1TARGET
)
67 # SHL1DEF= $(MISC)$/$(SHL1TARGET).def
68 DEF1NAME
=$(SHL1TARGET
)
69 # DEF1EXPORTFILE= export.exp
70 SHL1VERSIONMAP
= $(PRJ
)$/qa
$/export.map
71 # auto generated Target:Socket
72 # END ------------------------------------------------------------------
74 # --- BEGIN --------------------------------------------------------
76 $(SLO
)$/osl_Socket_tests.obj
77 SHL2TARGET
= osl_Socket_tests
82 SHL2IMPLIB
= i
$(SHL2TARGET
)
83 DEF2NAME
= $(SHL2TARGET
)
84 SHL2VERSIONMAP
= $(PRJ
)$/qa
$/export.map
86 # END --------------------------------------------------------------
88 # BEGIN ----------------------------------------------------------------
89 # auto generated Target:Socket by codegen.pl
91 $(SLO
)$/sockethelper.obj \
92 $(SLO
)$/osl_StreamSocket.obj
94 SHL3TARGET
= osl_StreamSocket
100 SHL3STDLIBS
+= $(WS2_32LIB
)
103 .IF
"$(GUI)" == "UNX"
104 SHL3STDLIBS
+= -ldl
-lnsl
107 SHL3IMPLIB
= i
$(SHL3TARGET
)
108 DEF3NAME
= $(SHL3TARGET
)
109 SHL3VERSIONMAP
= $(PRJ
)$/qa
$/export.map
110 # auto generated Target:Socket
111 # END ------------------------------------------------------------------
113 # BEGIN ----------------------------------------------------------------
114 # auto generated Target:Socket by codegen.pl
116 $(SLO
)$/sockethelper.obj \
117 $(SLO
)$/osl_DatagramSocket.obj
119 SHL4TARGET
= osl_DatagramSocket
124 .IF
"$(GUI)" == "WNT"
125 SHL4STDLIBS
+= $(WS2_32LIB
)
128 .IF
"$(GUI)" == "UNX"
129 SHL4STDLIBS
+= -ldl
-lnsl
132 SHL4IMPLIB
= i
$(SHL4TARGET
)
133 DEF4NAME
= $(SHL4TARGET
)
134 SHL4VERSIONMAP
= $(PRJ
)$/qa
$/export.map
135 # auto generated Target:Socket
136 # END ------------------------------------------------------------------
138 # BEGIN ----------------------------------------------------------------
139 # auto generated Target:Socket by codegen.pl
141 $(SLO
)$/sockethelper.obj \
142 $(SLO
)$/osl_SocketAddr.obj
144 SHL5TARGET
= osl_SocketAddr
149 .IF
"$(GUI)" == "WNT"
150 SHL5STDLIBS
+= $(WS2_32LIB
)
153 .IF
"$(GUI)" == "UNX"
154 SHL5STDLIBS
+= -ldl
-lnsl
157 SHL5IMPLIB
= i
$(SHL5TARGET
)
158 DEF5NAME
= $(SHL5TARGET
)
159 SHL5VERSIONMAP
= $(PRJ
)$/qa
$/export.map
160 # auto generated Target:Socket
161 # END ------------------------------------------------------------------
163 # BEGIN ----------------------------------------------------------------
164 # auto generated Target:Socket by codegen.pl
166 $(SLO
)$/sockethelper.obj \
167 $(SLO
)$/osl_Socket2.obj
169 SHL6TARGET
= osl_Socket2
174 .IF
"$(GUI)" == "WNT"
175 SHL6STDLIBS
+= $(WS2_32LIB
)
178 .IF
"$(GUI)" == "UNX"
179 SHL6STDLIBS
+= -ldl
-lnsl
182 SHL6IMPLIB
= i
$(SHL6TARGET
)
183 DEF6NAME
= $(SHL6TARGET
)
184 SHL6VERSIONMAP
= $(PRJ
)$/qa
$/export.map
185 # auto generated Target:Socket
186 # END ------------------------------------------------------------------
188 # BEGIN ----------------------------------------------------------------
189 # auto generated Target:Socket by codegen.pl
191 $(SLO
)$/sockethelper.obj \
192 $(SLO
)$/osl_ConnectorSocket.obj
194 SHL7TARGET
= osl_ConnectorSocket
199 .IF
"$(GUI)" == "WNT"
200 SHL7STDLIBS
+= $(WS2_32LIB
)
203 .IF
"$(GUI)" == "UNX"
204 SHL7STDLIBS
+= -ldl
-lnsl
207 SHL7IMPLIB
= i
$(SHL7TARGET
)
208 DEF7NAME
= $(SHL7TARGET
)
209 SHL7VERSIONMAP
= $(PRJ
)$/qa
$/export.map
210 # auto generated Target:Socket
211 # END ------------------------------------------------------------------
213 # BEGIN ----------------------------------------------------------------
214 # auto generated Target:Socket by codegen.pl
216 $(SLO
)$/sockethelper.obj \
217 $(SLO
)$/osl_AcceptorSocket.obj
219 SHL8TARGET
= osl_AcceptorSocket
224 .IF
"$(GUI)" == "WNT"
225 SHL8STDLIBS
+= $(WS2_32LIB
)
228 .IF
"$(GUI)" == "UNX"
229 SHL8STDLIBS
+= -ldl
-lnsl
232 SHL8IMPLIB
= i
$(SHL8TARGET
)
233 DEF8NAME
= $(SHL8TARGET
)
234 SHL8VERSIONMAP
= $(PRJ
)$/qa
$/export.map
235 # auto generated Target:Socket
236 # END ------------------------------------------------------------------
238 #------------------------------- All object files -------------------------------
239 # do this here, so we get right dependencies
240 # SLOFILES=$(SHL1OBJS) $(SHL2OBJS)
242 # --- Targets ------------------------------------------------------
245 .INCLUDE
: _cppunit.mk