X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2FMakefile.am;h=b831bd8b1e09c2b3bfb936af8480a3a8ed5c3c27;hb=5f31f03c3b409b984f88e9b1b55a72b14a41aa09;hp=b87f90b0f566d4154129f9662498e06c940a44ae;hpb=c160c6553cb50768285b002a7d1a8721c63a786a;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/Makefile.am b/lustre/liblustre/Makefile.am index b87f90b..b831bd8 100644 --- a/lustre/liblustre/Makefile.am +++ b/lustre/liblustre/Makefile.am @@ -1,44 +1,40 @@ ## Liblustre excecutables & libraries Makefile -DEFS= - SUBDIRS = . tests -LL_CFLAGS = -g -Wall -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include \ - -I$(top_srcdir)/portals/unals -I$(SYSIO)/include -fPIC +AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals +AM_CFLAGS = $(LLCFLAGS) -CPPFLAGS = $(HAVE_EFENCE) -D_LARGEFILE64_SOURCE=1 LIBS = $(LIBEFENCE) LUSTRE_LIBS = libllite.a \ - $(top_srcdir)/lov/liblov.a \ - $(top_srcdir)/obdecho/libobdecho.a \ - $(top_srcdir)/osc/libosc.a \ - $(top_srcdir)/mdc/libmdc.a \ - $(top_srcdir)/ptlrpc/libptlrpc.a \ - $(top_srcdir)/obdclass/liblustreclass.a \ - $(top_srcdir)/lvfs/liblvfs.a - -PTL_LIBS = $(top_srcdir)/portals/utils/libuptlctl.a \ - $(top_srcdir)/portals/unals/libtcpnal.a \ - $(top_srcdir)/portals/portals/libportals.a - -SYSIO_LIBS = $(SYSIO)/drivers/native/libsysio_native.a \ - $(SYSIO)/drivers/sockets/libsysio_sockets.a \ - $(SYSIO)/src/libsysio.a \ - $(SYSIO)/dev/stdfd/libsysio_stdfd.a - + $(top_builddir)/lov/liblov.a \ + $(top_builddir)/obdecho/libobdecho.a \ + $(top_builddir)/osc/libosc.a \ + $(top_builddir)/mdc/libmdc.a \ + $(top_builddir)/ptlrpc/libptlrpc.a \ + $(top_builddir)/obdclass/liblustreclass.a \ + $(top_builddir)/lvfs/liblvfs.a + +PTL_LIBS = $(top_builddir)/portals/utils/libuptlctl.a \ + $(top_builddir)/portals/unals/libtcpnal.a \ + $(top_builddir)/portals/portals/libportals.a + +SYSIO_LIBS = $(SYSIO)/drivers/native/libsysio_native.a \ + $(SYSIO)/drivers/sockets/libsysio_sockets.a \ + $(SYSIO)/src/libsysio.a \ + $(SYSIO)/dev/stdfd/libsysio_stdfd.a + +if LIBLUSTRE lib_LIBRARIES = liblustre.a noinst_LIBRARIES = libllite.a +endif -libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c -libllite_a_CFLAGS = $(LL_CFLAGS) +libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c llite_lib.h # for make rpms -- need cleanup liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c -liblustre_a_CFLAGS = $(LL_CFLAGS) liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS) - $(shell ./genlib.sh $(SYSIO) $(AR) $(LINK)) - -include $(top_srcdir)/Rules + $(srcdir)/genlib.sh $(SYSIO) $(AR) $(LINK) || ( rm -f $@; exit 1 ) +EXTRA_DIST = genlib.sh