Print this page
*** NO COMMENTS ***

@@ -21,27 +21,32 @@
 #
 #
 # Copyright 1996, 2002 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
+# Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
 #
 
 PROG = revnetgroup
 
 include ../../Makefile.cmd
 
 OBJS = revnetgroup.o getgroup.o table.o util.o
 SRCS = $(OBJS:.o=.c)
-HDRS = getgroup.h table.h util.h
+HDRS = getgroup.h table.h util.h revnetgroup.h
 
+OBJS_PROG = main.o
+SRCS_PROG = $(OBJS_PROG:.o=.c)
+
 .KEEP_STATE:
 
 all: $(PROG)
 
-$(PROG): $(OBJS)
-        $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
+LDLIBS +=       -lrevnetgroup
+
+$(PROG): $(OBJS_PROG) $(HDRS)
+        $(LINK.c) $(OBJS_PROG) -o $@ $(LDLIBS)
         $(POST_PROCESS)
 
 install: all $(ROOTUSRSBINPROG)
 
 clean: