Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/lib/libresolv2/Makefile.com
+++ new/usr/src/lib/libresolv2/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.
|
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
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 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 -# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22 +# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # ident "%Z%%M% %I% %E% SMI"
26 26 #
27 27
28 28 LIBRARY= libresolv.a
29 29 VERS= .2
30 30
31 31 BSDOBJS= daemon.o putenv.o strcasecmp.o strsep.o \
32 32 ftruncate.o readv.o strdup.o strtoul.o \
33 33 gettimeofday.o setenv.o strerror.o utimes.o \
34 34 mktemp.o setitimer.o strpbrk.o writev.o
35 35
36 -DSTOBJS= dst_api.o prandom.o support.o
36 +DSTOBJS= dst_api.o support.o hmac_link.o
37 37
38 -DSTLINKOBJS= bsafe_link.o cylink_link.o eay_dss_link.o hmac_link.o \
39 - rsaref_link.o
38 +# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with
39 +# libnsl
40 +INETOBJS= inet_net_pton.o inet_neta.o inet_lnaof.o \
41 + inet_netof.o nsap_addr.o inet_makeaddr.o \
42 + inet_network.o inet_net_ntop.o inet_cidr_ntop.o \
43 + inet_cidr_pton.o inet_data.o
40 44
41 -INETOBJS= inet_net_pton.o inet_ntop.o \
42 - inet_neta.o inet_pton.o inet_lnaof.o inet_netof.o \
43 - nsap_addr.o inet_makeaddr.o inet_network.o \
44 - inet_net_ntop.o inet_ntoa.o inet_cidr_ntop.o \
45 - inet_cidr_pton.o inet_data.o
45 +# build only the IRS objects that the ISC libbind's make would
46 +IRSTHROBJS= gethostent_r.o getnetent_r.o getnetgrent_r.o \
47 + getprotoent_r.o getservent_r.o
48 +IRSOBJS= ${IRSTHROBJS} \
49 + dns.o dns_ho.o dns_nw.o dns_pr.o \
50 + dns_sv.o gai_strerror.o gen.o gen_ho.o \
51 + gen_ng.o gen_nw.o gen_pr.o gen_sv.o \
52 + getaddrinfo.o gethostent.o getnameinfo.o getnetent.o \
53 + getnetgrent.o getprotoent.o getservent.o hesiod.o \
54 + irp.o irp_ho.o irp_ng.o irp_nw.o \
55 + irp_pr.o irp_sv.o irpmarshall.o irs_data.o \
56 + lcl.o lcl_ho.o lcl_ng.o lcl_nw.o \
57 + lcl_pr.o lcl_sv.o nis.o nul_ng.o \
58 + util.o
46 59
47 -IRSOBJS= dns.o gen_ho.o getnetgrent.o lcl_ng.o \
48 - nis_nw.o dns_gr.o gen_ng.o getprotoent.o \
49 - lcl_nw.o nis_pr.o dns_ho.o gen_nw.o \
50 - getpwent.o lcl_pr.o nis_pw.o dns_nw.o \
51 - gen_pr.o getservent.o lcl_pw.o nis_sv.o \
52 - dns_pr.o gen_pw.o hesiod.o lcl_sv.o \
53 - nul_ng.o dns_pw.o gen_sv.o irs_data.o \
54 - nis.o util.o dns_sv.o getgrent.o \
55 - lcl.o nis_gr.o gen.o gethostent.o \
56 - lcl_gr.o nis_ho.o gen_gr.o getnetent.o \
57 - lcl_ho.o nis_ng.o getpwent_r.o \
58 - getservent_r.o gai_strerror.o getgrent_r.o \
59 - gethostent_r.o getnetent_r.o getnetgrent_r.o \
60 - getprotoent_r.o getnameinfo.o irp.o irpmarshall.o \
61 - irp_ho.o irp_nw.o irp_pr.o irp_sv.o \
62 - irp_gr.o irp_ng.o irp_pw.o
60 +ISCOBJS= assertions.o base64.o bitncmp.o ctl_clnt.o \
61 + ctl_p.o ctl_srvr.o ev_connects.o ev_files.o \
62 + ev_streams.o ev_timers.o ev_waits.o eventlib.o \
63 + heap.o hex.o logging.o memcluster.o \
64 + movefile.o tree.o
63 65
64 -IRSRESOBJS= dns.o gen_ho.o lcl_ng.o dns_gr.o \
65 - gen_ng.o lcl_nw.o dns_ho.o gen_nw.o \
66 - lcl_pr.o dns_nw.o gen_pr.o lcl_pw.o \
67 - dns_pr.o gen_pw.o hesiod.o lcl_sv.o \
68 - nul_ng.o dns_pw.o gen_sv.o irs_data.o \
69 - util.o dns_sv.o lcl.o gen.o \
70 - gethostent.o lcl_gr.o gen_gr.o lcl_ho.o \
71 - gethostent_r.o getaddrinfo.o
66 +NAMESEROBJS= ns_date.o ns_name.o ns_netint.o ns_parse.o \
67 + ns_print.o ns_samedomain.o ns_sign.o ns_ttl.o \
68 + ns_verify.o ns_rdata.o ns_newmsg.o
72 69
73 -IRSDYNOBJS= nis_nw.o nis_pr.o nis_pw.o nis_sv.o \
74 - nis.o nis_gr.o nis_ho.o nis_ng.o \
75 - irp.o irpmarshall.o irp_ho.o irp_nw.o \
76 - irp_pr.o irp_sv.o irp_gr.o irp_ng.o \
77 - irp_pw.o getnetent.o getpwent_r.o getgrent_r.o \
78 - getservent_r.o getnetent_r.o getnetgrent_r.o getgrent.o \
79 - getnetgrent.o getprotoent.o getpwent.o getservent.o \
80 - getprotoent_r.o getnameinfo.o gai_strerror.o
70 +RESOLVOBJS= herror.o mtctxres.o res_comp.o res_data.o \
71 + res_debug.o res_findzonecut.o res_init.o \
72 + res_mkquery.o res_mkupdate.o res_query.o res_send.o \
73 + res_sendsigned.o res_update.o
81 74
82 -ISCOBJS= base64.o ev_files.o ev_waits.o logging.o \
83 - bitncmp.o ev_streams.o eventlib.o tree.o \
84 - ev_connects.o ev_timers.o heap.o assertions.o \
85 - memcluster.o ctl_p.o ctl_clnt.o ctl_srvr.o \
86 - hex.o
75 +SUNWOBJS= sunw_mtctxres.o sunw_updrec.o sunw_wrappers.o
87 76
88 -NAMESEROBJS= ns_name.o ns_netint.o ns_parse.o ns_print.o \
89 - ns_ttl.o ns_sign.o ns_verify.o ns_date.o \
90 - ns_samedomain.o
91 -
92 -RESOLVOBJS= herror.o res_debug.o res_data.o res_comp.o \
93 - res_init.o res_mkquery.o res_mkupdate.o res_query.o \
94 - res_send.o res_update.o res_sendsigned.o \
95 - res_findzonecut.o
96 -
97 -SUNWOBJS= sunw_mtctxres.o sunw_dst_init.o sunw_irs_init.o sunw_updrec.o
98 -
99 -OBJECTS= $(BSDOBJS) $(DSTOBJS) $(INETOBJS) $(IRSRESOBJS) $(ISCOBJS) \
77 +OBJECTS= $(BSDOBJS) $(DSTOBJS) $(INETOBJS) $(IRSOBJS) $(ISCOBJS) \
100 78 $(NAMESEROBJS) $(RESOLVOBJS) $(SUNWOBJS)
101 79
102 80 # include library definitions
103 81 include ../../Makefile.lib
104 82
105 83 # install this library in the root filesystem
106 84 include ../../Makefile.rootfs
107 85
86 +# CC -v complains about things we aren't going to change in the ISC code
87 +CCVERBOSE=
88 +
108 89 SRCDIR = ../common
109 90 SRCS= $(BSDOBJS:%.o=../common/bsd/%.c) \
110 91 $(DSTOBJS:%.o=../common/dst/%.c) \
111 92 $(INETOBJS:%.o=../common/inet/%.c) \
112 - $(IRSRESOBJS:%.o=../common/irs/%.c) \
93 + $(IRSOBJS:%.o=../common/irs/%.c) \
113 94 $(ISCOBJS:%.o=../common/isc/%.c) \
114 95 $(NAMESEROBJS:%.o=../common/nameser/%.c) \
115 96 $(RESOLVOBJS:%.o=../common/resolv/%.c) \
116 97 $(SUNWOBJS:%.o=../common/sunw/%.c)
117 98
118 99 LIBS = $(DYNLIB) $(LINTLIB)
119 100
120 101 $(LINTLIB):= SRCS = ../common/llib-lresolv
121 102
122 103 # Local Libresolv definitions
123 -SOLCOMPAT = -Dgethostbyname=res_gethostbyname \
124 - -Dgethostbyaddr=res_gethostbyaddr -Dgetnetbyname=res_getnetbyname \
125 - -Dgethostbyname2=res_gethostbyname2\
126 - -Dgetnetbyaddr=res_getnetbyaddr -Dsethostent=res_sethostent \
127 - -Dendhostent=res_endhostent -Dgethostent=res_gethostent \
128 - -Dsetnetent=res_setnetent -Dendnetent=res_endnetent \
129 - -Dgetnetent=res_getnetent -Dsocket=_socket \
130 - -Dgetipnodebyname=res_getipnodebyname \
131 - -Dgetipnodebyaddr=res_getipnodebyaddr \
132 - -Dfreehostent=res_freehostent \
133 - -Dgetaddrinfo=res_getaddrinfo \
134 - -Dfreeaddrinfo=res_freeaddrinfo
135 104
136 -CRYPTFLAGS= -DCYLINK_DSS -DHMAC_MD5 -DUSE_MD5 -DDNSSAFE
105 +SOLCOMPAT = -Dsocket=_socket
106 +CRYPTFLAGS= -DHMAC_MD5 -DUSE_MD5
137 107
138 108 LOCFLAGS += $(CRYPTFLAGS)
139 109 LOCFLAGS += -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \
140 110 $(SOLCOMPAT) -I../include -I../../common/inc
141 111
142 112 CPPFLAGS += $(LOCFLAGS)
143 113 DYNFLAGS += $(ZNODELETE)
144 -LDLIBS += -lsocket -lnsl -lc
145 114
115 +LDLIBS += -lsocket -lnsl -lc -lmd
116 +
146 117 .KEEP_STATE:
147 118
148 119 all: $(LIBS)
149 120
150 121 lint: lintcheck
151 122
152 123 # include library targets
153 124 include ../../Makefile.targ
154 125
155 126 pics/%.o: ../common/bsd/%.c
156 127 $(COMPILE.c) -o $@ $<
157 128 $(POST_PROCESS_O)
158 129
159 130 pics/%.o: ../common/dst/%.c
160 131 $(COMPILE.c) -o $@ $<
161 132 $(POST_PROCESS_O)
162 133
163 134 pics/%.o: ../common/inet/%.c
164 135 $(COMPILE.c) -o $@ $<
165 136 $(POST_PROCESS_O)
166 137
167 138 pics/%.o: ../common/irs/%.c
168 139 $(COMPILE.c) -o $@ $<
169 140 $(POST_PROCESS_O)
170 141
171 142 pics/%.o: ../common/isc/%.c
172 143 $(COMPILE.c) -o $@ $<
173 144 $(POST_PROCESS_O)
174 145
175 146 pics/%.o: ../common/nameser/%.c
176 147 $(COMPILE.c) -o $@ $<
177 148 $(POST_PROCESS_O)
178 149
179 150 pics/%.o: ../common/resolv/%.c
180 151 $(COMPILE.c) -o $@ $<
181 152 $(POST_PROCESS_O)
182 153
183 154 pics/%.o: ../common/sunw/%.c
184 155 $(COMPILE.c) -o $@ $<
185 156 $(POST_PROCESS_O)
186 157
187 158 # install rule for lint library target
188 159 $(ROOTLINTDIR)/%: ../common/%
189 160 $(INS.file)
|
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX