# Make file for util 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/INETSVCS/indnetwk)

ROOT=

PRODUCTS=

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

include ${BUILDRULES}

INCLUDES=-I../include -I/usr/include
CCFLAGS=$(INCLUDES) $(CFLAGS) -Ae -D_HPUX_SOURCE -DAUTHENTICATION -DKRB5 \
	-DENCRYPTION -DFORWARD

# Commands used by this makefile

AR=/usr/ccs/bin/ar

OBJS=   auth.o genget.o \
	misc.o forward.o  \
	setenv.o getent.o

SRCS=   auth.c genget.c \
	misc.c forward.c \
	setenv.c getent.c

default: all

all: clean build install

clean:
	$(RM) -f $(OBJS)
	$(RM) -f libtelnet.a

build: libtelnet.a

libtelnet.a:  $(SRCS)
	$(ECHO) "Building libtelnet.a..."
	$(CC) -c $(CCFLAGS) $(LDFLAGS) $(SRCS)
	$(AR) r $@ $(OBJS)

install:
