Whamcloud - gitweb
fix for bug #4481
[fs/lustre-release.git] / lustre / utils / Makefile.am
1 # Administration utilities Makefile
2
3 SUBDIRS = Lustre
4
5 AM_CFLAGS=$(LLCFLAGS)
6 AM_CPPFLAGS=$(LLCPPFLAGS)
7 AM_LDFLAGS := -L$(top_builddir)/portals/utils
8
9 sbin_scripts = lconf lmc llanalyze llstat.pl llobdstat.pl lactive       \
10         load_ldap.sh lrun lwizard
11 bin_scripts = lfind lstripe
12
13 if UTILS
14 rootsbin_SCRIPTS = mount.lustre
15 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount
16 bin_PROGRAMS = lfs
17 lib_LIBRARIES = liblustreapi.a
18 sbin_SCRIPTS = $(sbin_scripts)
19 bin_SCRIPTS = $(bin_scripts)
20 endif # UTILS
21
22 lctl_LDADD := $(LIBREADLINE) -lptlctl
23 lfs_LDADD := $(LIBREADLINE) parser.o liblustreapi.a -lptlctl obd.o
24 lload_LDADD := $(LIBREADLINE) -lptlctl
25 liblustreapi_a_SOURCES = liblustreapi.c
26 wirecheck_SOURCES = wirecheck.c
27 wiretest_SOURCES = wiretest.c
28 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
29 lload_SOURCES = lload.c 
30 obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
31 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
32 lfs_SOURCES = lfs.c 
33 llmount_SOURCES = llmount.c 
34 llmount_LDADD = $(LIBREADLINE) -lptlctl
35
36 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
37
38 # NOTE: this should only be run on i386.
39 newwiretest: wirehdr.c wirecheck
40         cp wirehdr.c wiretest.c
41         ./wirecheck >> wiretest.c
42
43 mount.lustre$(EXEEXT): llmount
44         cp $< $@