# 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)

# Commands used by this makefile

AR=/usr/ccs/bin/ar

OBJS= getpty.o utimes.o signal.o account.o getwd.o secure.o

SRCS= getpty.c utimes.c signal.c account.c getwd.c secure.c

default: all

all: clean build install

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

build: libutil.a

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

install:
