From: Hannes Reinecke <h...@suse.de>

The open-isns source tree contains the code for the iSNS server, too.
So add a Makefile target to compile it.

Signed-off-by: Hannes Reinecke <h...@suse.de>
---
 utils/open-isns/Makefile.in | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/utils/open-isns/Makefile.in b/utils/open-isns/Makefile.in
index a27199cad294..cb721f2b990a 100644
--- a/utils/open-isns/Makefile.in
+++ b/utils/open-isns/Makefile.in
@@ -4,6 +4,7 @@ sbindir = @sbindir@
 mandir = @mandir@
 etcdir = /etc
 vardir = /var/lib/isns
+datarootdir = @datarootdir@
 
 SBINDIR        = $(INSTALL_ROOT)$(sbindir)
 ETCDIR = $(INSTALL_ROOT)$(etcdir)
@@ -16,6 +17,13 @@ CPPFLAGS= @CPPFLAGS@
 CFLAGS = @CFLAGS@ -I.
 LDFLAGS        = @LDFLAGS@
 
+ISNSD  = isnsd
+ISNSDOBJS = isnsd.o
+ISNSDD = isnsdd
+ISNSDDOBJS = isnsdd.o local.o
+ISNSADM        = isnsadm
+ISNSADMOBJS    = isnsadm.o
+SRV    = $(ISNSD) $(ISNSDD) $(ISNSADM)
 LIB    = libisns.a
 LIBOBJS        = server.o \
          client.o \
@@ -58,6 +66,7 @@ LIBOBJS       = server.o \
          sysdep-unix.o \
          util.o \
          bitvector.o \
+         pki.o \
          mdebug.o
 SECLINK        = @SECLIBS@
 SLPLINK        = @SLPLIBS@
@@ -65,8 +74,10 @@ SLPLIN       = @SLPLIBS@
 
 all: $(LIB)
 
+programs: $(SRV) $(LIB)
+
 clean distclean::
-       rm -f *.o $(LIB) *~
+       rm -f *.o $(LIB) $(SRV) *~
 
 distclean::
        rm -f config.h Makefile config.status config.log
@@ -75,6 +86,15 @@ distclean::
 $(LIB): $(LIBOBJS)
        ar cr $@ $(LIBOBJS)
 
+$(ISNSD): $(ISNSDOBJS) $(LIB)
+       gcc $(CFLAGS) -o $@ $(ISNSDOBJS) $(LIB) $(SECLINK) $(SLPLINK)
+
+$(ISNSDD): $(ISNSDDOBJS) $(LIB)
+       gcc $(CFLAGS) -o $@ $(ISNSDDOBJS) $(LIB) $(SECLINK) $(SLPLINK)
+
+$(ISNSADM): $(ISNSADMOBJS) $(LIB)
+       gcc $(CFLAGS) -o $@ $(ISNSADMOBJS) $(LIB) $(SECLINK) $(SLPLINK)
+
 depend:
        gcc $(CFLAGS) -M `ls *.c` > .depend
 
-- 
2.1.2

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to