Whamcloud - gitweb
Landing b_hd_newconfig on HEAD
[fs/lustre-release.git] / lnet / utils / Makefile.am
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 ## $(srcdir)/../ for <portals/*.h>, ../../ for generated <config.h>
7 #COMPILE = $(CC) -Wall -g -I$(srcdir)/../include -I../../include
8 #LINK = $(CC) -o $@
9
10 if LIBLUSTRE
11 noinst_LIBRARIES = libuptlctl.a
12 endif
13
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
17
18 sbin_PROGRAMS = debugctl
19
20 lib_LIBRARIES = libptlctl.a
21
22 libptlctl_a_SOURCES = portals.c nidstrings.c debug.c l_ioctl.c parser.c parser.h
23
24 if UTILS
25 sbin_PROGRAMS += ptlctl routerstat wirecheck 
26 if BUILD_GMLND
27 sbin_PROGRAMS += gmlndnid
28 endif
29 endif
30
31 wirecheck_SOURCES = wirecheck.c
32
33 gmlndnid_SOURCES = gmlndnid.c
34 gmlndnid_CFLAGS = $(GMCPPFLAGS)
35 gmlndnid_LDFLAGS = -static
36 gmlndnid_LDADD = $(GMLIBS) -lgm
37
38 ptlctl_SOURCES = ptlctl.c
39 ptlctl_LDADD =  -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
40 ptlctl_DEPENDENCIES = libptlctl.a
41
42 routerstat_SOURCES = routerstat.c
43
44 debugctl_SOURCES = debugctl.c
45 debugctl_LDADD = -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
46 debugctl_DEPENDENCIES = libptlctl.a
47
48 nidstrings.c: @top_srcdir@/lnet/libcfs/nidstrings.c
49         ln -sf $< $@