Whamcloud - gitweb
- Fixes a catstrophic bug introduced in the merge, wherein liblustre OBD_ALLOC
[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 debug.c l_ioctl.c
15 libuptlctl_a_CPPFLAGS = $(LLCPPFLAGS) -DLUSTRE_UTILS=1
16 libuptlctl_a_CFLAGS = $(LLCFLAGS)
17
18 sbin_PROGRAMS = debugctl
19
20 lib_LIBRARIES = libptlctl.a
21
22 libptlctl_a_SOURCES = portals.c debug.c l_ioctl.c parser.c parser.h
23
24 if UTILS
25 if !CRAY_PORTALS
26 sbin_PROGRAMS += acceptor ptlctl routerstat wirecheck 
27 endif
28 if BUILD_GMNAL
29 sbin_PROGRAMS += gmnalnid
30 endif
31 endif
32
33 acceptor_SOURCES = acceptor.c
34 acceptor_LDADD = $(LIBWRAP)
35
36 wirecheck_SOURCES = wirecheck.c
37
38 gmnalnid_SOURCES = gmnalnid.c
39 gmnalnid_CFLAGS = $(GMCPPFLAGS)
40 gmnalnid_LDFLAGS = -static
41 gmnalnid_LDADD = $(GMLIBS) -lgm
42
43 ptlctl_SOURCES = ptlctl.c
44 ptlctl_LDADD =  -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
45 ptlctl_DEPENDENCIES = libptlctl.a
46
47 routerstat_SOURCES = routerstat.c
48
49 debugctl_SOURCES = debugctl.c
50 debugctl_LDADD = -L. -lptlctl $(LIBREADLINE) $(LIBEFENCE)
51 debugctl_DEPENDENCIES = libptlctl.a