# Makefile for SOSS.  Tested with dmake and Microsoft make.
#   There is one expected error message when linked against the PC/IP
#   library and SLIBCE from Microsoft:  the symbol "signal" is defined
#   twice.  dmake requires the '-k' option or else it will remove the
#   just-produced SOSS.EXE file.

# $Id: makefile._v 1.2 1991/04/11 20:40:12 richb Exp $

all: soss.exe

OBJS = dtime.obj inodes.obj u_xdr.obj files.obj mnt_xdr.obj mountd.obj exports.obj pmap.obj netd.obj sock.obj nfs.obj debug.obj 

CFLAGS = /c /DMSC /DDEBUG /Gs /Os
CC     = cl

dtime.obj:	dtime.c
	$(CC) $(CFLAGS)  dtime.c

inodes.obj:	inodes.c inodes.h
	$(CC) $(CFLAGS)  inodes.c

u_xdr.obj:	u_xdr.c
	$(CC) $(CFLAGS)  u_xdr.c

files.obj:	files.c nfs.h novell.h
	$(CC) $(CFLAGS) files.c

mnt_xdr.obj:	mnt_xdr.c
	$(CC) $(CFLAGS) mnt_xdr.c

mountd.obj: mountd.c mountd.h exports.h
	$(CC) $(CFLAGS) mountd.c

exports.obj:	exports.c exports.h
	$(CC) $(CFLAGS) exports.c

pmap.obj:	pmap.c 	pmap.h
	$(CC) $(CFLAGS) pmap.c

netd.obj:	netd.c	netd.h nfs.h
	$(CC) $(CFLAGS) netd.c

sock.obj: sock.c sock.h in.h
	$(CC)  $(CFLAGS) /Zl sock.c

nfs.obj: nfs.h nfs.c
	$(CC) $(CFLAGS) nfs.c

debug.obj: debug.h debug.c
	$(CC) $(CFLAGS) debug.c

soss.exe: $(OBJS)
	link /MAP/NOI/NOE /CO /ST:10240 @lrespd
