xref: /aoo42x/main/sal/qa/osl/socket/makefile.mk (revision 63d99982)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..$/..
25
26PRJNAME=sal
27TARGET=qa_osl_socket
28
29ENABLE_EXCEPTIONS=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  settings.mk
34
35.IF "$(ENABLE_UNIT_TESTS)" != "YES"
36all:
37	@echo unit tests are disabled. Nothing to do.
38
39.ELSE
40
41CFLAGS+= $(LFS_CFLAGS)
42CXXFLAGS+= $(LFS_CFLAGS)
43
44# BEGIN ----------------------------------------------------------------
45# auto generated Target:Socket by codegen.pl
46APP1OBJS=  \
47	$(SLO)$/osl_Socket.obj
48
49APP1TARGET=osl_SocketOld
50APP1STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
51
52.IF "$(GUI)" == "WNT"
53APP1STDLIBS+= $(WS2_32LIB)
54.ENDIF
55
56.IF ""$(OS)"=="SOLARIS"
57APP1STDLIBS+= -ldl -lnsl
58.ENDIF
59
60APP1RPATH = NONE
61APP1TEST = enabled
62# auto generated Target:Socket
63# END ------------------------------------------------------------------
64
65# --- BEGIN --------------------------------------------------------
66APP2OBJS=  \
67	$(SLO)$/osl_Socket_tests.obj
68APP2TARGET= osl_Socket_tests
69APP2STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
70APP2RPATH = NONE
71APP2TEST = enabled
72# END --------------------------------------------------------------
73
74# BEGIN ----------------------------------------------------------------
75# auto generated Target:Socket by codegen.pl
76APP3OBJS=  \
77	$(SLO)$/sockethelper.obj \
78	$(SLO)$/osl_StreamSocket.obj
79
80APP3TARGET= osl_StreamSocket
81APP3STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
82
83.IF "$(GUI)" == "WNT"
84APP3STDLIBS += $(WS2_32LIB)
85.ENDIF
86
87.IF "$(OS)"=="SOLARIS"
88APP3STDLIBS += -ldl -lnsl
89.ENDIF
90
91APP3RPATH = NONE
92APP3TEST = enabled
93# auto generated Target:Socket
94# END ------------------------------------------------------------------
95
96# BEGIN ----------------------------------------------------------------
97# auto generated Target:Socket by codegen.pl
98APP4OBJS=  \
99	$(SLO)$/sockethelper.obj \
100	$(SLO)$/osl_DatagramSocket.obj
101
102APP4TARGET= osl_DatagramSocket
103APP4STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
104
105.IF "$(GUI)" == "WNT"
106APP4STDLIBS += $(WS2_32LIB)
107.ENDIF
108
109.IF "$(OS)"=="SOLARIS"
110APP4STDLIBS += -ldl -lnsl
111.ENDIF
112
113APP4RPATH = NONE
114APP4TEST = enabled
115# auto generated Target:Socket
116# END ------------------------------------------------------------------
117
118# BEGIN ----------------------------------------------------------------
119# auto generated Target:Socket by codegen.pl
120APP5OBJS=  \
121	$(SLO)$/sockethelper.obj \
122	$(SLO)$/osl_SocketAddr.obj
123
124APP5TARGET= osl_SocketAddr
125APP5STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
126
127.IF "$(GUI)" == "WNT"
128APP5STDLIBS += $(WS2_32LIB)
129.ENDIF
130
131.IF "$(OS)"=="SOLARIS"
132APP5STDLIBS += -ldl -lnsl
133.ENDIF
134
135APP5RPATH = NONE
136APP5TEST = enabled
137# auto generated Target:Socket
138# END ------------------------------------------------------------------
139
140# BEGIN ----------------------------------------------------------------
141# auto generated Target:Socket by codegen.pl
142APP6OBJS=  \
143	$(SLO)$/sockethelper.obj \
144	$(SLO)$/osl_Socket2.obj
145
146APP6TARGET= osl_Socket2
147APP6STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
148
149.IF "$(GUI)" == "WNT"
150APP6STDLIBS += $(WS2_32LIB)
151.ENDIF
152
153.IF "$(OS)"=="SOLARIS"
154APP6STDLIBS += -ldl -lnsl
155.ENDIF
156
157APP6RPATH = NONE
158APP6TEST = enabled
159# auto generated Target:Socket
160# END ------------------------------------------------------------------
161
162# BEGIN ----------------------------------------------------------------
163# auto generated Target:Socket by codegen.pl
164APP7OBJS=  \
165	$(SLO)$/sockethelper.obj \
166	$(SLO)$/osl_ConnectorSocket.obj
167
168APP7TARGET= osl_ConnectorSocket
169APP7STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
170
171.IF "$(GUI)" == "WNT"
172APP7STDLIBS += $(WS2_32LIB)
173.ENDIF
174
175.IF "$(OS)"=="SOLARIS"
176APP7STDLIBS += -ldl -lnsl
177.ENDIF
178
179APP7RPATH = NONE
180APP7TEST = enabled
181# auto generated Target:Socket
182# END ------------------------------------------------------------------
183
184# BEGIN ----------------------------------------------------------------
185# auto generated Target:Socket by codegen.pl
186APP8OBJS=  \
187	$(SLO)$/sockethelper.obj \
188	$(SLO)$/osl_AcceptorSocket.obj
189
190APP8TARGET= osl_AcceptorSocket
191APP8STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
192
193.IF "$(GUI)" == "WNT"
194APP8STDLIBS += $(WS2_32LIB)
195.ENDIF
196
197.IF "$(OS)"=="SOLARIS"
198APP8STDLIBS += -ldl -lnsl
199.ENDIF
200
201APP8PATH = NONE
202APP8TEST = enabled
203# auto generated Target:Socket
204# END ------------------------------------------------------------------
205
206#------------------------------- All object files -------------------------------
207# do this here, so we get right dependencies
208# SLOFILES=$(SHL1OBJS) $(SHL2OBJS)
209
210# --- Targets ------------------------------------------------------
211
212.INCLUDE :  target.mk
213
214.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"