1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
6 ## $(srcdir)/../ for <portals/*.h>, ../../ for generated <config.h>
7 #COMPILE = $(CC) -Wall -g -I$(srcdir)/../include -I../../include
11 noinst_LIBRARIES = libuptlctl.a
14 libuptlctl_a_SOURCES = portals.c nidstrings.c debug.c l_ioctl.c
15 libuptlctl_a_CPPFLAGS = $(LLCPPFLAGS)
16 libuptlctl_a_CFLAGS = $(LLCFLAGS) -DLUSTRE_UTILS=1
18 sbin_PROGRAMS = debugctl
20 lib_LIBRARIES = libptlctl.a
22 libptlctl_a_SOURCES = portals.c nidstrings.c debug.c l_ioctl.c parser.c parser.h
25 sbin_PROGRAMS += ptlctl routerstat wirecheck
27 sbin_PROGRAMS += gmlndnid
31 wirecheck_SOURCES = wirecheck.c
33 gmlndnid_SOURCES = gmlndnid.c
34 gmlndnid_CFLAGS = $(GMCPPFLAGS)
35 gmlndnid_LDFLAGS = -static
36 gmlndnid_LDADD = $(GMLIBS) -lgm
38 ptlctl_SOURCES = ptlctl.c
39 ptlctl_LDADD = -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
40 ptlctl_DEPENDENCIES = libptlctl.a
42 routerstat_SOURCES = routerstat.c
44 debugctl_SOURCES = debugctl.c
45 debugctl_LDADD = -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
46 debugctl_DEPENDENCIES = libptlctl.a
48 nidstrings.c: @top_srcdir@/lnet/libcfs/nidstrings.c