Whamcloud - gitweb
- get liblustre building with automake-recent
authorzab <zab>
Fri, 19 Mar 2004 18:42:43 +0000 (18:42 +0000)
committerzab <zab>
Fri, 19 Mar 2004 18:42:43 +0000 (18:42 +0000)
lustre/liblustre/Makefile.am
lustre/liblustre/tests/Makefile.am

index 66d7bf5..b87f90b 100644 (file)
@@ -3,8 +3,8 @@ DEFS=
 
 SUBDIRS = . tests
 
-CFLAGS := -g -Wall -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include \
-          -I$(top_srcdir)/portals/unals -I$(SYSIO)/include
+LL_CFLAGS = -g -Wall -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include \
+          -I$(top_srcdir)/portals/unals -I$(SYSIO)/include -fPIC
 
 CPPFLAGS = $(HAVE_EFENCE) -D_LARGEFILE64_SOURCE=1
 LIBS = $(LIBEFENCE)
@@ -31,11 +31,11 @@ lib_LIBRARIES = liblustre.a
 noinst_LIBRARIES = libllite.a
 
 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c
-libllite_a_CFLAGS = -fPIC
+libllite_a_CFLAGS = $(LL_CFLAGS)
 
 # for make rpms -- need cleanup
 liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c
-liblustre_a_CFLAGS = -fPIC
+liblustre_a_CFLAGS = $(LL_CFLAGS)
 
 liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS)
        $(shell ./genlib.sh $(SYSIO) $(AR) $(LINK))
index 150678a..77d62b2 100644 (file)
@@ -1,7 +1,7 @@
 ## Liblustre excecutables & libraries Makefile
 DEFS=
 
-CFLAGS := -g -Wall -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include \
+AM_CFLAGS := -g -Wall -I$(top_srcdir)/utils -I$(top_srcdir)/portals/include \
           -I$(top_srcdir)/portals/unals -I$(SYSIO)/include \
           -I/opt/lam/include -L/opt/lam/lib