# See the file COPYING in this distribution
-COMPILE = gcc -Wall -g -I$(srcdir)/../include
-LINK = gcc -o $@
+COMPILE = $(CC) -Wall -g -I$(srcdir)/../include
+LINK = $(CC) -o $@
-sbin_PROGRAMS = acceptor ptlctl debugctl routerstat wirecheck
+if LIBLUSTRE
+tmp=
+else
+tmp=gmnalnid
+endif
+
+sbin_PROGRAMS = acceptor ptlctl debugctl routerstat wirecheck $(tmp)
lib_LIBRARIES = libptlctl.a
acceptor_SOURCES = acceptor.c # -lefence
libptlctl_a_SOURCES = portals.c debug.c l_ioctl.c parser.c parser.h
+gmnalnid_SOURCES = gmnalnid.c
+
ptlctl_SOURCES = ptlctl.c
ptlctl_LDADD = -L. -lptlctl -lncurses # -lefence
ptlctl_DEPENDENCIES = libptlctl.a