#
# @(#)Makefile	1.3 87/11/30 3.9 RPCSRC
#
# Edit History:
#  21-jul-92  rcq  changed LIB macro to LIBS for nmake, updated rpcgen path
#                  and added config library

BIN = dir_svc.exe rls.exe
GEN = dir_clnt.c dir_svc.c dir_xdr.c dir.h

LIBS = /m ssunrpc.lib ssocket snetlib spc sconfig

RPCCOM = ..\..\..\bin\rpcgen.exe

#CFLAGS=-I..\.. -Zd
CFLAGS= -DMSC -DPCTCP -Ox -Gs

all: $(GEN) $(BIN)

$(GEN): dir.x
	$(RPCCOM) dir.x

# These guys need a lot of stack space, for long directory listings
dir_svc.exe: dir_proc.so dir_svc.so dir_xdr.so
	link $**,$@,,$(LIBS) /stack:4000;

rls.exe: rls.so dir_clnt.so dir_xdr.so
	link $**,$@,,$(LIBS) /stack:4000;

rls.so: rls.c dir.h

dir_proc.so: dir_proc.c dir.h

clean cleanup:
	del dir_clnt.c
	del dir_svc.c
	del dir_xdr.c
	del dir.h
	del *.so
	del *.map
cleanall: clean
	del *.exe
