Print this page
7569 statd support to run on a fixed port
Portions contributed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
@@ -26,28 +26,33 @@
#
# Copyright 1990-2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2016 by Delphix. All rights reserved.
+#
FSTYPE= nfs
TYPEPROG= statd
ATTMK= $(TYPEPROG)
include ../../Makefile.fstype
CPPFLAGS += -D_REENTRANT -DSUN_THREADS
CERRWARN += -_gcc=-Wno-unused-variable
+CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
LOCAL= sm_svc.o sm_proc.o sm_statd.o
-OBJS= $(LOCAL) selfcheck.o daemon.o
+OBJS= $(LOCAL) selfcheck.o daemon.o smfcfg.o
-SRCS= $(LOCAL:%.o=%.c) ../lib/selfcheck.c ../lib/daemon.c
+SRCS= $(LOCAL:%.o=%.c) ../lib/selfcheck.c ../lib/daemon.c \
+ ../lib/smfcfg.c
-LDLIBS += -lsocket -lrpcsvc -lnsl
+LDLIBS += -lsocket -lrpcsvc -lnsl -lscf
+CPPFLAGS += -I../lib
$(TYPEPROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
$(LOCK_LINT)
@@ -56,9 +61,12 @@
$(COMPILE.c) ../lib/selfcheck.c
daemon.o: ../lib/daemon.c
$(COMPILE.c) ../lib/daemon.c
+smfcfg.o: ../lib/smfcfg.c
+ $(COMPILE.c) ../lib/smfcfg.c
+
lint: lint_SRCS
clean:
$(RM) $(OBJS) $(TYPEPROG)