X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2FMakefile.am;h=d7c3c1e0fed8ece142e6a3823d6c97c605ba2581;hb=1bd1be8bee38262465a3c0385a8f4608e17b04f6;hp=40f997fd44f3c5ae6ba039ca53d1589cf8d0af48;hpb=6aea6cf0aecb1f819bb8a0e9cf546d26b653e2b4;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/Makefile.am b/lustre/obdclass/Makefile.am index 40f997f..d7c3c1e 100644 --- a/lustre/obdclass/Makefile.am +++ b/lustre/obdclass/Makefile.am @@ -1,14 +1,34 @@ DEFS= MODULE = obdclass -modulefs_DATA = obdclass.o -EXTRA_PROGRAMS = obdclass -LINX=page.c debug.c -obdclass_SOURCES = genops.c proc_lustre.c class_obd.c sysctl.c uuid.c $(LINX) -debug.c: - test -e debug.c || ln -sf $(top_srcdir)/lib/debug.c +class_obd.o: lustre_build_version -page.c: - test -e page.c || ln -sf $(top_srcdir)/lib/page.c +if LIBLUSTRE +lib_LIBRARIES = liblustreclass.a +liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c uuid.c +liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c +liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c +liblustreclass_a_SOURCES += llog_lvfs.c #llog_ioctl.c rbtree.c + +lustre_build_version: + echo '#define LUSTRE_VERSION 31' > $(top_builddir)/include/linux/lustre_build_version.h + echo '#define BUILD_VERSION "1"' >> $(top_builddir)/include/linux/lustre_build_version.h + +else +modulefs_DATA = lustre_build_version obdclass.o llog_test.o +EXTRA_PROGRAMS = obdclass llog_test + +obdclass_SOURCES = llog.c llog_cat.c llog_lvfs.c llog_obd.c class_obd.c debug.c genops.c sysctl.c uuid.c llog_ioctl.c +obdclass_SOURCES += lprocfs_status.c lustre_handles.c lustre_peer.c +obdclass_SOURCES += statfs_pack.c obdo.c obd_config.c llog_internal.h + +lustre_build_version: + perl $(top_srcdir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver + echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver + cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \ + 2> /dev/null && \ + $(RM) tmpver || \ + mv tmpver $(top_builddir)/include/linux/lustre_build_version.h +endif include $(top_srcdir)/Rules