# Make file for rbootd/bootpfwd 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=

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

include ${BUILDRULES}

#Commands used by this Makefile

AR=/usr/ccs/bin/ar

INCLUDES= -I../../include -I. -I../../../../usr/include

#CCFLAGS= $(INCLUDES) -g -DDEBUG  $(CFLAGS)
#MYLDFLAGS=-g $(LDFLAGS)

CCFLAGS= $(INCLUDES) $(CFLAGS)
MYLDFLAGS=$(LDFLAGS)

LIBS=   libbootpfwd.a(bootp_proto.o) libbootpfwd.a(tftpxfr.o) \
	libbootpfwd.a(tftpnam.o) 

default: all

all:	clean build install

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

.c.a:
	$(CC) -c $(CCFLAGS) $*.c
	$(AR) rv $@ $*.o
clean:
	$(ECHO) "bootpfwd clean\n"
	$(RM) -f *.o
	$(RM) -f lib*.a

build: $(LIBS)

install:
