Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / obdclass / Makefile.am
1 DEFS=
2 MODULE = obdclass
3
4 class_obd.o: lustre_build_version
5
6 if LIBLUSTRE
7 lib_LIBRARIES = liblustreclass.a
8 liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c uuid.c 
9 liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
10 liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c
11 liblustreclass_a_SOURCES += llog_lvfs.c #llog_ioctl.c rbtree.c
12
13 lustre_build_version:
14         echo '#define LUSTRE_VERSION 31' > $(top_builddir)/include/linux/lustre_build_version.h
15         echo '#define BUILD_VERSION "1"' >> $(top_builddir)/include/linux/lustre_build_version.h
16
17 else
18 modulefs_DATA = lustre_build_version obdclass.o llog_test.o
19 EXTRA_PROGRAMS = obdclass llog_test
20
21 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
22 obdclass_SOURCES += lprocfs_status.c lustre_handles.c lustre_peer.c
23 obdclass_SOURCES += statfs_pack.c obdo.c obd_config.c llog_internal.h
24
25 lustre_build_version:
26         perl $(top_srcdir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
27         echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
28         cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \
29                 2> /dev/null &&                                            \
30                 $(RM) tmpver ||                                            \
31                 mv tmpver $(top_builddir)/include/linux/lustre_build_version.h
32 endif
33
34 include $(top_srcdir)/Rules