Whamcloud - gitweb
8a28fda5a022d16e30448d2a0818b9c8d5b260ab
[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
14 if UTILS
15 rootsbin_SCRIPTS = mount.lustre
16 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount lsd_upcall
17 bin_PROGRAMS = lfs
18 lib_LIBRARIES = liblustreapi.a
19 sbin_SCRIPTS = $(sbin_scripts)
20 bin_SCRIPTS = $(bin_scripts)
21 endif # UTILS
22
23 lctl_LDADD := $(LIBREADLINE) -lptlctl -lpthread
24 lfs_LDADD := $(LIBREADLINE) parser.o liblustreapi.a -lptlctl obd.o
25 lload_LDADD := $(LIBREADLINE) -lptlctl
26 liblustreapi_a_SOURCES = liblustreapi.c
27 wirecheck_SOURCES = wirecheck.c
28 wiretest_SOURCES = wiretest.c
29 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
30 lload_SOURCES = lload.c 
31 obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
32 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
33 lfs_SOURCES = lfs.c 
34 llmount_SOURCES = llmount.c 
35 llmount_LDADD = $(LIBREADLINE) -lptlctl
36 lsd_upcall_SOURCES = lsd_upcall.c
37 lsd_upcall_LDADD = $(LIBREADLINE) -lptlctl
38
39 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
40
41 # NOTE: this should only be run on i386.
42 newwiretest: wirehdr.c wirecheck
43         cp wirehdr.c wiretest.c
44         ./wirecheck >> wiretest.c
45
46 mount.lustre$(EXEEXT): llmount
47         cp $< $@