#
# Derived from Berkeley ftp code.  Those parts are:
# Copyright (c) 1988 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley.  The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@(#)Makefile	5.6 (Berkeley) 6/29/88
#
INSTDIR = UNDEFINED
OWNER   = pfs
GROUP   = pfs

INSTALL = install
CC	= cc

CFLAGS  = -g -I../../include ${MACHDEF}
CC	= cc

PFS_LIB	= ../../lib/pfs/libpfs.a
FIL_LIB = ../../lib/filters/libfilter.a  
CMP_LIB = ../../lib/pcompat/libpcompat.a

SRCS    = cmds.c ftp.c main.c pclose.c aftpget.c ruserpass.c
OBJS    = cmds.o ftp.o main.o pclose.o aftpget.o ruserpass.o

all: vcache

vcache:	${OBJS} ${PFS_LIB} ${FIL_LIB} 
	${CC} -o $@ ${CFLAGS} ${OBJS} ${PFS_LIB} ${FIL_LIB} ${LIBS}

clean: FRC
	rm -f ${OBJS} core vcache

install: FRC
	${INSTALL} -c -s -o ${OWNER} -g ${GROUP} -m 755 vcache ${INSTDIR}/vcache

lint: FRC
	lint ${CFLAGS} ${SRCS}

FRC:

# Dependencies
aftpget.o: ../../include/pcompat.h
aftpget.o: ../../include/perrno.h
aftpget.o: ../../include/pfs.h
aftpget.o: ../../include/pmachine.h
aftpget.o: ftp_var.h
cmds.o: ftp_var.h
ftp.o: ../../include/pcompat.h
ftp.o: ../../include/pmachine.h
ftp.o: ftp_var.h
main.o: ../../include/pfs.h
main.o: ftp_var.h
pclose.o: ../../include/pmachine.h
ruserpass.o: ftp_var.h
ruserpass.o: ../../include/pcompat.h
ruserpass.o: ../../include/pmachine.h
