2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A#
2N/A
2N/ALIBRARY= libresolv.a
2N/AVERS= .2
2N/A
2N/ABSDOBJS= daemon.o gettimeofday.o
2N/A
2N/ADSTOBJS= dst_api.o support.o hmac_link.o
2N/A
2N/A# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with
2N/A# libnsl
2N/AINETOBJS= inet_net_pton.o inet_neta.o nsap_addr.o \
2N/A inet_makeaddr.o inet_net_ntop.o inet_cidr_ntop.o \
2N/A inet_cidr_pton.o
2N/A
2N/A# build only the IRS objects that the ISC libbind's make would
2N/AIRSOBJS= dns.o dns_ho.o dns_nw.o dns_pr.o \
2N/A dns_sv.o gen.o gen_ho.o gen_ng.o \
2N/A gen_nw.o gen_pr.o gen_sv.o getaddrinfo.o \
2N/A gethostent.o getnameinfo.o getprotoent.o getservent.o \
2N/A hesiod.o irp.o irp_ho.o irp_ng.o \
2N/A irp_nw.o irp_pr.o irp_sv.o irpmarshall.o \
2N/A irs_data.o lcl.o lcl_ho.o lcl_ng.o \
2N/A lcl_nw.o lcl_pr.o lcl_sv.o nul_ng.o \
2N/A util.o
2N/A
2N/AISCOBJS= assertions.o base64.o bitncmp.o ctl_clnt.o \
2N/A ctl_p.o ctl_srvr.o ev_connects.o ev_files.o \
2N/A ev_streams.o ev_timers.o ev_waits.o eventlib.o \
2N/A heap.o hex.o logging.o memcluster.o \
2N/A movefile.o tree.o
2N/A
2N/ANAMESEROBJS= ns_date.o ns_name.o ns_netint.o ns_parse.o \
2N/A ns_print.o ns_samedomain.o ns_sign.o ns_ttl.o \
2N/A ns_verify.o ns_rdata.o ns_newmsg.o
2N/A
2N/ARESOLVOBJS= herror.o mtctxres.o res_comp.o res_data.o \
2N/A res_debug.o res_findzonecut.o res_init.o \
2N/A res_mkquery.o res_mkupdate.o res_query.o res_send.o \
2N/A res_sendsigned.o res_update.o
2N/A
2N/ASUNWOBJS= sunw_mtctxres.o sunw_updrec.o sunw_wrappers.o
2N/A
2N/AOBJECTS= $(BSDOBJS) $(DSTOBJS) $(INETOBJS) $(IRSOBJS) $(ISCOBJS) \
2N/A $(NAMESEROBJS) $(RESOLVOBJS) $(SUNWOBJS)
2N/A
2N/A
2N/A# include library definitions
2N/Ainclude ../../Makefile.lib
2N/A
2N/A# install this library in the root filesystem
2N/Ainclude ../../Makefile.rootfs
2N/A
2N/A# CC -v complains about things we aren't going to change in the ISC code
2N/ACCVERBOSE=
2N/A
2N/ASRCDIR = ../common
2N/ASRCS= $(BSDOBJS:%.o=../common/bsd/%.c) \
2N/A $(DSTOBJS:%.o=../common/dst/%.c) \
2N/A $(INETOBJS:%.o=../common/inet/%.c) \
2N/A $(IRSOBJS:%.o=../common/irs/%.c) \
2N/A $(ISCOBJS:%.o=../common/isc/%.c) \
2N/A $(NAMESEROBJS:%.o=../common/nameser/%.c) \
2N/A $(RESOLVOBJS:%.o=../common/resolv/%.c) \
2N/A $(SUNWOBJS:%.o=../common/sunw/%.c)
2N/A
2N/A# The following objects are unused. Refer to comments in Makefile.master.
2N/AUNUSEDBSDOBJS = putenv.o strcasecmp.o strsep.o \
2N/A ftruncate.o readv.o strdup.o strtoul.o \
2N/A setenv.o strerror.o utimes.o mktemp.o \
2N/A setitimer.o strpbrk.o writev.o
2N/AUNUSEDINETOBJS = inet_lnaof.o inet_netof.o inet_network.o inet_data.o
2N/AUNUSEDIRSOBJS = gai_strerror.o gethostent_r.o getnetent.o getnetent_r.o \
2N/A getnetgrent.o getnetgrent_r.o getprotoent_r.o getservent_r.o \
2N/A nis.o
2N/AUNUSEDFILES = $(UNUSEDBSDOBJS:%.o=../common/bsd/%.c) \
2N/A $(UNUSEDINETOBJS:%.o=../common/inet/%.c) \
2N/A $(UNUSEDIRSOBJS:%.o=../common/irs/%.c)
2N/APOST_PROCESS_SO += $(ACCESS_UNUSEDFILES)
2N/A
2N/A
2N/ALIBS = $(DYNLIB) $(LINTLIB)
2N/A
2N/A$(LINTLIB):= SRCS = ../common/llib-lresolv
2N/A
2N/A# Local Libresolv definitions
2N/A
2N/ASOLCOMPAT = -Dsocket=_socket
2N/ACRYPTFLAGS= -DHMAC_MD5 -DUSE_MD5
2N/A
2N/ALOCFLAGS += $(CRYPTFLAGS)
2N/ALOCFLAGS += -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \
2N/A $(SOLCOMPAT) -I../include -I../../common/inc
2N/A
2N/ACPPFLAGS += $(LOCFLAGS)
2N/ADYNFLAGS += $(ZNODELETE)
2N/A
2N/ALDLIBS += -lsocket -lnsl -lc -lmd
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: stub $(LIBS)
2N/A
2N/Alint: lintcheck
2N/A
2N/A# include library targets
2N/Ainclude ../../Makefile.targ
2N/A
2N/Apics/%.o: ../common/bsd/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/dst/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/inet/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/irs/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/isc/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/nameser/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/resolv/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: ../common/sunw/%.c
2N/A $(COMPILE.c) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/A# install rule for lint library target
2N/A$(ROOTLINTDIR)/%: ../common/%
2N/A $(INS.file)