Whamcloud - gitweb
20c15420a91332b5ecb4896b7ad8f9c98213dc60
[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) -DLUSTRE_UTILS=1
7
8 LIBPTLCTL := $(top_builddir)/portals/utils/libptlctl.a
9
10 sbin_scripts = lconf lmc llanalyze llstat.pl llobdstat.pl lactive       \
11         load_ldap.sh lrun lwizard
12 bin_scripts = lfind lstripe
13
14 if UTILS
15 rootsbin_SCRIPTS = mount.lustre
16 sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount
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) $(LIBPTLCTL)
24 lctl_DEPENDENCIES := $(LIBPTLCTL)
25
26 lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
27 lfs_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
28
29 lload_LDADD := $(LIBREADLINE) $(LIBPTLCTL)
30 lload_DEPENDENCIES := $(LIBPTLCTL)
31
32 liblustreapi_a_SOURCES = liblustreapi.c
33
34 wirecheck_SOURCES = wirecheck.c
35 wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
36 wiretest_SOURCES = wiretest.c
37
38 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h
39
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
44
45 llmount_SOURCES = llmount.c 
46 llmount_LDADD = $(LIBREADLINE) $(LIBPTLCTL)
47 llmount_DEPENDENCIES := $(LIBPTLCTL)
48
49 EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
50
51 # NOTE: this should only be run on i386.
52 newwiretest: wirehdr.c wirecheck
53         cp wirehdr.c wiretest.c
54         ./wirecheck >> wiretest.c
55
56 mount.lustre$(EXEEXT): llmount
57         cp $< $@