# buildfile for SMI Network Disk server
# March 1984 Bill Nowicki
# NOTE: only works on 4.2 Unix -- NOT a V program!

#include ../../buildprefix

#
# Only the xV copy of ndserver should be built and installed; the sources in V
#   are just a (possibly out of date) copy
#
#ifndef X
default:
	@echo \
	   '--- The copy of ndserver in xV should be used for all changes ---'
*:
	@echo \
	   '--- The copy of ndserver in xV should be used for all changes ---'
#else X

ALL = ndserver
OBJECTS = ndserver.o

CFLAGS = -O '-DDefaultBootfile="$(PRODUCTION_VSYS)/boot/Vload10.d"' \
	    '-DDefaultConfigDir="$(PRODUCTION_VSYS)/config"'

ndserver: ndserver.o
	cc -o ndserver ndserver.o

clean:
	rm -f *.BAK *.CKP $(OBJECTS) $(ALL)

relink:
	rm -f $(ALL)

install:
	$(NETINSTALL) -m 755  -p "$(ALL)" /etc/V

#endif X
