# Make file for cmds/usr.etc/ypserv/asynch_resolver directory
#
# Things you might want to change.  Pass them in on the command line:
# ROOT - should point to the root where the commands will be installed
#        (e.g. /deliver/NFS/indnetwk)

#This Makefile builds the library libnres.a, which is not installed on
#customer systems.

ROOT=

SRCS=	herror.c nget_answer.c ngethostbyname.c nres_rcv.c nres_search.c \
	nres_send.c rpc_as.c svc_run_as.c svc_run_named.c svc_udp.c

OBJS=	herror.o nget_answer.o ngethostbyname.o nres_rcv.o nres_search.o \
	nres_send.o rpc_as.o svc_run_as.o svc_run_named.o svc_udp.o

INCLUDES= -I/source/NFS/$(LOGNAME)/include -I/usr/include

CCFLAGS= $(INCLUDES) $(CFLAGS)

#Commands used by this Makefile
AR=/usr/ccs/bin/ar
CHMOD=/usr/bin/chmod

# Defaults file containing the shell, compiler options, etc
BUILDRULES=/source/NFS/$(LOGNAME)/config/defaults

include ${BUILDRULES}

default: all

all: clean build install

clean: 
	$(RM) -f *.o libnres.a

.c.o:
	$(CC) $(CCFLAGS) -c $*.c

build: libnres.a

libnres.a: $(OBJS)
	$(ECHO) "Building libnres.a..."
	$(AR) r libnres.a $(OBJS)
	$(CHMOD) 664 libnres.a

install:
