CC = gcc
PROG = rcp
OBJS = rcp.o # krcmd.o kcmd.o
CFLAGS = -O2 -mbaserel -I../portlib # -DKERBEROS -DCRYPT 
LDLIBS = -lbsocket -lbportlib # -lkrb -ldes
LDFLAGS = -mbaserel -L../portlib 

all: $(PROG)

$(PROG): $(OBJS)

install:
	@install -o root -g wheel -m 4755 -s rcp /usr/ucb; \
	test -f /usr/ucb/rsh || \
		echo "rcp needs /usr/ucb/rsh, which you dont have!"; \
	test -f /bin/cp || \
		echo "rcp needs /bin/cp, which you dont have!"

clean:
	rm -f *.o *~ core

clobber: clean
	rm -f $(PROG)
