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 \
18 lsd_upcall lacl_upcall
19 bin_PROGRAMS = lfs lkinit
20 lib_LIBRARIES = liblustreapi.a
21 sbin_SCRIPTS = $(sbin_scripts)
22 bin_SCRIPTS = $(bin_scripts)
25 lctl_LDADD := $(LIBREADLINE) $(LIBPTLCTL) -lpthread
26 lctl_DEPENDENCIES := $(LIBPTLCTL)
28 lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
29 lfs_DEPENDENCIES := liblustreapi.a $(LIBPTLCTL)
31 lload_LDADD := $(LIBREADLINE) $(LIBPTLCTL)
32 lload_DEPENDENCIES := $(LIBPTLCTL)
34 liblustreapi_a_SOURCES = liblustreapi.c
35 wirecheck_SOURCES = wirecheck.c
36 wiretest_SOURCES = wiretest.c
37 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
38 lload_SOURCES = lload.c
39 obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
40 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
41 lfs_SOURCES = lfs.c parser.c obd.c
42 lkinit_SOURCES = lkinit.c
44 llmount_SOURCES = llmount.c
45 llmount_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
46 llmount_DEPENDENCIES := $(LIBPTLCTL)
48 lsd_upcall_SOURCES = lsd_upcall.c
49 lsd_upcall_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
50 lsd_upcall_DEPENDENCIES := $(LIBPTLCTL)
52 lacl_upcall_SOURCES = lacl_upcall.c
53 lacl_upcall_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
54 lacl_upcall_DEPENDENCIES := $(LIBPTLCTL)
56 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
58 # NOTE: this should only be run on i386.
59 newwiretest: wirehdr.c wirecheck
60 cp wirehdr.c wiretest.c
61 ./wirecheck >> wiretest.c
63 mount.lustre$(EXEEXT): llmount