17c478bd9Sstevel@tonic-gate# 2f808c858Sraf# CDDL HEADER START 3f808c858Sraf# 4f808c858Sraf# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 7f808c858Sraf# 8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9f808c858Sraf# or http://www.opensolaris.org/os/licensing. 10f808c858Sraf# See the License for the specific language governing permissions 11f808c858Sraf# and limitations under the License. 12f808c858Sraf# 13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each 14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the 16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying 17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner] 18f808c858Sraf# 19f808c858Sraf# CDDL HEADER END 20f808c858Sraf# 21f808c858Sraf# 229525b14bSRao Shoaib# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateLIBRARY= libresolv.a 287c478bd9Sstevel@tonic-gateVERS= .2 297c478bd9Sstevel@tonic-gate 30*ce3c309fSRyan ZezeskiBSDOBJS= putenv.o strcasecmp.o strsep.o \ 317c478bd9Sstevel@tonic-gate ftruncate.o readv.o strdup.o strtoul.o \ 327c478bd9Sstevel@tonic-gate gettimeofday.o setenv.o strerror.o utimes.o \ 337c478bd9Sstevel@tonic-gate mktemp.o setitimer.o strpbrk.o writev.o 347c478bd9Sstevel@tonic-gate 359525b14bSRao ShoaibDSTOBJS= dst_api.o support.o hmac_link.o 367c478bd9Sstevel@tonic-gate 379525b14bSRao Shoaib# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with 389525b14bSRao Shoaib# libnsl 399525b14bSRao ShoaibINETOBJS= inet_net_pton.o inet_neta.o inet_lnaof.o \ 409525b14bSRao Shoaib inet_netof.o nsap_addr.o inet_makeaddr.o \ 419525b14bSRao Shoaib inet_network.o inet_net_ntop.o inet_cidr_ntop.o \ 427c478bd9Sstevel@tonic-gate inet_cidr_pton.o inet_data.o 437c478bd9Sstevel@tonic-gate 449525b14bSRao Shoaib# build only the IRS objects that the ISC libbind's make would 459525b14bSRao ShoaibIRSTHROBJS= gethostent_r.o getnetent_r.o getnetgrent_r.o \ 469525b14bSRao Shoaib getprotoent_r.o getservent_r.o 479525b14bSRao ShoaibIRSOBJS= ${IRSTHROBJS} \ 489525b14bSRao Shoaib dns.o dns_ho.o dns_nw.o dns_pr.o \ 499525b14bSRao Shoaib dns_sv.o gai_strerror.o gen.o gen_ho.o \ 509525b14bSRao Shoaib gen_ng.o gen_nw.o gen_pr.o gen_sv.o \ 519525b14bSRao Shoaib getaddrinfo.o gethostent.o getnameinfo.o getnetent.o \ 529525b14bSRao Shoaib getnetgrent.o getprotoent.o getservent.o hesiod.o \ 539525b14bSRao Shoaib irp.o irp_ho.o irp_ng.o irp_nw.o \ 549525b14bSRao Shoaib irp_pr.o irp_sv.o irpmarshall.o irs_data.o \ 559525b14bSRao Shoaib lcl.o lcl_ho.o lcl_ng.o lcl_nw.o \ 569525b14bSRao Shoaib lcl_pr.o lcl_sv.o nis.o nul_ng.o \ 579525b14bSRao Shoaib util.o 587c478bd9Sstevel@tonic-gate 599525b14bSRao ShoaibISCOBJS= assertions.o base64.o bitncmp.o ctl_clnt.o \ 609525b14bSRao Shoaib ctl_p.o ctl_srvr.o ev_connects.o ev_files.o \ 619525b14bSRao Shoaib ev_streams.o ev_timers.o ev_waits.o eventlib.o \ 629525b14bSRao Shoaib heap.o hex.o logging.o memcluster.o \ 639525b14bSRao Shoaib movefile.o tree.o 647c478bd9Sstevel@tonic-gate 659525b14bSRao ShoaibNAMESEROBJS= ns_date.o ns_name.o ns_netint.o ns_parse.o \ 669525b14bSRao Shoaib ns_print.o ns_samedomain.o ns_sign.o ns_ttl.o \ 679525b14bSRao Shoaib ns_verify.o ns_rdata.o ns_newmsg.o 687c478bd9Sstevel@tonic-gate 699525b14bSRao ShoaibRESOLVOBJS= herror.o mtctxres.o res_comp.o res_data.o \ 709525b14bSRao Shoaib res_debug.o res_findzonecut.o res_init.o \ 719525b14bSRao Shoaib res_mkquery.o res_mkupdate.o res_query.o res_send.o \ 729525b14bSRao Shoaib res_sendsigned.o res_update.o 737c478bd9Sstevel@tonic-gate 749525b14bSRao ShoaibSUNWOBJS= sunw_mtctxres.o sunw_updrec.o sunw_wrappers.o 757c478bd9Sstevel@tonic-gate 769525b14bSRao ShoaibOBJECTS= $(BSDOBJS) $(DSTOBJS) $(INETOBJS) $(IRSOBJS) $(ISCOBJS) \ 777c478bd9Sstevel@tonic-gate $(NAMESEROBJS) $(RESOLVOBJS) $(SUNWOBJS) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate# include library definitions 807c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate# install this library in the root filesystem 837c478bd9Sstevel@tonic-gateinclude ../../Makefile.rootfs 847c478bd9Sstevel@tonic-gate 859525b14bSRao Shoaib# CC -v complains about things we aren't going to change in the ISC code 869525b14bSRao ShoaibCCVERBOSE= 879525b14bSRao Shoaib 88f808c858SrafSRCDIR = ../common 897c478bd9Sstevel@tonic-gateSRCS= $(BSDOBJS:%.o=../common/bsd/%.c) \ 907c478bd9Sstevel@tonic-gate $(DSTOBJS:%.o=../common/dst/%.c) \ 917c478bd9Sstevel@tonic-gate $(INETOBJS:%.o=../common/inet/%.c) \ 929525b14bSRao Shoaib $(IRSOBJS:%.o=../common/irs/%.c) \ 937c478bd9Sstevel@tonic-gate $(ISCOBJS:%.o=../common/isc/%.c) \ 947c478bd9Sstevel@tonic-gate $(NAMESEROBJS:%.o=../common/nameser/%.c) \ 957c478bd9Sstevel@tonic-gate $(RESOLVOBJS:%.o=../common/resolv/%.c) \ 967c478bd9Sstevel@tonic-gate $(SUNWOBJS:%.o=../common/sunw/%.c) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS = ../common/llib-lresolv 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate# Local Libresolv definitions 1037c478bd9Sstevel@tonic-gate 1049525b14bSRao ShoaibSOLCOMPAT = -Dsocket=_socket 1059525b14bSRao ShoaibCRYPTFLAGS= -DHMAC_MD5 -DUSE_MD5 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gateLOCFLAGS += $(CRYPTFLAGS) 1087c478bd9Sstevel@tonic-gateLOCFLAGS += -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \ 109e8031f0aSraf $(SOLCOMPAT) -I../include -I../../common/inc 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gateCPPFLAGS += $(LOCFLAGS) 1127014882cSRichard Lowe 1137014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 1147014882cSRichard Lowe 115f808c858SrafDYNFLAGS += $(ZNODELETE) 1169525b14bSRao Shoaib 1179525b14bSRao ShoaibLDLIBS += -lsocket -lnsl -lc -lmd 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate.KEEP_STATE: 1207c478bd9Sstevel@tonic-gate 1216c740c0aSrafall: $(LIBS) 122e8031f0aSraf 1237c478bd9Sstevel@tonic-gatelint: lintcheck 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate# include library targets 1267c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gatepics/%.o: ../common/bsd/%.c 1297c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1307c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gatepics/%.o: ../common/dst/%.c 1337c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1347c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gatepics/%.o: ../common/inet/%.c 1377c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1387c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1397c478bd9Sstevel@tonic-gate 1407c478bd9Sstevel@tonic-gatepics/%.o: ../common/irs/%.c 1417c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1427c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gatepics/%.o: ../common/isc/%.c 1457c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1467c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1477c478bd9Sstevel@tonic-gate 1487c478bd9Sstevel@tonic-gatepics/%.o: ../common/nameser/%.c 1497c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1507c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1517c478bd9Sstevel@tonic-gate 1527c478bd9Sstevel@tonic-gatepics/%.o: ../common/resolv/%.c 1537c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1547c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1557c478bd9Sstevel@tonic-gate 1567c478bd9Sstevel@tonic-gatepics/%.o: ../common/sunw/%.c 1577c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1587c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1597c478bd9Sstevel@tonic-gate 1607c478bd9Sstevel@tonic-gate# install rule for lint library target 1617c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../common/% 1627c478bd9Sstevel@tonic-gate $(INS.file) 163