Whamcloud - gitweb
land lustre part of b_hd_sec on HEAD.
[fs/lustre-release.git] / lustre / utils / Makefile.am
index 0a3f785..62707cc 100644 (file)
@@ -1,31 +1,28 @@
 # Administration utilities Makefile
-DEFS=
-SUBDIRS = Lustre
-
-CFLAGS:=-g -O2 -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include  -I$(srcdir)/../include -Wall -L../portals/utils
-CPPFLAGS = $(HAVE_LIBREADLINE)
-
-if LIBLUSTRE
 
-bin_SCRIPTS = lrun
+SUBDIRS = Lustre
 
-EXTRA_DIST = $(sbin_SCRIPTS)
+AM_CFLAGS=$(LLCFLAGS)
+AM_CPPFLAGS=$(LLCPPFLAGS)
+AM_LDFLAGS := -L$(top_builddir)/portals/utils
 
-include $(top_srcdir)/Rules
+sbin_scripts = lconf lmc llanalyze llstat.pl llobdstat.pl lactive      \
+       load_ldap.sh lrun lwizard
+bin_scripts = lfind lstripe
 
-else
 
-KFLAGS:=
-lctl_LDADD := $(LIBREADLINE) -lptlctl
-lfs_LDADD := $(LIBREADLINE) parser.o liblustreapi.a -lptlctl obd.o
-lload_LDADD := -lptlctl
+if UTILS
 rootsbin_SCRIPTS = mount.lustre
-sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount
-sbin_SCRIPTS = lconf lmc llanalyze llstat.pl llobdstat.pl lactive load_ldap.sh lrun
-sbin_SCRIPTS += lwizard
-bin_SCRIPTS = lfind lstripe
+sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck wiretest llmount lsd_upcall
 bin_PROGRAMS = lfs
 lib_LIBRARIES = liblustreapi.a
+sbin_SCRIPTS = $(sbin_scripts)
+bin_SCRIPTS = $(bin_scripts)
+endif # UTILS
+
+lctl_LDADD := $(LIBREADLINE) -lptlctl -lpthread
+lfs_LDADD := $(LIBREADLINE) parser.o liblustreapi.a -lptlctl obd.o
+lload_LDADD := $(LIBREADLINE) -lptlctl
 liblustreapi_a_SOURCES = liblustreapi.c
 wirecheck_SOURCES = wirecheck.c
 wiretest_SOURCES = wiretest.c
@@ -35,11 +32,10 @@ obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
 obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
 lfs_SOURCES = lfs.c 
 llmount_SOURCES = llmount.c 
-llmount_LDADD = -lptlctl
+llmount_LDADD = $(LIBREADLINE) -lptlctl
+lsd_upcall_SOURCES = lsd_upcall.c
 
-EXTRA_DIST = $(bin_SCRIPTS) $(sbin_SCRIPTS)
-
-include $(top_srcdir)/Rules
+EXTRA_DIST = $(bin_scripts) $(sbin_scripts)
 
 # NOTE: this should only be run on i386.
 newwiretest: wirehdr.c wirecheck
@@ -47,6 +43,4 @@ newwiretest: wirehdr.c wirecheck
        ./wirecheck >> wiretest.c
 
 mount.lustre$(EXEEXT): llmount
-       cp llmount mount.lustre
-
-endif
+       cp $< $@