Whamcloud - gitweb
1f7a8b59bfdda0861b8817b8a39038b101265757
[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 if UTILS
10 rootsbin_SCRIPTS = mount.lustre
11 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount
12 sbin_SCRIPTS = lconf lmc llanalyze llstat.pl llobdstat.pl lactive load_ldap.sh lrun
13 sbin_SCRIPTS += lwizard
14 bin_SCRIPTS = lfind lstripe
15 bin_PROGRAMS = lfs
16 lib_LIBRARIES = liblustreapi.a
17 if LIBLUSTRE
18 sbin_SCRIPTS += lrun
19 endif # LIBLUSTRE
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 $< $@