4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
30 BSDOBJS= putenv.o strcasecmp.o strsep.o \
31 ftruncate.o readv.o strdup.o strtoul.o \
32 gettimeofday.o setenv.o strerror.o utimes.o \
33 mktemp.o setitimer.o strpbrk.o writev.o
35 DSTOBJS= dst_api.o support.o hmac_link.o
37 # inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with
39 INETOBJS= inet_net_pton.o inet_neta.o inet_lnaof.o \
40 inet_netof.o nsap_addr.o inet_makeaddr.o \
41 inet_network.o inet_net_ntop.o inet_cidr_ntop.o \
42 inet_cidr_pton.o inet_data.o
44 # build only the IRS objects that the ISC libbind's make would
45 IRSTHROBJS= gethostent_r.o getnetent_r.o getnetgrent_r.o \
46 getprotoent_r.o getservent_r.o
47 IRSOBJS= ${IRSTHROBJS} \
48 dns.o dns_ho.o dns_nw.o dns_pr.o \
49 dns_sv.o gai_strerror.o gen.o gen_ho.o \
50 gen_ng.o gen_nw.o gen_pr.o gen_sv.o \
51 getaddrinfo.o gethostent.o getnameinfo.o getnetent.o \
52 getnetgrent.o getprotoent.o getservent.o hesiod.o \
53 irp.o irp_ho.o irp_ng.o irp_nw.o \
54 irp_pr.o irp_sv.o irpmarshall.o irs_data.o \
55 lcl.o lcl_ho.o lcl_ng.o lcl_nw.o \
56 lcl_pr.o lcl_sv.o nis.o nul_ng.o \
59 ISCOBJS= assertions.o base64.o bitncmp.o ctl_clnt.o \
60 ctl_p.o ctl_srvr.o ev_connects.o ev_files.o \
61 ev_streams.o ev_timers.o ev_waits.o eventlib.o \
62 heap.o hex.o logging.o memcluster.o \
65 NAMESEROBJS= ns_date.o ns_name.o ns_netint.o ns_parse.o \
66 ns_print.o ns_samedomain.o ns_sign.o ns_ttl.o \
67 ns_verify.o ns_rdata.o ns_newmsg.o
69 RESOLVOBJS= herror.o mtctxres.o res_comp.o res_data.o \
70 res_debug.o res_findzonecut.o res_init.o \
71 res_mkquery.o res_mkupdate.o res_query.o res_send.o \
72 res_sendsigned.o res_update.o
74 SUNWOBJS= sunw_mtctxres.o sunw_updrec.o sunw_wrappers.o
76 OBJECTS= $(BSDOBJS) $(DSTOBJS) $(INETOBJS) $(IRSOBJS) $(ISCOBJS) \
77 $(NAMESEROBJS) $(RESOLVOBJS) $(SUNWOBJS)
79 # include library definitions
80 include ../../Makefile.lib
82 # install this library in the root filesystem
83 include ../../Makefile.rootfs
86 SRCS= $(BSDOBJS:%.o=../common/bsd/%.c) \
87 $(DSTOBJS:%.o=../common/dst/%.c) \
88 $(INETOBJS:%.o=../common/inet/%.c) \
89 $(IRSOBJS:%.o=../common/irs/%.c) \
90 $(ISCOBJS:%.o=../common/isc/%.c) \
91 $(NAMESEROBJS:%.o=../common/nameser/%.c) \
92 $(RESOLVOBJS:%.o=../common/resolv/%.c) \
93 $(SUNWOBJS:%.o=../common/sunw/%.c)
97 # Local Libresolv definitions
99 CRYPTFLAGS= -DHMAC_MD5 -DUSE_MD5
101 LOCFLAGS += $(CRYPTFLAGS)
102 LOCFLAGS += -D_SYS_STREAM_H -DSVR4 -DSUNW_OPTIONS \
103 -I../include -I../../common/inc
105 CPPFLAGS += $(LOCFLAGS)
107 CERRWARN += -Wno-implicit-function-declaration
109 DYNFLAGS += $(ZNODELETE)
117 # include library targets
118 include ../../Makefile.targ
120 pics/%.o: ../common/bsd/%.c
121 $(COMPILE.c) -o $@ $<
124 pics/%.o: ../common/dst/%.c
125 $(COMPILE.c) -o $@ $<
128 pics/%.o: ../common/inet/%.c
129 $(COMPILE.c) -o $@ $<
132 pics/%.o: ../common/irs/%.c
133 $(COMPILE.c) -o $@ $<
136 pics/%.o: ../common/isc/%.c
137 $(COMPILE.c) -o $@ $<
140 pics/%.o: ../common/nameser/%.c
141 $(COMPILE.c) -o $@ $<
144 pics/%.o: ../common/resolv/%.c
145 $(COMPILE.c) -o $@ $<
148 pics/%.o: ../common/sunw/%.c
149 $(COMPILE.c) -o $@ $<