#
# @(#)Makefile	1.5 87/11/20 3.9 RPCSRC
#
#   Files and programs for /etc.  rpclib must have already been installed.
#
# Edit History:
#  21-Jul-92  rcq  deleted exemod useage for stack cmd line parameter
#		   changed .obj to .so, added link to config.lib.
#  04-Oct-92  rcq  deleted makedeps stuff
#

#DESTDIR=..\..\bin

#CFLAGS= -DMSDOS -DPCTCP -W3 -Ox -Gs
CFLAGS= -DMSDOS -DPCTCP -Ox -Gs
LIBS = ssunrpc ssocket snetlib spc sconfig
LLIBS = lsunrpc lsocket lnetlib lpc lconfig

BIN = portmap.exe rpcinfo.exe
LBIN = lportmap.exe lrpcinfo.exe

all: $(BIN)
large: $(LBIN)

portmap.exe: portmap.so
	link $**,$@,,$(LIBS) $(LFLAGS) /stack:4000;

lportmap.exe: portmap.lo
	link $**,$@,,$(LLIBS) $(LFLAGS) /stack:4000;

#rpcinfo needs large stack space because it uses broadcasts
rpcinfo.exe: rpcinfo.so
	link $**,$@,,$(LIBS) $(LFLAGS) /stack:4000; 

lrpcinfo.exe: rpcinfo.lo
	link $**,$@,,$(LLIBS) $(LFLAGS) /stack:4000;

clean:
	del *.?o
	del *.map
	del *.cod

cleanall: clean
	del *.exe
