
#
# HISTORY
#
# 30-Jun-87	Mary Thompson
#	Files were changed by jle
#
#  1-Jun-87  	Mary Thompson
#	Converted to new Makefile format
#
#  20-May-87    Mary Thompson
#	Corrected the rules to make the programs dependent
#	on  $(LIBMACH)
#
#  11-Feb-87	Mary Thompson
#	Modified Makefile for new accentless,  camelot-less
#	version of lcp
#
# lcpserver is the server program, lcp is the client, and ldir
# reads remote directories.
# lcpserver is installed in the etc directory
# lcp and ldir are installed in the bin directory
#

DSTDIR=/usr/mach
SRCDIR=$(DSTDIR)/src
INSTALL_DIR=$(DSTDIR)/etc
BDIR=${DSTDIR}/bin
TARGET_DIRS=$(INSTALL_DIR) $(BDIR)
LIBS = $(LIBMACH)
DEFS=lcp.defs
SRCS=assert.c buf.c error.c lcp_procs.c  mydir.c lcpserver.c
PRGM=lcpserver


include $(SRCDIR)/Make.inc


LCP_OBJS = buf.o error.o lcpUser.o mydir.o lcp.o common.o

LDIR_OBJS = buf.o error.o lcpUser.o mydir.o ldir.o common.o


all : lcp ldir

lcp: $(LCP_OBJS) $(LIBMACH)
	$(CC)  $(LCP_OBJS) -o lcp $(LIBMACH)

ldir: $(LDIR_OBJS) $(LIBMACH)
	$(CC) $(LDIR_OBJS) -o ldir $(LIBMACH)


install: all lcp.install ldir.install

lcp.install: lcp
	-@mach_install $I lcp ${BDIR}
	-@touch lcp.install

ldir.install: ldir
	-@mach_install $I ldir ${BDIR}
	-@touch ldir.install


