10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*2522Sraf# Common Development and Distribution License (the "License"). 6*2522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 221219Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gateLIBRARY= libresolv.a 290Sstevel@tonic-gateVERS= .1 300Sstevel@tonic-gate 310Sstevel@tonic-gatePICS= pics/res_comp.o pics/res_debug.o pics/res_init.o \ 320Sstevel@tonic-gate pics/res_mkquery.o pics/res_query.o pics/res_send.o \ 330Sstevel@tonic-gate pics/res_gethost.o pics/res_sethost.o 340Sstevel@tonic-gate 350Sstevel@tonic-gatepics/%.o: %.c 360Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 370Sstevel@tonic-gate $(POST_PROCESS_O) 380Sstevel@tonic-gate 390Sstevel@tonic-gateOBJECTS= \ 400Sstevel@tonic-gateres_gethost.o res_comp.o res_debug.o res_init.o res_mkquery.o \ 410Sstevel@tonic-gateres_query.o res_send.o res_sethost.o 420Sstevel@tonic-gate 430Sstevel@tonic-gate# include library definitions 440Sstevel@tonic-gateinclude ../Makefile.lib 450Sstevel@tonic-gate 460Sstevel@tonic-gate# install this library in the root filesystem 470Sstevel@tonic-gateinclude ../Makefile.rootfs 480Sstevel@tonic-gate 49*2522SrafSRCDIR = . 500Sstevel@tonic-gate 510Sstevel@tonic-gateC99MODE= $(C99_DISABLE) 520Sstevel@tonic-gate 530Sstevel@tonic-gate# We really want to say this: 541219Sraf# CPPFLAGS += -DDEBUG -DSYSV -D_REENTRANT -I. -I../common/inc 550Sstevel@tonic-gate# but some system header files are replaced by local versions 560Sstevel@tonic-gate# so we must put -I. ahead of the default include directories: 571219SrafCPPFLAGS = -I. -I../common/inc $(CPPFLAGS.master) -DDEBUG -DSYSV -D_REENTRANT 580Sstevel@tonic-gateLDLIBS += -lsocket -lnsl -lc 590Sstevel@tonic-gate 600Sstevel@tonic-gateROOTDYNLIBS= $(DYNLIB:%=$(ROOTLIBDIR)/%) 610Sstevel@tonic-gate 620Sstevel@tonic-gate.KEEP_STATE: 630Sstevel@tonic-gate 640Sstevel@tonic-gateLIBS = $(DYNLIB) 650Sstevel@tonic-gate 66*2522Srafall: $(LIBS) 670Sstevel@tonic-gate 68*2522Srafinstall: all $(ROOTDYNLIBS) 690Sstevel@tonic-gate 700Sstevel@tonic-gatelint: lintcheck 710Sstevel@tonic-gate 720Sstevel@tonic-gate# include library targets 730Sstevel@tonic-gateinclude ../Makefile.targ 74