Print this page
9704 move socket functions to libc
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libsocket/Makefile.com
+++ new/usr/src/lib/libsocket/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 LIBRARY = libsocket.a
27 27 VERS = .1
28 28
29 -INETOBJS = bindresvport.o bootparams_getbyname.o ether_addr.o \
29 +OBJECTS = bindresvport.o bootparams_getbyname.o ether_addr.o \
30 30 getaddrinfo.o getnameinfo.o getnetent.o getnetent_r.o \
31 31 getprotoent.o getprotoent_r.o getservbyname_r.o getservent.o \
32 32 getservent_r.o inet6_opt.o inet6_rthdr.o interface_id.o \
33 33 link_addr.o netmasks.o rcmd.o rexec.o ruserpass.o \
34 34 sourcefilter.o getifaddrs.o
35 -SOCKOBJS = _soutil.o sockatmark.o socket.o socketpair.o weaks.o
36 -OBJECTS = $(INETOBJS) $(SOCKOBJS)
37 35
38 36 include ../../Makefile.lib
39 37
40 38 # install this library in the root filesystem
41 39 include ../../Makefile.rootfs
42 40
43 41 LIBS = $(DYNLIB) $(LINTLIB)
44 42
45 -SRCS = $(INETOBJS:%.o=../inet/%.c) $(SOCKOBJS:%.o=../socket/%.c)
43 +SRCS = $(OBJECTS:%.o=../inet/%.c)
46 44 LDLIBS += -lnsl -lc
47 45
48 46 SRCDIR = ../common
49 47 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
50 48
51 49 # Make string literals read-only to save memory.
52 50 CFLAGS += $(XSTRCONST)
53 51 CFLAGS64 += $(XSTRCONST)
54 52
55 53 CPPFLAGS += -DSYSV -D_REENTRANT -I../../common/inc
56 54 %/rcmd.o := CPPFLAGS += -DNIS
57 55
58 56 CERRWARN += -_gcc=-Wno-type-limits
59 57 CERRWARN += -_gcc=-Wno-uninitialized
60 58 CERRWARN += -_gcc=-Wno-unused-variable
61 59 CERRWARN += -_gcc=-Wno-parentheses
62 60
63 61 .KEEP_STATE:
64 62
65 63 all:
66 64
67 65 lint: lintcheck
68 66
69 67 # libsocket build rules
70 68 pics/%.o: ../inet/%.c
71 69 $(COMPILE.c) -o $@ $<
72 70 $(POST_PROCESS_O)
73 71
74 72 pics/%.o: ../socket/%.c
75 73 $(COMPILE.c) -o $@ $<
76 74 $(POST_PROCESS_O)
77 75
78 76 include ../../Makefile.targ
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX