1 # Administration utilities Makefile
6 AM_CPPFLAGS=$(LLCPPFLAGS) -DLUSTRE_UTILS=1
8 LIBPTLCTL := $(top_builddir)/portals/utils/libptlctl.a
10 sbin_scripts = lconf lmc llanalyze llstat.pl llobdstat.pl lactive \
11 load_ldap.sh lrun lwizard
12 bin_scripts = lfind lstripe
16 rootsbin_SCRIPTS = mount.lustre
17 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount lsd_upcall
19 lib_LIBRARIES = liblustreapi.a
20 sbin_SCRIPTS = $(sbin_scripts)
21 bin_SCRIPTS = $(bin_scripts)
24 lctl_LDADD := $(LIBREADLINE) $(LIBPTLCTL) -lpthread
25 lctl_DEPENDENCIES := $(LIBPTLCTL)
27 lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
28 lfs_DEPENDENCIES := liblustreapi.a $(LIBPTLCTL)
30 lload_LDADD := $(LIBREADLINE) $(LIBPTLCTL)
31 lload_DEPENDENCIES := $(LIBPTLCTL)
33 liblustreapi_a_SOURCES = liblustreapi.c
34 wirecheck_SOURCES = wirecheck.c
35 wiretest_SOURCES = wiretest.c
36 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
37 lload_SOURCES = lload.c
38 obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
39 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
40 lfs_SOURCES = lfs.c parser.c obd.c
42 llmount_SOURCES = llmount.c
43 llmount_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
44 llmount_DEPENDENCIES := $(LIBPTLCTL)
46 lsd_upcall_SOURCES = lsd_upcall.c
47 lsd_upcall_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
48 lsd_upcall_DEPENDENCIES := $(LIBPTLCTL)
50 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
52 # NOTE: this should only be run on i386.
53 newwiretest: wirehdr.c wirecheck
54 cp wirehdr.c wiretest.c
55 ./wirecheck >> wiretest.c
57 mount.lustre$(EXEEXT): llmount