LOCALINCLUDES = -I../../stubbers/parser
COMPILERFLAGS = -DREGISTRY_LAST_RESORT=\"$(REGISTRY_LAST_RESORT)\"

ProgramTarget(sunrpc-register-interface, sunrpc-register-interface.o, ../../stubbers/parser/libilu-parser.a,)

InstallFiles(sunrpc-register-interface, -m 555, $(DESTDIR)/bin)

install::
	if [ -f $(REGISTRY_LAST_RESORT)/SunRPCRegistry ] ;\
	then echo "Registry already exists." ;\
	else \
		echo "ILU-root:ilu:root 31000000 1" >>$(REGISTRY_LAST_RESORT)/SunRPCRegistry ;\
		echo "ilu.GCCallback:ilu:OZjT=HxBgeC7hL01Wh2v6zommtc 31000001 1" >>$(REGISTRY_LAST_RESORT)/SunRPCRegistry ;\
		echo "nms.server:ilu:fC3AwG4MR=aq59xbWTQJofnxFzj 310001a2 2" >>$(REGISTRY_LAST_RESORT)/SunRPCRegistry ;\
		echo ".LastAssignedProgramNumber 310001d8" >>$(REGISTRY_LAST_RESORT)/SunRPCRegistry ;\
	fi

