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
15 rootsbin_SCRIPTS = mount.lustre
16 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount
18 lib_LIBRARIES = liblustreapi.a
19 sbin_SCRIPTS = $(sbin_scripts)
20 bin_SCRIPTS = $(bin_scripts)
23 lctl_LDADD := $(LIBREADLINE) $(LIBPTLCTL)
24 lctl_DEPENDENCIES := $(LIBPTLCTL)
26 lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
27 lfs_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
29 lload_LDADD := $(LIBREADLINE) $(LIBPTLCTL)
30 lload_DEPENDENCIES := $(LIBPTLCTL)
32 liblustreapi_a_SOURCES = liblustreapi.c
34 wirecheck_SOURCES = wirecheck.c
35 wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
36 wiretest_SOURCES = wiretest.c
38 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
40 lload_SOURCES = lload.c
41 obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
42 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
43 lfs_SOURCES = lfs.c parser.c obd.c
45 llmount_SOURCES = llmount.c
46 llmount_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
47 llmount_DEPENDENCIES := $(LIBPTLCTL)
49 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
51 # NOTE: this should only be run on i386.
52 newwiretest: wirehdr.c wirecheck
53 cp wirehdr.c wiretest.c
54 ./wirecheck >> wiretest.c
56 mount.lustre$(EXEEXT): llmount