X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libsysio%2FMakefile.am;h=12621054dceaebb2d93fed06abeedc34e3da5ff0;hb=47cde804ddc9019ff0793229030211d536d0612f;hp=11e6e3d9db4522a701c40964ac048d265989b431;hpb=b8292c00324fbe9a25910ce53d03569186ea3e2c;p=fs%2Flustre-release.git diff --git a/libsysio/Makefile.am b/libsysio/Makefile.am index 11e6e3d..1262105 100644 --- a/libsysio/Makefile.am +++ b/libsysio/Makefile.am @@ -48,16 +48,14 @@ OPTIONAL_YOD_SRCS = endif if WITH_LUSTRE_HACK -OPTIONAL_LUSTRE_SRCDIR_SRCS = $(LUSTRE_SRCDIR_SRCS) # it would be better that let configure script check this -AM_CFLAGS = -fPIC -else -OPTIONAL_LUSTRE_SRCDIR_SRCS = +OPTIONAL_LUSTRE_CFLAGS = -fPIC endif +AM_CFLAGS = $(OPTIONAL_LUSTRE_CFLAGS) + __LIBBUILD_DIR__libsysio_a_SOURCES = \ $(SRCDIR_SRCS) \ - $(OPTIONAL_LUSTRE_SRCDIR_SRCS) \ $(OPTIONAL_STDFD_SRCS) \ $(OPTIONAL_INCORE_SRCS) \ $(OPTIONAL_SOCKETS_SRCS) \ @@ -84,8 +82,8 @@ really-clean: testsclean maintainer-clean cd $(TESTDIR); rm -rf Makefile Makefile.in .deps tests: $(lib_LIBRARIES) FORCE - cd $(TESTDIR); make + cd $(TESTDIR); ${MAKE} testsclean: FORCE - cd $(TESTDIR); make clean + cd $(TESTDIR); ${MAKE} clean clean: testsclean clean-am FORCE: